RocReport#

class RocReport[source]#

Calculate the ROC curve for each class.

For each class plots the ROC curve, calculate AUC score and displays the optimal threshold cutoff point.

Parameters
excluded_classesList , default: None

List of classes to exclude from the condition.

n_samplesint , default: 1_000_000

number of samples to use for this check.

random_stateint, default: 42

random seed for all check internals.

__init__(excluded_classes: Optional[List] = None, n_samples: int = 1000000, random_state: int = 42, **kwargs)[source]#
__new__(*args, **kwargs)#

Methods

RocReport.add_condition(name, ...)

Add new condition function to the check.

RocReport.add_condition_auc_greater_than([...])

Add condition - require min allowed AUC score per class.

RocReport.clean_conditions()

Remove all conditions from this check instance.

RocReport.conditions_decision(result)

Run conditions on given result.

RocReport.config([include_version])

Return check configuration (conditions' configuration not yet supported).

RocReport.from_config(conf[, version_unmatch])

Return check object from a CheckConfig object.

RocReport.from_json(conf[, version_unmatch])

Deserialize check instance from JSON string.

RocReport.metadata([with_doc_link])

Return check metadata.

RocReport.name()

Name of class in split camel case.

RocReport.params([show_defaults])

Return parameters to show when printing the check.

RocReport.remove_condition(index)

Remove given condition by index.

RocReport.run(dataset[, model, ...])

Run check.

RocReport.run_logic(context, dataset_kind)

Run check.

RocReport.to_json([indent])

Serialize check instance to JSON string.

Examples#