Change weights to be Array[Double] in LR model.
Also ensure weights are initialized to a column vector.