25.10.2016 Views

SAP HANA Predictive Analysis Library (PAL)

sap_hana_predictive_analysis_library_pal_en

sap_hana_predictive_analysis_library_pal_en

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3. Specify the parameters of the function by selecting the parameter input anchor and editing its<br />

signature and fixed content in the Properties view.<br />

Note<br />

A parameter table usually has fixed table content. If you want to supply the parameter values later<br />

when you execute the procedure, clear the Fixed Content option.<br />

4. Specify the output table types of the function by selecting the output anchor and editing the signature<br />

in the Properties view.<br />

5. (Optional) You can add more <strong>PAL</strong> nodes to the flowgraph if needed and connect them by holding the<br />

Connect button<br />

from the source anchor and dragging a connection to the destination anchor.<br />

6. Connect the input(s) in the input anchor region of the flowgraph container to the required input anchor(s)<br />

of the <strong>PAL</strong> function node.<br />

7. For the output tables that you want to see the output result after procedure execution, add them to the<br />

output anchor region on the right side of the flowgraph container. To do that, move your mouse cursor<br />

over the output anchor of the function node, hold the Connect button<br />

output anchor region.<br />

, and drag a connection to the<br />

8. Save the flowgraph by choosing File Save in the <strong>HANA</strong> Studio main menu.<br />

9. Activate the flowgraph by right-clicking the flowgraph in the Project Explorer view and choosing Team<br />

Activate .<br />

A new procedure is generated in the target schema which is specified in Step 2.<br />

Note<br />

To activate the flowgraph, the database user _SYS_REPO needs SELECT object privileges for objects<br />

that are used as data sources.<br />

10. Select the black downward triangle next to the Execute button in the top right corner of the AFM.<br />

A context menu appears. It shows the options Execute in SQL Editor and Open in SQL Editor as well as the<br />

option Execute and Explore for every output of the flowgraph. In addition, the context menu shows the<br />

option Edit Input Bindings.<br />

11. (Optional) If the flowgraph has input tables without fixed content, choose the option Edit Input Bindings.<br />

A wizard appears that allows you to bind all inputs of the flowgraph to data sources in the catalog.<br />

Note<br />

If you do not bind the inputs, AFM will automatically open this wizard when executing the procedure.<br />

12. Choose one of the options Execute in SQL Editor, Open in SQL Editor, or Execute and Explore for one of the<br />

outputs of the flowgraph.<br />

The behavior of the AFM depends on the execution mode.<br />

○<br />

○<br />

○<br />

Open in SQL Editor: Opens a SQL console containing the SQL code to execute the runtime object.<br />

Execute in SQL Editor: Opens a SQL console containing the SQL code to execute the runtime object<br />

and runs this SQL code.<br />

Execute and Explore: Executes the runtime object and opens the Data Explorer view for the chosen<br />

output of the flowgraph.<br />

13. Close the flowgraph by choosing File Close in the <strong>HANA</strong> Studio main menu.<br />

14 P U B L I C<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Predictive</strong> <strong>Analysis</strong> <strong>Library</strong> (<strong>PAL</strong>)<br />

Getting Started with <strong>PAL</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!