Github user feynmanliang commented on a diff in the pull request:
https://github.com/apache/spark/pull/8022#discussion_r38806669
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/regression/StreamingLinearAlgorithm.scala
---
@@ -59,11 +76,14 @@ import org.apache.spark.streaming.dstream.DStream
@DeveloperApi
abstract class StreamingLinearAlgorithm[
M <: GeneralizedLinearModel,
- A <: GeneralizedLinearAlgorithm[M]] extends Logging {
+ A <: GeneralizedLinearAlgorithm[M]]
+ extends StreamingDecay with Logging {
/** The model to be updated and used for prediction. */
protected var model: Option[M]
+ protected var previousDataWeight: Double = 0
--- End diff --
nit: Add a comment for this to be consistent with the other `var`
declarations
---
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]