ROC curve
- class datarobot.models.roc_curve.RocCurve
ROC curve data for model.
- Variables:
source (
str
) – ROC curve data source. Can be ‘validation’, ‘crossValidation’ or ‘holdout’.roc_points (
list
ofdict
) – List of precalculated metrics associated with thresholds for ROC curve.negative_class_predictions (
list
offloat
) – List of predictions from example for negative classpositive_class_predictions (
list
offloat
) – List of predictions from example for positive classsource_model_id (
str
) – ID of the model this ROC curve represents; in some cases, insights from the parent of a frozen model may be useddata_slice_id (
str
) – ID of the data slice this ROC curve represents.
- classmethod from_server_data(data, keep_attrs=None, use_insights_format=False, **kwargs)
Overwrite APIObject.from_server_data to handle roc curve data retrieved from either legacy URL or /insights/ new URL.
- Parameters:
data (
dict
) – The directly translated dict of JSON from the server. No casing fixes have taken place.keep_attrs (
iterable
) – List, set or tuple of the dotted namespace notations for attributes to keep within the object structure even if their values are Noneuse_insights_format (
Optional[bool]
) – Whether to repack the data from the format used in the GET /insights/RocCur/ URL to the format used in the legacy URL.
- Return type:
- class datarobot.models.roc_curve.LabelwiseRocCurve
Labelwise ROC curve data for one label and one source.
- Variables:
source (
str
) – ROC curve data source. Can be ‘validation’, ‘crossValidation’ or ‘holdout’.roc_points (
list
ofdict
) – List of precalculated metrics associated with thresholds for ROC curve.negative_class_predictions (
list
offloat
) – List of predictions from example for negative classpositive_class_predictions (
list
offloat
) – List of predictions from example for positive classsource_model_id (
str
) – ID of the model this ROC curve represents; in some cases, insights from the parent of a frozen model may be usedlabel (
str
) – Label name forkolmogorov_smirnov_metric (
float
) – Kolmogorov-Smirnov metric value for labelauc (
float
) – AUC metric value for label