ache()
>> > val testData =
>> >
>> ssc.textFileStream("/home/barisakgu/Desktop/Spark/test").map(LabeledPoint.parse)
>> >
>> > val model = new
>> >
>> StreamingLinearRegressionWithSGD().setInitialWeights(Vectors.zeros(numFeatures))
>>
)
>
> val model = new
> StreamingLinearRegressionWithSGD().setInitialWeights(Vectors.zeros(numFeatures))
>
> model.trainOn(trainingData)
> model.predictOnValues(testData.map(lp => (lp.label,
> lp.features))).print()
>
> ssc.start()
> ssc.awaitTermination
in context:
http://apache-spark-user-list.1001560.n3.nabble.com/Streaming-Linear-Regression-problem-tp22539.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: user-unsubscr...@