try

http://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.ml.evaluation.RegressionEvaluator
if you're using *spark.ml.LinearRegression *(which it appears you are)

or

http://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.mllib.evaluation.RegressionMetrics
if you're using *spark.mllib.LinearRegressionModel *(included for
completeness)






On Mon, Dec 21, 2015 at 12:47 AM, Arunkumar Pillai <arunkumar1...@gmail.com>
wrote:

> Hi
>
> I'm using ml.LinearRegession  package
>
>
> How to get estimates and standard Error for the coefficient
>
> PFB the code snippet
>
> val lr = new LinearRegression()
>     lr.setMaxIter(10)
>       .setRegParam(0.01)
>       .setFitIntercept(true)
>     val model= lr.fit(test)
>     val estimates = model.summary
>
>
> --
> Thanks and Regards
>         Arun
>



-- 

*Chris Fregly*
Principal Data Solutions Engineer
IBM Spark Technology Center, San Francisco, CA
http://spark.tc | http://advancedspark.com

Reply via email to