Skip to content
Closed
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ private[ml] class HuberAggregator(
} else {
0.0
}
// make transient so we do not serialize between aggregation stages
@transient private lazy val coefficients = bcParameters.value.toArray.slice(0, numFeatures)

/**
* Add a new training instance to this HuberAggregator, and update the loss and gradient
Expand All @@ -97,7 +99,7 @@ private[ml] class HuberAggregator(

if (weight == 0.0) return this
val localFeaturesStd = bcFeaturesStd.value
val localCoefficients = bcParameters.value.toArray.slice(0, numFeatures)
val localCoefficients = coefficients
val localGradientSumArray = gradientSumArray

val margin = {
Expand Down