|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.ml.ea.score.parallel.ParallelScore
public class ParallelScore
This class is used to calculate the scores for an entire population. This is typically done when a new population must be scored for the first time.
| Constructor Summary | |
|---|---|
ParallelScore(Population thePopulation,
GeneticCODEC theCODEC,
List<AdjustScore> theAdjusters,
CalculateScore theScoreFunction,
int theThreadCount)
Construct the parallel score calculation object. |
|
| Method Summary | |
|---|---|
List<AdjustScore> |
getAdjusters()
|
GeneticCODEC |
getCodec()
|
Population |
getPopulation()
|
CalculateScore |
getScoreFunction()
|
int |
getThreadCount()
|
void |
process()
Calculate the scores. |
void |
setThreadCount(int numThreads)
Set the number of threads to use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParallelScore(Population thePopulation,
GeneticCODEC theCODEC,
List<AdjustScore> theAdjusters,
CalculateScore theScoreFunction,
int theThreadCount)
thePopulation - The population to score.theCODEC - The CODEC to use.theAdjusters - The score adjusters to use.theScoreFunction - The score function.theThreadCount - The requested thread count.| Method Detail |
|---|
public Population getPopulation()
public CalculateScore getScoreFunction()
public GeneticCODEC getCodec()
public void process()
public List<AdjustScore> getAdjusters()
public int getThreadCount()
getThreadCount in interface MultiThreadablepublic void setThreadCount(int numThreads)
MultiThreadable
setThreadCount in interface MultiThreadablenumThreads - The desired thread count.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||