public class Classification extends FitnessFunction
Constructor and Description |
---|
Classification(PatternSet testSet)
Constructs the fitness function with a test set.
|
Modifier and Type | Method and Description |
---|---|
double |
getFitness(NeuralNet net)
Returns the classification accuracy in [0, 1] using Boone's NetError class
for calculating the classification error.
|
boolean |
isAccelerate()
Returns the acceleration status.
|
void |
setAccelerate(boolean accelerate)
Sets the acceleration status.
|
compute, getRegFactor, setRegFactor
public Classification(PatternSet testSet)
testSet
- a test pattern set used for error computationpublic boolean isAccelerate()
public void setAccelerate(boolean accelerate)
accelerate
- true, if accelerationpublic double getFitness(NeuralNet net)
getFitness
in class FitnessFunction
net
- a network