mealy.metrics

Functions

mealy.metrics.compute_accuracy_score(y_true, y_pred)[source]
mealy.metrics.compute_confidence_decision(primary_model_true_accuracy, primary_model_predicted_accuracy)[source]
mealy.metrics.compute_fidelity_score(y_true, y_pred)[source]
mealy.metrics.compute_primary_model_accuracy(y)[source]
mealy.metrics.error_decision_tree_report(y_true, y_pred, output_format='str')[source]

Return a report showing the main Error Decision Tree metrics.

Parameters
  • y_true (numpy.ndarray) – Ground truth values of wrong/correct predictions of the error tree primary model. Expected values in [ErrorAnalyzerConstants.WRONG_PREDICTION, ErrorAnalyzerConstants.CORRECT_PREDICTION].

  • y_pred (numpy.ndarray) – Estimated targets as returned by the error tree. Expected values in [ErrorAnalyzerConstants.WRONG_PREDICTION, ErrorAnalyzerConstants.CORRECT_PREDICTION].

  • output_format (string) – Return format used for the report. Valid values are ‘dict’ or ‘str’.

Returns

dictionary or string report storing different metrics regarding the Error Decision Tree.

Return type

dict or str

mealy.metrics.fidelity_balanced_accuracy_score(y_true, y_pred)[source]