-
Notifications
You must be signed in to change notification settings - Fork 66
[ML] Allow unbounded num_top_classes in classification analysis #1526
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
[ML] Allow unbounded num_top_classes in classification analysis #1526
Conversation
56b5e7a to
c3c5e92
Compare
tveasey
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionally this looks fine but the signed unsigned comparison will generate a compiler warning with our settings so I think you should change the type of m_NumTopClasses.
1aa20d1 to
398cb33
Compare
tveasey
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR makes the classification analysis accept
-1as the value ofnum_top_classesparameter. Whennum_top_classesis set to-1, all the predicted classes will be emitted in thetop_classesarray in the results.Relates elastic/elasticsearch#63306