Re: how to retain part of the features in LogisticRegressionModel (spark2.0)

2017-03-19 Thread jinhong lu
Thanks Dhanesh, and how about the features question? > 在 2017年3月19日,19:08,Dhanesh Padmanabhan 写道: > > Dhanesh Thanks, lujinhong

Re: how to retain part of the features in LogisticRegressionModel (spark2.0)

2017-03-19 Thread jinhong lu
By the way, I found in spark 2.1 I can use setFamily() to decide binomial or multinomial, but how can I do the same thing in spark 2.0.2? If not support , which one is used in spark 2.0.2? binomial or multinomial? > 在 2017年3月19日,18:12,jinhong lu <lujinho...@gmail.com> 写道: > >

Re: how to construct parameter for model.transform() from datafile

2017-03-13 Thread jinhong lu
Anyone help? > 在 2017年3月13日,19:38,jinhong lu <lujinho...@gmail.com> 写道: > > After train the mode, I got the result look like this: > > > scala> predictionResult.show() > > +-+++--

Re: how to construct parameter for model.transform() from datafile

2017-03-13 Thread jinhong lu
r of elements of x. A: 144109, x: 804202 at scala.Predef$.require(Predef.scala:224) at org.apache.spark.ml.linalg.BLAS$.gemv(BLAS.scala:521) at org.apache.spark.ml.linalg.Matrix$class.multiply(Matrices.scala:110) at org.apache.spark.ml.linalg.DenseMatrix.multiply(Matrices.scala:176) what shou