R Model

<< Click to Display Table of Contents >>

Current:  Advanced Analytics > Modeling 

R Model

Previous pageReturn to chapter overviewNext page

You can use the R model node to reference any R package to connect to R data or R drawing for analysis. 

Drag the data set node  to the edit area. Add the "R Model" node and connect the node to the data set.

ML56

 

The configuration of R Model

[Script] Script that references R package must store the final result in the MODEL variable as the return value. Click the upper right button to pop up the script input box for more convenient input.

 

Run the experimental model

After the user completes the configuration of the model, click the R model node and select “Run” in the right-click menu to run the model. After the operation starts, the runtime is calculated at the upper right of the editing area. You can also click "Run All" at the top of the editing area to run the experiment model you set.

After successful operation, the node shows success, as shown in the following figure.

Rmodel

If the operation fails, the node will prompt failure, hover over the node to see the reason for the failure, as shown below.

Rfail

 

Export PMML

When the model node has been trained , the corresponding PMML file will be generated. Users can choose "Export PMML" by right-clicking R Model node, and export the generated PMML file to the local area, and then use it for other platforms.

 

R model node renaming

In the R model node's right-click menu, select "Rename" to rename the node.

 

Delete R model node

In the R model node's right-click menu, select "delete" or click the keyboard delete key to delete, you can delete the node and node input and output connections.

 

Refresh R model node

In the R model node's right-click menu, select "Refresh" to update the synchronization data or parameter information.