org.encog.ml.prg.train
Class ZeroEvalScoreFunction
- java.lang.Object
-
- org.encog.ml.prg.train.ZeroEvalScoreFunction
-
- All Implemented Interfaces:
- java.io.Serializable, CalculateScore
public class ZeroEvalScoreFunction extends java.lang.Object implements CalculateScore, java.io.Serializable
This is a very simple evaluation function that simply passes in all zeros for the input arguments. Make sure that the genome you are testing supports floating point numbers for inputs. This evaluation function is useful to test to very quickly verify that a genome is valid and does not generate any obvious division by zero issues. This allows a population generator to quickly eliminate some invalid genomes.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ZeroEvalScoreFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecalculateScore(MLMethod genome)Calculate this network's score.booleanrequireSingleThreaded()booleanshouldMinimize()
-
-
-
Method Detail
-
calculateScore
public double calculateScore(MLMethod genome)
Calculate this network's score.- Specified by:
calculateScorein interfaceCalculateScore- Parameters:
genome- The ML method.- Returns:
- The score.
-
requireSingleThreaded
public boolean requireSingleThreaded()
- Specified by:
requireSingleThreadedin interfaceCalculateScore- Returns:
- True, if this score function cannot be done in parallel.
-
shouldMinimize
public boolean shouldMinimize()
- Specified by:
shouldMinimizein interfaceCalculateScore- Returns:
- True if the goal is to minimize the score.
-
-
DMelt 3.0 © DataMelt by jWork.ORG