public class AdaGrad extends SGD
@inproceedings{duchi2011, author = {Duchi, John and Hazan, Elad and Singer, Yoram}, booktitle = {Journal of Machine Learning Research}, pages = {2121--2159}, volume={12}, number={Jul}, title = {Adaptive subgradient methods for online learning and stochastic optimization}, year = {2011} }
Modifier and Type | Field and Description |
---|---|
FloatOption |
epsilonOption |
protected double |
m_biasVelocity |
protected double |
m_epsilon
The epsilon value
|
protected DoubleVector |
m_velocity
Stores the weights (+ bias in the last element)
|
HINGE, lambdaRegularizationOption, learningRateOption, LOGLOSS, lossFunctionOption, m_bias, m_lambda, m_learningRate, m_loss, m_numInstances, m_t, m_weights, SQUAREDLOSS
classifierRandom, modelContext, randomSeed, randomSeedOption, trainingWeightSeenByModel
config
Constructor and Description |
---|
AdaGrad() |
Modifier and Type | Method and Description |
---|---|
double |
getEpsilon()
Get the epsilon value.
|
protected String |
getModelName() |
String |
getPurposeString()
Dictionary with option texts and objects
|
void |
resetLearningImpl()
Resets this classifier.
|
void |
setEpsilon(double eps)
Set the epsilon value.
|
void |
trainOnInstanceImpl(Instance instance)
Trains the classifier with the given instance.
|
dloss, dotProd, getLambda, getLearningRate, getLossFunction, getModelDescription, getModelMeasurementsImpl, getVotesForInstance, isRandomizable, reset, setLambda, setLearningRate, setLossFunction, toString
contextIsCompatible, copy, correctlyClassifies, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getModel, getModelContext, getModelMeasurements, getNominalValueString, getPredictionForInstance, getPredictionForInstance, getSubClassifiers, getSublearners, getVotesForInstance, modelAttIndexToInstanceAttIndex, modelAttIndexToInstanceAttIndex, prepareForUseImpl, resetLearning, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance, trainOnInstance
getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCLICreationString, getOptions, prepareForUse, prepareForUse
measureByteSize
protected double m_epsilon
public FloatOption epsilonOption
protected DoubleVector m_velocity
protected double m_biasVelocity
public String getPurposeString()
AbstractOptionHandler
getPurposeString
in interface OptionHandler
getPurposeString
in class SGD
public void setEpsilon(double eps)
eps
- the epsilon value to use.public double getEpsilon()
public void resetLearningImpl()
AbstractClassifier
resetLearningImpl
in class SGD
public void trainOnInstanceImpl(Instance instance)
trainOnInstanceImpl
in class SGD
instance
- the new training instance to include in the modelprotected String getModelName()
getModelName
in class SGD
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.