Categories

Versions

Rapidminer AI Studio and Python

Run Python code within a Rapidminer AI Studio process

Rapidminer® AI Studio software provides the Python Scripting extension, including the Operator Execute Python, so that you can run Python code within a process. The popular Python library Pandas handles the ExampleSets as DataFrame objects.

Read more: Install the Python Scripting extension:

Call Rapidminer AI Studio from Python

Rapidminer® software provides an open source Python library so that you can call Rapidminer AI Studio from Python. You can interact with a repository you have defined in Rapidminer AI Studio and run processes locally as well.

The following code snippet demonstrates how easy it is to start Rapidminer AI Studio using the library. To learn more, see the API documentation of the package 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 extension downloaded from the Marketplace and installed.

To learn about all the integration and collaboration possibilities between Rapidminer AI Studio and Python, go here.