Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dataframe for non-matrix classification metrics #206

Open
fkromer opened this issue Apr 24, 2020 · 1 comment
Open

Dataframe for non-matrix classification metrics #206

fkromer opened this issue Apr 24, 2020 · 1 comment

Comments

@fkromer
Copy link

fkromer commented Apr 24, 2020

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
@QuadV
Copy link

QuadV commented Mar 6, 2022

This sounds interesting. Could be a good addition to the repo. Can I take it up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants