Categories

Versions

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

RapidMiner and Python

在RapidMi运行Python代码ner process

RapidMiner provides thePython Scripting extension, including the OperatorExecute Python, so that you can run Python code within a RapidMiner process. The popular Python librarypandashandles theExampleSetsasDataFrameobjects.

Read more: Install the Python Scripting extension:

Call RapidMiner Studio from Python

RapidMiner provides anopen source Python libraryso that you can call RapidMiner Studio from Python. You can interact with a repository you have defined in Studio and run processes locally as well.

The following code snippet demonstrates how easy it is to start RapidMiner Studio using the library. To learn more, see the API documentation of thepackage on GitHub.

import rapidminer rm = rapidminer.Studio() myinput = rm.read_resource("//Local Repository/data/myinput") training_dataset_sample = rm.run_process("//Local Repository/processes/preprocess", inputs=[myinput])

Make sure you have the Python Scripting extensiondownloaded from the Marketplaceand installed.

To learn about all the integration and collaboration possibilities between RapidMiner and Python,go here.