diff --git a/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ml/dataframe/analyses/RegressionTests.java b/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ml/dataframe/analyses/RegressionTests.java index deccf61ba6a..77429141ed2 100644 --- a/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ml/dataframe/analyses/RegressionTests.java +++ b/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ml/dataframe/analyses/RegressionTests.java @@ -33,7 +33,7 @@ public class RegressionTests extends AbstractSerializingTestCase { Integer maximumNumberTrees = randomBoolean() ? null : randomIntBetween(1, 2000); Double featureBagFraction = randomBoolean() ? null : randomDoubleBetween(0.0, 1.0, false); String predictionFieldName = randomBoolean() ? null : randomAlphaOfLength(10); - Double trainingPercent = randomBoolean() ? null : randomDoubleBetween(0.0, 100.0, true); + Double trainingPercent = randomBoolean() ? null : randomDoubleBetween(1.0, 100.0, true); return new Regression(randomAlphaOfLength(10), lambda, gamma, eta, maximumNumberTrees, featureBagFraction, predictionFieldName, trainingPercent); }