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