GeneralizedLinearRegressionModel (Spark 3.5.5 JavaDoc) (original) (raw)

Modifier and Type

Method and Description

[IntParam](../../../../../org/apache/spark/ml/param/IntParam.html "class in org.apache.spark.ml.param")

[aggregationDepth](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#aggregationDepth--)()

Param for suggested depth for treeAggregate (>= 2).

[Vector](../../../../../org/apache/spark/ml/linalg/Vector.html "interface in org.apache.spark.ml.linalg")

[coefficients](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#coefficients--)()

[GeneralizedLinearRegressionModel](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html "class in org.apache.spark.ml.regression")

[copy](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#copy-org.apache.spark.ml.param.ParamMap-)([ParamMap](../../../../../org/apache/spark/ml/param/ParamMap.html "class in org.apache.spark.ml.param") extra)

Creates a copy of this instance with the same UID and some extra params.

[GeneralizedLinearRegressionSummary](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionSummary.html "class in org.apache.spark.ml.regression")

[evaluate](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#evaluate-org.apache.spark.sql.Dataset-)([Dataset](../../../../../org/apache/spark/sql/Dataset.html "class in org.apache.spark.sql")<?> dataset)

Evaluate the model on the given dataset, returning a summary of the results.

[Param](../../../../../org/apache/spark/ml/param/Param.html "class in org.apache.spark.ml.param")<String>

[family](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#family--)()

Param for the name of family which is a description of the error distribution to be used in the model.

[BooleanParam](../../../../../org/apache/spark/ml/param/BooleanParam.html "class in org.apache.spark.ml.param")

[fitIntercept](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#fitIntercept--)()

Param for whether to fit an intercept term.

double

[intercept](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#intercept--)()

[Param](../../../../../org/apache/spark/ml/param/Param.html "class in org.apache.spark.ml.param")<String>

[link](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#link--)()

Param for the name of link function which provides the relationship between the linear predictor and the mean of the distribution function.

[DoubleParam](../../../../../org/apache/spark/ml/param/DoubleParam.html "class in org.apache.spark.ml.param")

[linkPower](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#linkPower--)()

Param for the index in the power link function.

[Param](../../../../../org/apache/spark/ml/param/Param.html "class in org.apache.spark.ml.param")<String>

[linkPredictionCol](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#linkPredictionCol--)()

Param for link prediction (linear predictor) column name.

static [GeneralizedLinearRegressionModel](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html "class in org.apache.spark.ml.regression")

[load](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#load-java.lang.String-)(String path)

[IntParam](../../../../../org/apache/spark/ml/param/IntParam.html "class in org.apache.spark.ml.param")

[maxIter](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#maxIter--)()

Param for maximum number of iterations (>= 0).

int

[numFeatures](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#numFeatures--)()

Returns the number of features the model was trained on.

[Param](../../../../../org/apache/spark/ml/param/Param.html "class in org.apache.spark.ml.param")<String>

[offsetCol](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#offsetCol--)()

Param for offset column name.

double

[predict](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#predict-org.apache.spark.ml.linalg.Vector-)([Vector](../../../../../org/apache/spark/ml/linalg/Vector.html "interface in org.apache.spark.ml.linalg") features)

Predict label for the given features.

static [MLReader](../../../../../org/apache/spark/ml/util/MLReader.html "class in org.apache.spark.ml.util")<[GeneralizedLinearRegressionModel](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html "class in org.apache.spark.ml.regression")>

[read](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#read--)()

[DoubleParam](../../../../../org/apache/spark/ml/param/DoubleParam.html "class in org.apache.spark.ml.param")

[regParam](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#regParam--)()

Param for regularization parameter (>= 0).

[GeneralizedLinearRegressionModel](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html "class in org.apache.spark.ml.regression")

[setLinkPredictionCol](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#setLinkPredictionCol-java.lang.String-)(String value)

Sets the link prediction (linear predictor) column name.

[Param](../../../../../org/apache/spark/ml/param/Param.html "class in org.apache.spark.ml.param")<String>

[solver](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#solver--)()

The solver algorithm for optimization.

[GeneralizedLinearRegressionTrainingSummary](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionTrainingSummary.html "class in org.apache.spark.ml.regression")

[summary](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#summary--)()

Gets R-like summary of model on training set.

[DoubleParam](../../../../../org/apache/spark/ml/param/DoubleParam.html "class in org.apache.spark.ml.param")

[tol](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#tol--)()

Param for the convergence tolerance for iterative algorithms (>= 0).

String

[toString](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#toString--)()

[Dataset](../../../../../org/apache/spark/sql/Dataset.html "class in org.apache.spark.sql")<[Row](../../../../../org/apache/spark/sql/Row.html "interface in org.apache.spark.sql")>

[transform](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#transform-org.apache.spark.sql.Dataset-)([Dataset](../../../../../org/apache/spark/sql/Dataset.html "class in org.apache.spark.sql")<?> dataset)

Transforms dataset by reading from featuresCol, calling predict, and storing the predictions as a new column predictionCol.

String

[uid](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#uid--)()

An immutable unique ID for the object and its derivatives.

[DoubleParam](../../../../../org/apache/spark/ml/param/DoubleParam.html "class in org.apache.spark.ml.param")

[variancePower](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#variancePower--)()

Param for the power in the variance function of the Tweedie distribution which provides the relationship between the variance and mean of the distribution.

[Param](../../../../../org/apache/spark/ml/param/Param.html "class in org.apache.spark.ml.param")<String>

[weightCol](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#weightCol--)()

Param for weight column name.

[MLWriter](../../../../../org/apache/spark/ml/util/MLWriter.html "class in org.apache.spark.ml.util")

[write](../../../../../org/apache/spark/ml/regression/GeneralizedLinearRegressionModel.html#write--)()

Returns a MLWriter instance for this ML instance.