Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
updated based on comments
  • Loading branch information
imatiach-msft committed Jan 29, 2019
commit b34d88e7179437178ba75b8bc820aabe456aa6b0
Original file line number Diff line number Diff line change
Expand Up @@ -1053,8 +1053,7 @@ private[spark] object RandomForest extends Logging with Serializable {
// scale tolerance by number of samples with constant factor
// Note: constant factor was tuned by running some tests where there were no zero
// feature values and validating we are never within tolerance
val factor = 100
val tolerance = Utils.EPSILON * unweightedNumSamples * factor
val tolerance = Utils.EPSILON * unweightedNumSamples * 100
// add expected zero value count and get complete statistics
val valueCountMap = if (weightedNumSamples - partNumSamples > tolerance) {
partValueCountMap + (0.0 -> (weightedNumSamples - partNumSamples))
Expand Down