Package pyspark :: Package mllib :: Module classification :: Class SVMWithSGD
[frames] | no frames]

Class SVMWithSGD

source code

object --+
         |
        SVMWithSGD

Instance Methods

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods
 
train(cls, data, iterations=100, step=1.0, regParam=1.0, miniBatchFraction=1.0, initialWeights=None, regType=None, intercept=False)
Train a support vector machine on the given data.
source code
Properties

Inherited from object: __class__

Method Details

train(cls, data, iterations=100, step=1.0, regParam=1.0, miniBatchFraction=1.0, initialWeights=None, regType=None, intercept=False)
Class Method

source code 

Train a support vector machine on the given data.

@param data:              The training data.
@param iterations:        The number of iterations (default: 100).
@param step:              The step parameter used in SGD
                          (default: 1.0).
@param regParam:          The regularizer parameter (default: 1.0).
@param miniBatchFraction: Fraction of data to be used for each SGD
                          iteration.
@param initialWeights:    The initial weights (default: None).
@param regType:           The type of regularizer used for training
                          our model.
                          Allowed values: "l1" for using L1Updater,
                                          "l2" for using
                                               SquaredL2Updater,
                                          "none" for no regularizer.
                          (default: "none")
@param intercept:         Boolean parameter which indicates the use
                          or not of the augmented representation for
                          training data (i.e. whether bias features
                          are activated or not).