If you're using model = LinearRegressionWithSGD.train(parseddata, iterations=100, step=0.01, intercept=True)
then to get the intercept, you would use model.intercept More information can be found at: http://spark.apache.org/docs/latest/api/python/pyspark.mllib.html#module-pyspark.mllib.regression HTH! On Tue, Dec 15, 2015 at 11:06 PM Arunkumar Pillai <[email protected]> wrote: > > How to get intercept in Linear Regression Model? > > LinearRegressionWithSGD.train(parsedData, numIterations) > > -- > Thanks and Regards > Arun >
