public class NetError extends FitnessFunction
Constructor and Description |
---|
NetError(PatternSet testSet)
Constructs the fitness function with a test set.
|
Modifier and Type | Method and Description |
---|---|
double |
getFitness(NeuralNet net)
Returns the network fitness according to 1 / (1 + netError).
|
compute, getRegFactor, setRegFactor
public NetError(PatternSet testSet)
testSet
- a test pattern set used for error computationpublic double getFitness(NeuralNet net)
getFitness
in class FitnessFunction
net
- a network