Categories

Versions

You are viewing the RapidMiner Studio documentation for version 9.4 -Check here for latest version

Subprocess

As your processes grow in size, you will need some way to manage their complexity. Notice that some Operators are containers; they hide the details of your process, and help to keep your top-level process relatively simple. Inside are one or more subprocesses.

TheCross ValidationOperator provides a good illustration: this Operator contains two subprocesses, a training subprocess and a testing subprocess. The design of the icon, as for all Operators containing subprocesses, suggests a hidden layer.

双击Operator to examine its internals; click on theProcesslink to return to the parent process.

Question: How do I build my own container, with my own subprocesses?

Answer: TheSubprocessOperator is a generic container. Use it to create your own subprocesses.

There are at least two possible approaches to using theSubprocessOperator:

  1. Add theSubprocessOperator to your process. Double-click to open it, then add whatever Operators you like.

  2. Select a subset of Operators from your process withCtrl-click, then right-click the selection and choose the context menu itemMove into new subprocess. A newSubprocessOperator appears, containing your subset of Operators.

Since theSubprocessOperator is completely generic, it's helpful to rename it so that the name reflects your content. Right-click on the Operator, and chooseRename operatorfrom the context menu.

Building blocks

Just as you can save and reuse a process, you can save and reuse a subprocess. The saved subprocess is called abuilding block. After selecting the subprocess, you can save it in either of the following ways:

  • From the main menu, select编辑>Save as Building Block
  • Right-click the subprocess, and from the context menu selectSave as Building Block.

Your building blocks are saved as XML files (extension.buildingblock) in the.RapidMinerfolder.

Once you have saved the building block, you can recover it in one of the following ways:

  • From the main menu, select编辑>Insert Building Block. Make sure that in the Process Panel no Operator has been selected, or this menu item will not appear.
  • Right-click inside the Process Panel, and from the context menu selectInsert Building Block.

To delete a building block, selectSettings>Manage Building Blocksfrom the main menu, and choose the building block you want to delete.

Notice that some often-used building blocks are bundled with RapidMiner Studio. In addition, the RapidMiner Community makes availableshared building blocks, which you can find in the Repository underCommunity Samples>Community Building Blocks.