Re: Getting incorrect weights for LinearRegression

2015-03-13 Thread EcoMotto Inc.
Thanks a lot Burak, that helped. On Fri, Mar 13, 2015 at 1:55 PM, Burak Yavuz wrote: > Hi, > > I would suggest you use LBFGS, as I think the step size is hurting you. > You can run the same thing in LBFGS as: > > ``` > val algorithm = new LBFGS(new LeastSquaresGradient(), new SimpleUpdater()) >

Re: Getting incorrect weights for LinearRegression

2015-03-13 Thread Burak Yavuz
Hi, I would suggest you use LBFGS, as I think the step size is hurting you. You can run the same thing in LBFGS as: ``` val algorithm = new LBFGS(new LeastSquaresGradient(), new SimpleUpdater()) val initialWeights = Vectors.dense(Array.fill(3)( scala.util.Random.nextDouble())) val weights = algo

Getting incorrect weights for LinearRegression

2015-03-12 Thread EcoMotto Inc.
Hello, I am trying to run LinearRegression on a dummy data set, given below. Here I tried all different settings but I am still failing to reproduce desired coefficients. Please help me out, as I facing the same problem in my actual dataset. Thank you. This dataset is generated based on the simp