|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anji.imaging.IdentifyImageFitnessFunction
Fitness is determined by the number of images identified correctly. A frink is
roughly the amount of JVM processing power a Dell Latitude C600 850MHz w/ 256 MB RAM can
perform in one millisecond. Parameter EVAL_MILLIS_KEY
determines the number of
frinks each net is allotted per image.
Field Summary | |
static java.lang.String |
IMG_MATCH_DIR_KEY
directory containing images to match |
static java.lang.String |
IMG_MISMATCH_DIR_KEY
directory containing images not to match |
static int |
MAX_FITNESS
max fitness value |
static java.lang.String |
SURFACE_CLASS_KEY
implements Surface; object to handle image manipulation |
Constructor Summary | |
IdentifyImageFitnessFunction()
default ctor |
Method Summary | |
int |
evaluate(Chromosome c)
Returns int between 0 and MAX_FITNESS relative to # images ANN (transcribed
from c ) is able to identify correctly. |
void |
evaluate(java.util.List subjects)
Calculates and sets the fitness values on each of the given Chromosomes via their setFitnessValue() method. |
int |
evaluateEnsemble(java.util.Collection ensemble)
Returns int between 0 and MAX_FITNESS relative to # images ANNs (transcribed
from ensemble ) are able to identify correctly. |
int |
getMaxFitnessValue()
|
void |
init(Properties props)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String IMG_MATCH_DIR_KEY
public static final java.lang.String IMG_MISMATCH_DIR_KEY
public static final java.lang.String SURFACE_CLASS_KEY
public static final int MAX_FITNESS
Constructor Detail |
public IdentifyImageFitnessFunction()
Method Detail |
public void evaluate(java.util.List subjects)
BulkFitnessFunction
evaluate
in interface BulkFitnessFunction
subjects
- List
contains Chromosome
objects for which
the fitness values must be computed and set.BulkFitnessFunction.evaluate(java.util.List)
,
evaluate(Chromosome)
public int evaluate(Chromosome c) throws TranscriberException, java.io.IOException
MAX_FITNESS
relative to # images ANN (transcribed
from c
) is able to identify correctly.
c
-
c
TranscriberException
java.io.IOException
public int evaluateEnsemble(java.util.Collection ensemble) throws TranscriberException, java.io.IOException
MAX_FITNESS
relative to # images ANNs (transcribed
from ensemble
) are able to identify correctly. Identification is based on
averaging outputs of all ANNs.
ensemble
- Collection
contains Chromosome
objects
ensemble
TranscriberException
java.io.IOException
public int getMaxFitnessValue()
getMaxFitnessValue
in interface BulkFitnessFunction
BulkFitnessFunction.getMaxFitnessValue()
public void init(Properties props) throws java.lang.Exception
init
in interface Configurable
props
- configuration parameters
java.lang.Exception
Configurable.init(com.anji.util.Properties)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |