Skip to content

Conversation

@przemekwitek
Copy link
Contributor

@przemekwitek przemekwitek commented Oct 7, 2020

This PR makes the classification analysis accept -1 as the value of num_top_classes parameter. When num_top_classes is set to -1, all the predicted classes will be emitted in the top_classes array in the results.

Relates elastic/elasticsearch#63306

Copy link
Contributor

@tveasey tveasey left a 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.

@przemekwitek przemekwitek force-pushed the allow_unbounded_num_top_classes branch from 1aa20d1 to 398cb33 Compare October 8, 2020 10:19
Copy link
Contributor

@tveasey tveasey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants