Skip to content

Commit

Permalink
Fix RegressionTests#fromXContent (#46029)
Browse files Browse the repository at this point in the history
* The `trainingPercent` must be between `1` and `100`, not `0` and `100` which is causing test failures
  • Loading branch information
original-brownbear authored and dimitris-athanasiou committed Aug 27, 2019
1 parent 4b87984 commit fdef293
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static Regression createRandom() {
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);
}
Expand Down

0 comments on commit fdef293

Please sign in to comment.