The ability to create new DataRobot Prime models has been removed from the application. This does not affect existing Prime models or deployments. To export Python code in the future, use the Python code export function in any RuleFit model.
With the deprecation of DataRobot Prime, you can still view existing DataRobot Prime models on the Leaderboard and download approximation code. You can generate the code for the model as a Python module or a Java class. To do this, on the Leaderboard, locate and open the deprecated DataRobot Prime model and click Predict > Downloads. In the Download RuleFit Code group box, select Python or Java, and then click Download to download the Scoring Code for the DataRobot Prime model:
After you download the Python or Java DataRobot Prime approximation code, you can run it locally. For more information, review the examples below:
Running the downloaded code with Python requires:
Python (Recommended: 3.7)
Numpy (Recommended: 1.16)
Pandas < 1.0 (Recommended: 0.23)
To make predictions with the downloaded model, run the exported Python script file using the following command:
Specifies the downloaded Python code version of the RuleFit model.
encoding
(Optional) Specifies the encoding of the dataset you are going to make predictions with. RuleFit defaults to UTF-8 if not otherwise specified. See the "Codecs" column of the Python-supported standards chart for possible alternative entries.
data_file
Specifies a .csv file (your dataset). The columns must correspond to the feature set used to generate the model.
output_file
Specifies the filename where DataRobot writes the results.
In the following example, rulefit.py is a Python script containing a RuleFit model trained on the following dataset: