Package org.apache.spark.ml.regression
Class GeneralizedLinearRegressionSummary
Object
org.apache.spark.ml.regression.GeneralizedLinearRegressionSummary
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GeneralizedLinearRegressionTrainingSummary
Summary of
GeneralizedLinearRegression
model and predictions.
param: dataset Dataset to be summarized. param: origModel Model to be summarized. This is copied to create an internal model which cannot be modified from outside.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondouble
aic()
long
double
deviance()
double
double
long
Field in "predictions" which gives the predicted value of each instance.Predictions output by the model'stransform
method.long
rank()
long
long
Get the default residuals (deviance residuals) of the fitted model.Get the residuals of the fitted model by type.
-
Method Details
-
aic
public double aic() -
degreesOfFreedom
public long degreesOfFreedom() -
deviance
public double deviance() -
dispersion
public double dispersion() -
nullDeviance
public double nullDeviance() -
numInstances
public long numInstances() -
predictionCol
Field in "predictions" which gives the predicted value of each instance. This is set to a new column name if the original model'spredictionCol
is not set.- Returns:
- (undocumented)
-
predictions
Predictions output by the model'stransform
method.- Returns:
- (undocumented)
-
rank
public long rank() -
residualDegreeOfFreedom
public long residualDegreeOfFreedom() -
residualDegreeOfFreedomNull
public long residualDegreeOfFreedomNull() -
residuals
Get the default residuals (deviance residuals) of the fitted model.- Returns:
- (undocumented)
-
residuals
Get the residuals of the fitted model by type.- Parameters:
residualsType
- The type of residuals which should be returned. Supported options: deviance, pearson, working and response.- Returns:
- (undocumented)
-