Skip to content

Commit 3993054

Browse files
committed
hide algorithm in SLR
1 parent ad6b9ce commit 3993054

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mllib/src/main/scala/org/apache/spark/mllib/classification/StreamingLogisticRegressionWithSGD.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ import org.apache.spark.mllib.regression.StreamingLinearAlgorithm
3535
* Use a builder pattern to construct a streaming logistic regression
3636
* analysis in an application, like:
3737
*
38+
* {{{
3839
* val model = new StreamingLogisticRegressionWithSGD()
3940
* .setStepSize(0.5)
4041
* .setNumIterations(10)
4142
* .setInitialWeights(Vectors.dense(...))
4243
* .trainOn(DStream)
43-
*
44+
* }}}
4445
*/
4546
@Experimental
4647
class StreamingLogisticRegressionWithSGD private[mllib] (
@@ -59,7 +60,7 @@ class StreamingLogisticRegressionWithSGD private[mllib] (
5960
*/
6061
def this() = this(0.1, 50, 1.0, 0.0)
6162

62-
val algorithm = new LogisticRegressionWithSGD(
63+
protected val algorithm = new LogisticRegressionWithSGD(
6364
stepSize, numIterations, regParam, miniBatchFraction)
6465

6566
/** Set the step size for gradient descent. Default: 0.1. */

0 commit comments

Comments
 (0)