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.

__init__(excluded_classes: Optional[List] = None, **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()

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

RocReport.from_config(conf)

Return check object from a CheckConfig object.

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.

Examples#