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_not_less_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.finalize_check_result(check_result)

Finalize the check result by adding the check instance and processing the conditions.

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_type])

Run check.

Examples#