Ruleset

class datarobot.models.Ruleset(project_id, parent_model_id, ruleset_id, rule_count, score, model_id=None)

Represents an approximation of a model with DataRobot Prime

Attributes:
idstr

the id of the ruleset

rule_countint

the number of rules used to approximate the model

scorefloat

the validation score of the approximation

project_idstr

the project the approximation belongs to

parent_model_idstr

the model being approximated

model_idstr or None

the model using this ruleset (if it exists). Will be None if no such model has been trained.

request_model()

Request training for a model using this ruleset

Training a model using a ruleset is a necessary prerequisite for being able to download the code for a ruleset.

Returns:
job: Job

the job fitting the new Prime model

Return type:

Job