-
Notifications
You must be signed in to change notification settings - Fork 192
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
Use a different value of k in top_k_categorical_accuracy #170
Comments
@somnathrakshit sorry, it's not easy. So the code that runs it is here, we use Keras metrics out of the box. This way, they don't support parametrizing K. However you could define your own metric as specified here and pass it instead the one that is used right now. It would be a little bit more complicated though. |
I think that is an important parameter to have in case the number of classes is low. (e.g. <= 5) It does not make any sense to have k=5 then. Maybe I'll submit a PR after implementing the custom metric in a few days. |
@somnathrakshit yeah, we should finally build customisable metrics for Magpie, there's been requests of that already few times. We might want to be able to pass it through the external API i.e. |
How can I use a different value of k in top_k_categorical_accuracy? Is is possible to change a parameter somewhere?
The text was updated successfully, but these errors were encountered: