CorTeX Core ABI 7
ToolTech Software · C++ library reference
Loading...
Searching...
No Matches
ctxGeneticTrainer Class Reference

#include <ctxCortexTrainer.h>

Inheritance diagram for ctxGeneticTrainer:
ctxTrainer

Public Types

enum  State {
  STATE_UNPREPARED , STATE_READY , STATE_GENERATION , STATE_CANDIDATE ,
  STATE_FITNESS_BATCH , STATE_COMPLETE , STATE_FAILED
}

Public Member Functions

virtual gzType * getType () const
 ctxGeneticTrainer (const ctxGeneticTrainingOptions &options=ctxGeneticTrainingOptions())
gzBool prepare ()
gzBool trainStep ()
 Advance one bounded state-machine unit of genetic training.
gzBool isPrepared () const
gzBool train ()
ctxTrainerProgramProfile getProgramProfile () const
gzUInt32 getCapabilities () const
gzBool beginGeneration ()
gzBool nextCandidate ()
gzBool nextFitnessBatch ()
gzBool stepFitnessBatch ()
gzBool completeCandidate ()
gzBool completeGeneration ()
gzBool saveCheckpoint (const gzString &url) const
gzBool loadCheckpoint (const gzString &url)
State getState () const
gzBool isComplete () const
gzUInt32 getGeneration () const
gzUInt32 getCandidate () const
gzUInt32 getFitnessBatch () const
gzUInt32 getFitnessBatchCount () const
gzUInt32 getPopulationSize () const
gzFloat getBestError () const
Public Member Functions inherited from ctxTrainer
 ctxTrainer ()
virtual gzBool install (ctxCortex *cortex)
 Bind this session to one cortex.
ctxCortex * getCortex () const
gzString getError () const

Static Public Member Functions

static gzType * getClassType ()
Static Public Member Functions inherited from ctxTrainer
static gzType * getClassType ()

Friends

class ctxCortexTrainer

Additional Inherited Members

Protected Attributes inherited from ctxTrainer
ctxCortexPtr m_cortex
gzString m_error

Detailed Description

Definition at line 269 of file ctxCortexTrainer.h.

Member Enumeration Documentation

◆ State

Enumerator
STATE_UNPREPARED 
STATE_READY 
STATE_GENERATION 
STATE_CANDIDATE 
STATE_FITNESS_BATCH 
STATE_COMPLETE 
STATE_FAILED 

Definition at line 273 of file ctxCortexTrainer.h.

Constructor & Destructor Documentation

◆ ctxGeneticTrainer()

ctxGeneticTrainer::ctxGeneticTrainer ( const ctxGeneticTrainingOptions & options = ctxGeneticTrainingOptions())

References CTX_EXPORT.

Member Function Documentation

◆ beginGeneration()

gzBool ctxGeneticTrainer::beginGeneration ( )

References CTX_EXPORT.

◆ completeCandidate()

gzBool ctxGeneticTrainer::completeCandidate ( )

References CTX_EXPORT.

◆ completeGeneration()

gzBool ctxGeneticTrainer::completeGeneration ( )

References CTX_EXPORT.

◆ getBestError()

gzFloat ctxGeneticTrainer::getBestError ( ) const

References CTX_EXPORT.

◆ getCandidate()

gzUInt32 ctxGeneticTrainer::getCandidate ( ) const

References CTX_EXPORT.

◆ getCapabilities()

gzUInt32 ctxGeneticTrainer::getCapabilities ( ) const
virtual

Implements ctxTrainer.

References CTX_EXPORT.

◆ getClassType()

gzType * ctxGeneticTrainer::getClassType ( )
static

References CTX_EXPORT.

◆ getFitnessBatch()

gzUInt32 ctxGeneticTrainer::getFitnessBatch ( ) const

References CTX_EXPORT.

◆ getFitnessBatchCount()

gzUInt32 ctxGeneticTrainer::getFitnessBatchCount ( ) const

References CTX_EXPORT.

◆ getGeneration()

gzUInt32 ctxGeneticTrainer::getGeneration ( ) const

References CTX_EXPORT.

◆ getPopulationSize()

gzUInt32 ctxGeneticTrainer::getPopulationSize ( ) const

References CTX_EXPORT.

◆ getProgramProfile()

ctxTrainerProgramProfile ctxGeneticTrainer::getProgramProfile ( ) const
virtual

Implements ctxTrainer.

References CTX_EXPORT.

◆ getState()

State ctxGeneticTrainer::getState ( ) const

References CTX_EXPORT.

◆ getType()

virtual gzType * ctxGeneticTrainer::getType ( ) const
virtual

Reimplemented from ctxTrainer.

◆ isComplete()

gzBool ctxGeneticTrainer::isComplete ( ) const
virtual

Implements ctxTrainer.

References CTX_EXPORT.

◆ isPrepared()

gzBool ctxGeneticTrainer::isPrepared ( ) const
virtual

Implements ctxTrainer.

References CTX_EXPORT.

◆ loadCheckpoint()

gzBool ctxGeneticTrainer::loadCheckpoint ( const gzString & url)
virtual

Implements ctxTrainer.

References CTX_EXPORT.

◆ nextCandidate()

gzBool ctxGeneticTrainer::nextCandidate ( )

References CTX_EXPORT.

◆ nextFitnessBatch()

gzBool ctxGeneticTrainer::nextFitnessBatch ( )

References CTX_EXPORT.

◆ prepare()

gzBool ctxGeneticTrainer::prepare ( )
virtual

Implements ctxTrainer.

References CTX_EXPORT.

◆ saveCheckpoint()

gzBool ctxGeneticTrainer::saveCheckpoint ( const gzString & url) const
virtual

Implements ctxTrainer.

References CTX_EXPORT.

◆ stepFitnessBatch()

gzBool ctxGeneticTrainer::stepFitnessBatch ( )

References CTX_EXPORT.

◆ train()

gzBool ctxGeneticTrainer::train ( )
virtual

Reimplemented from ctxTrainer.

References CTX_EXPORT.

◆ trainStep()

gzBool ctxGeneticTrainer::trainStep ( )
virtual

Advance one bounded state-machine unit of genetic training.

Implements ctxTrainer.

References CTX_EXPORT.

◆ ctxCortexTrainer

friend class ctxCortexTrainer
friend

Definition at line 315 of file ctxCortexTrainer.h.

References ctxCortexTrainer.

Referenced by ctxCortexTrainer.


The documentation for this class was generated from the following file: