OpenSearch/client/rest-high-level/src
Benjamin Trent 1380dd439a
[7.x] [ML][Inference] Fix weighted mode definition (#51648) (#51695)
* [ML][Inference] Fix weighted mode definition (#51648)

Weighted mode inaccurately assumed that the "max value" of the input values would be the maximum class value. This does not make sense. 

Weighted Mode should know how many classes there are. Hence the new parameter `num_classes`. This indicates what the maximum class value to be expected.
2020-01-30 15:33:25 -05:00
..
main [7.x] [ML][Inference] Fix weighted mode definition (#51648) (#51695) 2020-01-30 15:33:25 -05:00
test [7.x] [ML][Inference] Fix weighted mode definition (#51648) (#51695) 2020-01-30 15:33:25 -05:00