abstract class GeneralizedLinearModel extends Serializable
GeneralizedLinearModel (GLM) represents a model trained using GeneralizedLinearAlgorithm. GLMs consist of a weight vector and an intercept.
- Annotations
- @Since("0.8.0")
- Source
- GeneralizedLinearAlgorithm.scala
- Alphabetic
- By Inheritance
- GeneralizedLinearModel
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Concrete Value Members
- val intercept: Double
- Annotations
- @Since("0.8.0")
- def predict(testData: Vector): Double
Predict values for a single data point using the model trained.
Predict values for a single data point using the model trained.
- testData
array representing a single data point
- returns
Double prediction from the trained model
- Annotations
- @Since("1.0.0")
- def predict(testData: RDD[Vector]): RDD[Double]
Predict values for the given data set using the model trained.
Predict values for the given data set using the model trained.
- testData
RDD representing data points to be predicted
- returns
RDD[Double] where each entry contains the corresponding prediction
- Annotations
- @Since("1.0.0")
- def toString(): String
Print a summary of the model.
Print a summary of the model.
- Definition Classes
- GeneralizedLinearModel → AnyRef → Any
- val weights: Vector
- Annotations
- @Since("1.0.0")