public abstract class FitnessFunction
extends java.lang.Object
Constructor and Description |
---|
FitnessFunction() |
Modifier and Type | Method and Description |
---|---|
double |
compute(NeuralNet net)
Computes the complete fitness with potential regularization.
|
abstract double |
getFitness(NeuralNet net)
Computes a fitness of the given network.
|
RegularizationFactor |
getRegFactor()
Returns the regularization factor.
|
void |
setRegFactor(RegularizationFactor regFactor)
Sets the regularization factor.
|
public RegularizationFactor getRegFactor()
public void setRegFactor(RegularizationFactor regFactor)
regFactor
- the factor, may be nullpublic double compute(NeuralNet net)
net
- a networkpublic abstract double getFitness(NeuralNet net)
net
- network instance