Packages

c

org.apache.spark.mllib.regression

GeneralizedLinearAlgorithm

abstract class GeneralizedLinearAlgorithm[M <: GeneralizedLinearModel] extends Logging with Serializable

GeneralizedLinearAlgorithm implements methods to train a Generalized Linear Model (GLM). This class should be extended with an Optimizer to create a new GLM.

Annotations
@Since( "0.8.0" )
Source
GeneralizedLinearAlgorithm.scala
Linear Supertypes
Serializable, Serializable, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GeneralizedLinearAlgorithm
  2. Serializable
  3. Serializable
  4. Logging
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GeneralizedLinearAlgorithm()

Abstract Value Members

  1. abstract def optimizer: Optimizer

    The optimizer to solve the problem.

    The optimizer to solve the problem.

    Annotations
    @Since( "0.8.0" )

Concrete Value Members

  1. def getNumFeatures: Int

    The dimension of training features.

    The dimension of training features.

    Annotations
    @Since( "1.4.0" )
  2. def isAddIntercept: Boolean

    Get if the algorithm uses addIntercept

    Get if the algorithm uses addIntercept

    Annotations
    @Since( "1.4.0" )
  3. def run(input: RDD[LabeledPoint], initialWeights: Vector): M

    Run the algorithm with the configured parameters on an input RDD of LabeledPoint entries starting from the initial weights provided.

    Run the algorithm with the configured parameters on an input RDD of LabeledPoint entries starting from the initial weights provided.

    Annotations
    @Since( "1.0.0" )
  4. def run(input: RDD[LabeledPoint]): M

    Run the algorithm with the configured parameters on an input RDD of LabeledPoint entries.

    Run the algorithm with the configured parameters on an input RDD of LabeledPoint entries.

    Annotations
    @Since( "0.8.0" )
  5. def setIntercept(addIntercept: Boolean): GeneralizedLinearAlgorithm.this.type

    Set if the algorithm should add an intercept.

    Set if the algorithm should add an intercept. Default false. We set the default to false because adding the intercept will cause memory allocation.

    Annotations
    @Since( "0.8.0" )
  6. def setValidateData(validateData: Boolean): GeneralizedLinearAlgorithm.this.type

    Set if the algorithm should validate data before training.

    Set if the algorithm should validate data before training. Default true.

    Annotations
    @Since( "0.8.0" )