Re: LinearRegressionWithSGD accuracy

2015-01-28 Thread DB Tsai
#x27;ve even tried x, y+(sample noise from normal with mean 0 and stddev 1) >> still comes up with the same thing. >> >> Is this not supposed to work for x and y or 2 dimensional plots? Is there >> something I'm missing or wrong in the code above? Or is there a limitation

Re: LinearRegressionWithSGD accuracy

2015-01-17 Thread DB Tsai
ean 0 and stddev 1) > still comes up with the same thing. > > Is this not supposed to work for x and y or 2 dimensional plots? Is there > something I'm missing or wrong in the code above? Or is there a limitation > in the method? > > Thanks for any advice. > >

Fwd: LinearRegressionWithSGD accuracy

2015-01-16 Thread Robin East
Sent from my iPhone Begin forwarded message: > From: Robin East > Date: 16 January 2015 11:35:23 GMT > To: Joseph Bradley > Cc: Yana Kadiyska , Devl Devel > > Subject: Re: LinearRegressionWithSGD accuracy > > Yes with scaled data intercept would be 5000 but

Re: LinearRegressionWithSGD accuracy

2015-01-15 Thread Devl Devel
.label, prediction) >> >} >> >val MSE = valuesAndPreds.map{case(v, p) => math.pow((v - p), >> 2)}.mean() >> >println("training Mean Squared Error = " + MSE) >> &

Re: LinearRegressionWithSGD accuracy

2015-01-15 Thread Joseph Bradley
.pow((v - p), > 2)}.mean() > >println("training Mean Squared Error = " + MSE) > > > > Both scaled and unscaled attempts give: > > > > training Mean Squared Error = NaN > > > > I've even tried x, y+(sample noise from normal with mean 0 an

Re: LinearRegressionWithSGD accuracy

2015-01-15 Thread Devl Devel
n 0 and stddev 1) > still comes up with the same thing. > > Is this not supposed to work for x and y or 2 dimensional plots? Is there > something I'm missing or wrong in the code above? Or is there a limitation > in the method? > > T

Re: LinearRegressionWithSGD accuracy

2015-01-15 Thread Robin East
with the same thing. > > Is this not supposed to work for x and y or 2 dimensional plots? Is there > something I'm missing or wrong in the code above? Or is there a limitation > in the method? > > Thanks for any advice. > > > > -- &g

LinearRegressionWithSGD accuracy

2015-01-15 Thread devl.development
pposed to work for x and y or 2 dimensional plots? Is there something I'm missing or wrong in the code above? Or is there a limitation in the method? Thanks for any advice. -- View this message in context: http://apache-spark-developers-list.1001551.n3.nabble.com/LinearRegressionWithSGD-