LinearModel¶
-
class
pyspark.mllib.regression.
LinearModel
(weights, intercept)[source]¶ A linear model that has a vector of coefficients and an intercept.
- Parameters
weights – Weights computed for every feature.
intercept – Intercept computed for this model.
New in version 0.9.0.
Attributes
Attributes Documentation
-
intercept
¶ Intercept computed for this model.
New in version 1.0.0.
-
weights
¶ Weights computed for every feature.
New in version 1.0.0.