Skip to content

Dataframe for non-matrix classification metrics #206

Open
@fkromer

Description

@fkromer

It would be valuable to have some mapping functionality which takes y_true, y_pred, y_score, pred_decision (output of estimator.decision_function()), x (AUC only), y (AUC only) and converts it into a standardized pandas DataFrame ("non-matrix classification metric dataframe") which could look like follows for a single estimator:

metric accuracy_score auc ... jaccard_score zero_one_loss
estimator
LogisticRegression float or int float float or [float, ..., float] float or int

... could include as well:

  • cohen_kappa_score (float)
  • dcg_score (float)
  • f1_score (float or [float, ..., float])
  • hamming_loss (float or int)
  • hinge_loss (float)
  • log_loss (float)
  • ...

In case an estimator does not support one or several metrics the cells could contain either NaN

A dataframe containing several estimators could look like e.g.:

metric accuracy_score auc ... zero_one_loss
estimator
LogisticRegression float or int float float or int
RidgeClassifier float or int float float or int

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions