public static class GeneralizedLinearRegression.Gaussian$
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static GeneralizedLinearRegression.Gaussian$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
GeneralizedLinearRegression.Gaussian$() |
Modifier and Type | Method and Description |
---|---|
double |
aic(RDD<scala.Tuple3<java.lang.Object,java.lang.Object,java.lang.Object>> predictions,
double deviance,
double numInstances,
double weightSum)
Akaike's 'An Information Criterion'(AIC) value of the family for a given dataset.
|
org.apache.spark.ml.regression.GeneralizedLinearRegression.Link |
defaultLink()
The default link instance of this family.
|
double |
deviance(double y,
double mu,
double weight)
Deviance of (y, mu) pair.
|
double |
initialize(double y,
double weight)
Initialize the starting value for mu.
|
java.lang.String |
name() |
double |
project(double mu)
Trim the fitted value so that it will be in valid range.
|
double |
variance(double mu)
The variance of the endogenous variable's mean, given the value mu.
|
public static final GeneralizedLinearRegression.Gaussian$ MODULE$
public GeneralizedLinearRegression.Gaussian$()
public org.apache.spark.ml.regression.GeneralizedLinearRegression.Link defaultLink()
public double initialize(double y, double weight)
public double variance(double mu)
public double deviance(double y, double mu, double weight)
public double aic(RDD<scala.Tuple3<java.lang.Object,java.lang.Object,java.lang.Object>> predictions, double deviance, double numInstances, double weightSum)
predictions
- an RDD of (y, mu, weight) of instances in evaluation datasetdeviance
- the deviance for the fitted model in evaluation datasetnumInstances
- number of instances in evaluation datasetweightSum
- weights sum of instances in evaluation datasetpublic double project(double mu)
public java.lang.String name()