Github user dbtsai commented on a diff in the pull request:
https://github.com/apache/spark/pull/7884#discussion_r36162580
--- Diff:
mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala
---
@@ -451,11 +471,14 @@ private class LogisticAggregator(
* @param label The label for this data point.
* @param data The features for one data point in dense/sparse vector
format to be added
* into this aggregator.
+ * @param sampleWeight The weight for over-/undersamples each of
training sample.
* @return This LogisticAggregator object.
*/
- def add(label: Double, data: Vector): this.type = {
+ def add(label: Double, sampleWeight: Double = 1.0, data: Vector):
this.type = {
--- End diff --
My bad. I move it from later one with default variable, and decide to
always specifically give the sampleWeight. I forgot to remove the default
variable.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]