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

predict_proba for multilabel output? #25

Open
bluetyson opened this issue Mar 3, 2021 · 4 comments
Open

predict_proba for multilabel output? #25

bluetyson opened this issue Mar 3, 2021 · 4 comments

Comments

@bluetyson
Copy link
Contributor

Hi Steven,

I was just wondering about this today ... what would you do, stick a check in and if there is a list there, extract all the positive probabilities for each output and shape into the multiclass proba shape - as for making a raster output, sort of the same thing?

@bluetyson
Copy link
Contributor Author

Something like this?

       ` if isinstance(result, list):
            result = np.array(result)[:,:,1].T`

@stevenpawley
Copy link
Owner

I'm not sure if I completely follow, but adding predict_proba for the multilabel case is something that I'm happy to look into and implement. I haven't had a need for it until now, but I'm currently working on something that could deal with multilabels.

@stevenpawley
Copy link
Owner

But, yes, something like the isinstance(result, list) to catch the output for multilabel cases

@RichardScottOZ
Copy link
Contributor

Yes, that is what I meant Steven. A hack version seemed to work as a test, anyway.

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

3 participants