-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-9612][ML][FOLLOWUP] fix GBT support weights if subsamplingRate<1 #27070
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -91,8 +91,7 @@ class BaggedPointSuite extends SparkFunSuite with MLlibTestSparkContext { | |
| baggedRDD.map(_.subsampleCounts.map(_.toDouble)).collect() | ||
| EnsembleTestHelper.testRandomArrays(subsampleCounts, numSubsamples, expectedMean, | ||
| expectedStddev, epsilon = 0.01) | ||
| // should ignore weight function for now | ||
| assert(baggedRDD.collect().forall(_.sampleWeight === 1.0)) | ||
| assert(baggedRDD.collect().forall(_.sampleWeight === 2.0)) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just trying to understand, why did the sample weight change in this test?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. because this testsuite meet conditions: withReplacement=false, numSubsamples!=1, and the |
||
| } | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IDEA editor always shows warnings on the two lines, change them to avoid warnings.