Categories

Versions

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

Altair AI Studio and Python

Run Python code within an Altair AI Studio process

Altair AI Studio 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 Altair AI Studio from Python

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

The following code snippet demonstrates how easy it is to start Altair 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 Altair AI Studio and Python, go here.