Package org.apache.spark.ml.regression
Class GeneralizedLinearRegressionSummary
Object
org.apache.spark.ml.regression.GeneralizedLinearRegressionSummary
- All Implemented Interfaces:
- Serializable,- Summary
- 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 SummaryModifier and TypeMethodDescriptiondoubleaic()longdoubledeviance()doubledoublelongField in "predictions" which gives the predicted value of each instance.Predictions output by the model'stransformmethod.longrank()longlongGet the default residuals (deviance residuals) of the fitted model.Get the residuals of the fitted model by type.
- 
Method Details- 
aicpublic double aic()
- 
degreesOfFreedompublic long degreesOfFreedom()
- 
deviancepublic double deviance()
- 
dispersionpublic double dispersion()
- 
nullDeviancepublic double nullDeviance()
- 
numInstancespublic long numInstances()
- 
predictionColField in "predictions" which gives the predicted value of each instance. This is set to a new column name if the original model'spredictionColis not set.- Returns:
- (undocumented)
 
- 
predictionsPredictions output by the model'stransformmethod.- Returns:
- (undocumented)
 
- 
rankpublic long rank()
- 
residualDegreeOfFreedompublic long residualDegreeOfFreedom()
- 
residualDegreeOfFreedomNullpublic long residualDegreeOfFreedomNull()
- 
residualsGet the default residuals (deviance residuals) of the fitted model.- Returns:
- (undocumented)
 
- 
residualsGet 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)
 
 
-