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

ROCAUC function #465

Closed
poppingcode opened this issue Jun 4, 2018 · 1 comment
Closed

ROCAUC function #465

poppingcode opened this issue Jun 4, 2018 · 1 comment
Labels
type: question more information is required

Comments

@poppingcode
Copy link

poppingcode commented Jun 4, 2018

Describe the issue
A clear and concise description of what the issue is.
when i use ROCAUC function,can i load a resnet-50 model?
for example :
model =resnet。。。。
viz = ROCAUC(model)

I want it to extend to other models

@DistrictDataLabs/team-oz-maintainers

@bbengfort bbengfort added the type: question more information is required label Jun 4, 2018
@bbengfort
Copy link
Member

bbengfort commented Jun 4, 2018

@poppingcode if you're referring to a Keras or TensorFlow resnet-50 model, then I'll say that it's possible with a little bit of glue but still untested - although there is an open issue #397 to add contrib support for these types of estimators.

If you'd like to try to implement a non-scikit-learn model with yellowbrick, the key is to wrap it in an estimator, with approximately the following interface:

from sklearn.base import BaseEstimator 

class WrapperEstimator(BaseEstimator):
    
    def fit(self, X, y):
        return self

    def predict(self, X):
        return yhat 

    def score(self, X, y):
        return score 

Some models additionally need a predict_proba method; I'm not sure if ROC/AUC is one of those.

You can see an example of this for StatsModels in yellowbrick.contrib.statsmodels.

Does that help answer the question?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question more information is required
Projects
None yet
Development

No branches or pull requests

2 participants