public class GeneralizedLinearRegressionSummary
extends java.lang.Object
implements scala.Serializable
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.
Modifier and Type | Method and Description |
---|---|
double |
aic()
Akaike's "An Information Criterion"(AIC) for the fitted model.
|
long |
degreesOfFreedom()
Degrees of freedom.
|
double |
deviance()
The deviance for the fitted model.
|
double |
dispersion()
The dispersion of the fitted model.
|
protected GeneralizedLinearRegressionModel |
model()
Private copy of model to ensure Params are not modified outside this class.
|
double |
nullDeviance()
The deviance for the null model.
|
java.lang.String |
predictionCol()
Field in "predictions" which gives the predicted value of each instance.
|
Dataset<Row> |
predictions()
Predictions output by the model's `transform` method.
|
long |
rank()
The numeric rank of the fitted linear model.
|
long |
residualDegreeOfFreedom()
The residual degrees of freedom.
|
long |
residualDegreeOfFreedomNull()
The residual degrees of freedom for the null model.
|
Dataset<Row> |
residuals()
Get the default residuals (deviance residuals) of the fitted model.
|
Dataset<Row> |
residuals(java.lang.String residualsType)
Get the residuals of the fitted model by type.
|
public java.lang.String predictionCol()
predictionCol
is not set.protected GeneralizedLinearRegressionModel model()
NOTE: predictionCol
must be set correctly before the value of model
is set,
and model
must be set before predictions
is set!
public long rank()
public long degreesOfFreedom()
public long residualDegreeOfFreedom()
public long residualDegreeOfFreedomNull()
public Dataset<Row> residuals()
public Dataset<Row> residuals(java.lang.String residualsType)
residualsType
- The type of residuals which should be returned.
Supported options: deviance, pearson, working and response.public double nullDeviance()
public double deviance()
public double dispersion()
public double aic()