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

Allow the MDR scoring method to use arbitrary sklearn scoring metrics #3

Closed
rhiever opened this issue Jun 29, 2016 · 1 comment
Closed

Comments

@rhiever
Copy link
Contributor

rhiever commented Jun 29, 2016

e.g. metrics from http://scikit-learn.org/stable/modules/classes.html#classification-metrics

@rhiever
Copy link
Contributor Author

rhiever commented Jul 13, 2016

  1. Rename add_score to scoring_function

  2. Allow the MDR.score function to take parameters for the custom scoring function. e.g.,

def score(self, features, classes, scoring_function=None, **scoring_function_kwargs):
    ...
    else:
            return scoring_function(classes, new_feature, **scoring_function_kwargs)

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

No branches or pull requests

1 participant