You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ML] Extend classification to support multiple classes (#53539)
* [ML] Extend classification to support multiple classes
Prepares classification analysis to support more than just
two classes. It introduces a new parameter to the process config
which dictates the `num_classes` to the process. It also
changes the max classes limit to `30` provisionally.
* We can't test cardinality is too high in the YML tests anymore
* Extract max number of classes in a constant
Copy file name to clipboardExpand all lines: x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/dataframe/analyses/DataFrameAnalysis.java
Copy file name to clipboardExpand all lines: x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ml/dataframe/analyses/ClassificationTests.java
+38-9
Original file line number
Diff line number
Diff line change
@@ -187,38 +187,46 @@ public void testGetTrainingPercent() {
Copy file name to clipboardExpand all lines: x-pack/plugin/ml/qa/native-multi-node-tests/src/test/java/org/elasticsearch/xpack/ml/integration/ClassificationIT.java
+2
Original file line number
Diff line number
Diff line change
@@ -322,9 +322,11 @@ public void testStopAndRestart() throws Exception {
Copy file name to clipboardExpand all lines: x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/datafeed/extractor/scroll/TimeBasedExtractedFields.java
+2-1
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@
14
14
15
15
importjava.util.ArrayList;
16
16
importjava.util.Arrays;
17
+
importjava.util.Collections;
17
18
importjava.util.List;
18
19
importjava.util.Objects;
19
20
importjava.util.Set;
@@ -27,7 +28,7 @@ public class TimeBasedExtractedFields extends ExtractedFields {
Copy file name to clipboardExpand all lines: x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/dataframe/extractor/ExtractedFieldsDetector.java
+9-8
Original file line number
Diff line number
Diff line change
@@ -58,15 +58,15 @@ public class ExtractedFieldsDetector {
0 commit comments