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

Sort multiclass probability object by highest probability #441

Open
Aylr opened this issue Nov 15, 2017 · 0 comments
Open

Sort multiclass probability object by highest probability #441

Aylr opened this issue Nov 15, 2017 · 0 comments

Comments

@Aylr
Copy link
Contributor

Aylr commented Nov 15, 2017

Very small nitpick: should the prediction object be returned sorted? In case user wants to find the 2nd highest, they can just select the[1] entry?

What it currently looks like

  • It is a dict of probabilities by class label

{'benign': 0.25, 'cancerous': 0.7, 'unknown': 0.05}

What it should look like

  • an array of dicts or tuples sorted by highest probability

[{'cancerous': 0.7}, {'benign': 0.25}, {'unknown': 0.05}]

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

1 participant