LinearModel¶
-
class
pyspark.mllib.regression.
LinearModel
(weights: pyspark.mllib.linalg.Vector, intercept: float)¶ A linear model that has a vector of coefficients and an intercept.
- Parameters
- weights
pyspark.mllib.linalg.Vector
Weights computed for every feature.
- interceptfloat
Intercept computed for this model.
- weights
Attributes
Intercept computed for this model.
Weights computed for every feature.
Attributes Documentation
-
intercept
¶ Intercept computed for this model.
-
weights
¶ Weights computed for every feature.