MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / setEpochs

Method setEpochs

JSAT/src/jsat/classifiers/svm/Pegasos.java:119–124  ·  view source on GitHub ↗

Sets the number of iterations through the training set that will be performed. @param epochs the number of iterations

(int epochs)

Source from the content-addressed store, hash-verified

117 * @param epochs the number of iterations
118 */
119 public void setEpochs(int epochs)
120 {
121 if(epochs < 1)
122 throw new ArithmeticException("Must perform a positive number of epochs");
123 this.epochs = epochs;
124 }
125
126 /**
127 * Returns the number of iterations of updating that will be done

Callers 9

PegasosMethod · 0.95
testTrainWarmCFastMethod · 0.45
testRegressionMethod · 0.45
testTrain_CMethod · 0.45
testTrain_CMethod · 0.45
testCloneMethod · 0.45
MultinomialNaiveBayesMethod · 0.45

Calls

no outgoing calls

Tested by 7

testTrainWarmCFastMethod · 0.36
testRegressionMethod · 0.36
testTrain_CMethod · 0.36
testTrain_CMethod · 0.36
testCloneMethod · 0.36