Skip to content

Commit

Permalink
Add test in Strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
MechCoder committed Jan 25, 2015
1 parent e0e0d9c commit 8012fb2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ class Strategy (
s"DecisionTree Strategy requires minInstancesPerNode >= 1 but was given $minInstancesPerNode")
require(maxMemoryInMB <= 10240,
s"DecisionTree Strategy requires maxMemoryInMB <= 10240, but was given $maxMemoryInMB")
require(subsamplingRate > 0 && subsamplingRate <= 1,
s"DecisionTree Strategy requires subsamplingRate <=1 and >0, but was given " +
s"$subsamplingRate")
}

/** Returns a shallow copy of this instance. */
Expand Down

0 comments on commit 8012fb2

Please sign in to comment.