diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/dataframe/evaluation/classification/MulticlassConfusionMatrix.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/dataframe/evaluation/classification/MulticlassConfusionMatrix.java index e5a4de1605da0..e2762bd7d7986 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/dataframe/evaluation/classification/MulticlassConfusionMatrix.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/dataframe/evaluation/classification/MulticlassConfusionMatrix.java @@ -99,7 +99,7 @@ public MulticlassConfusionMatrix(@Nullable Integer size, @Nullable String aggNam public MulticlassConfusionMatrix(StreamInput in) throws IOException { this.size = in.readVInt(); - if (in.getVersion().onOrAfter(Version.V_8_0_0)) { + if (in.getVersion().onOrAfter(Version.V_7_6_0)) { this.aggNamePrefix = in.readString(); } else { this.aggNamePrefix = DEFAULT_AGG_NAME_PREFIX; @@ -197,7 +197,7 @@ public Optional getResult() { @Override public void writeTo(StreamOutput out) throws IOException { out.writeVInt(size); - if (out.getVersion().onOrAfter(Version.V_8_0_0)) { + if (out.getVersion().onOrAfter(Version.V_7_6_0)) { out.writeString(aggNamePrefix); } }