public class AMM extends OnlineAMM
BaseUpdateableClassifier.setEpochs(int)
method controls the total
number of iterations of the learning algorithm. A small value in [5, 20]
should be sufficient.
c, classBudget, DEFAULT_CLASS_BUDGET, DEFAULT_PRUNE_CONSTANT, DEFAULT_PRUNE_FREQUENCY, DEFAULT_REGULARIZER, k, lambda, nextID, time, weightMatrix
Constructor and Description |
---|
AMM()
Creates a new batch AMM learner
|
AMM(AMM toCopy)
Copy constructor
|
AMM(double lambda)
Creates a new batch AMM learner
|
AMM(double lambda,
int classBudget)
Creates a new batch AMM learner
|
Modifier and Type | Method and Description |
---|---|
AMM |
clone() |
int |
getSubEpochs()
Returns the number of passes through the data set done on each iteration
|
void |
setSubEpochs(int subEpochs)
Each iteration of the batch AMM algorithm requires at least one epoch
over the training set.
|
void |
trainC(ClassificationDataSet dataSet)
Trains the classifier and constructs a model for classification using the
given data set.
|
void |
trainC(ClassificationDataSet dataSet,
ExecutorService threadPool)
Trains the classifier and constructs a model for classification using the
given data set.
|
classify, getC, getClassBudget, getLambda, getParameter, getParameters, getPruneFrequency, guessLambda, setC, setClassBudget, setLambda, setPruneFrequency, setUp, supportsWeightedData, update, update
getEpochs, setEpochs, trainEpochs
public AMM()
public AMM(double lambda)
lambda
- the regularization value to usepublic AMM(double lambda, int classBudget)
lambda
- the regularization value to useclassBudget
- the maximum number of weight vectors for each classpublic AMM(AMM toCopy)
toCopy
- the object to copypublic void setSubEpochs(int subEpochs)
subEpochs
- the number passes through the training set done on each
iteration of trainingpublic int getSubEpochs()
public void trainC(ClassificationDataSet dataSet, ExecutorService threadPool)
Classifier
trainC
in interface Classifier
trainC
in class BaseUpdateableClassifier
dataSet
- the data set to train onthreadPool
- the source of threads to use.public void trainC(ClassificationDataSet dataSet)
Classifier
trainC
in interface Classifier
trainC
in class BaseUpdateableClassifier
dataSet
- the data set to train onpublic AMM clone()
clone
in interface Classifier
clone
in interface UpdateableClassifier
clone
in class OnlineAMM
Copyright © 2017. All rights reserved.