public class StochasticTrainingSetScore extends java.lang.Object implements CalculateScore
| Constructor and Description |
|---|
StochasticTrainingSetScore(MLDataSet training,
int theSize)
Construct a training set score calculation.
|
| Modifier and Type | Method and Description |
|---|---|
double |
calculateScore(MLMethod method)
Calculate the score for the network.
|
GenerateRandom |
getRnd() |
int |
getSize() |
MLDataSet |
getTraining() |
boolean |
requireSingleThreaded() |
void |
setRnd(GenerateRandom rnd) |
boolean |
shouldMinimize()
A training set based score should always seek to lower the error,
as a result, this method always returns true.
|
public StochasticTrainingSetScore(MLDataSet training, int theSize)
training - The training data to use.public double calculateScore(MLMethod method)
calculateScore in interface CalculateScoremethod - The network to calculate for.public boolean shouldMinimize()
shouldMinimize in interface CalculateScorepublic boolean requireSingleThreaded()
requireSingleThreaded in interface CalculateScorepublic MLDataSet getTraining()
public int getSize()
public GenerateRandom getRnd()
public void setRnd(GenerateRandom rnd)