org.encog.ml.ea.score
Class EmptyScoreFunction
- java.lang.Object
-
- org.encog.ml.ea.score.EmptyScoreFunction
-
- All Implemented Interfaces:
- java.io.Serializable, CalculateScore
public class EmptyScoreFunction extends java.lang.Object implements CalculateScore, java.io.Serializable
An empty score function. Simply returns zero as the score, always.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description EmptyScoreFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecalculateScore(MLMethod phenotype)Calculate this network's score.booleanrequireSingleThreaded()booleanshouldMinimize()
-
-
-
Method Detail
-
calculateScore
public double calculateScore(MLMethod phenotype)
Calculate this network's score.- Specified by:
calculateScorein interfaceCalculateScore- Parameters:
phenotype- 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