R Model

<< Click to Display Table of Contents >>

Current:  Advanced Analytics > Script 

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

 

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 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 to connect "Save as a PMML File" node then run it, and export the generated PMML file to the local area, and then use it for other platforms.

 

Rename R Model Node

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

 

Refresh R Model Node

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

 

Save as Composite Node

In the right-click menu of node, select "Save as composite node" to save the selected node as a combined node to realize multiplexing nodes. The parameters of the saved node are consistent with the original node.

 

Copy/Cut/Paste/Delete R Model Node

The R Graphics node's right-click menu supports copy, cut, paste, and delete operations.

【Copy】Copy R Graphics node

【Cut】Cut R Graphics node

【Paste】 After selecting copy, right-click on the canvas blank to paste and copy the R Graphics node.

【Delete】 Click the node right-click menu to click Delete, or click the keyboard delete button to delete, to delete the input and output connections of nodes and nodes.