[ML] Validate classification dependent_variable cardinality is at lea…#51232
Conversation
|
Pinging @elastic/ml-core (:ml) |
There was a problem hiding this comment.
There is a "Matchers.empty()" matcher that could be used here.
There was a problem hiding this comment.
There is a "Matchers.empty()" matcher that could be used here.
There was a problem hiding this comment.
Note that this is now necessary as we are checking the field cardinality before we call startAnalytics which refreshes the dest index.
|
@przemekwitek I have addressed all your points plus fixes a bug regarding refreshing of the dest index which was caught by the tests. |
There was a problem hiding this comment.
Ah, yes of course.
Please see my comment in |
…st two Data frame analytics classification currently only supports 2 classes for the dependent variable. We were checking that the field's cardinality is not higher than 2 but we should also check it is not less than that as otherwise the process fails.
e51393e to
eab85d5
Compare
…t lea… (elastic#51232) Data frame analytics classification currently only supports 2 classes for the dependent variable. We were checking that the field's cardinality is not higher than 2 but we should also check it is not less than that as otherwise the process fails. Backport of elastic#51232
…t lea… (elastic#51232) Data frame analytics classification currently only supports 2 classes for the dependent variable. We were checking that the field's cardinality is not higher than 2 but we should also check it is not less than that as otherwise the process fails. Backport of elastic#51232
…st two
Data frame analytics classification currently only supports 2 classes for the
dependent variable. We were checking that the field's cardinality is not higher
than 2 but we should also check it is not less than that as otherwise the process
fails.