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

#include <ctxCortexTrainer.h>

Inheritance diagram for ctxCortexTrainer:
ctxLevenbergMarquardtSolver

Public Member Functions

virtual gzType * getType () const
 ctxCortexTrainer (const gzString &save_url=GZ_EMPTY_STRING, const gzString &channel_url="udp::45666", const gzString &channel_name="ctx")
const ctxCortexPtr & getCortex () const
gzVoid setCortex (const ctxCortexPtr &prop)
gzBool train (const ctxBackpropTrainingOptions &options)
 Train a complete Backprop session with explicit typed configuration.
gzBool train (const ctxGeneticTrainingOptions &options)
 Train a complete fixed-topology Genetic session and retain its final population, elite archive and fitness state.
gzString getTrainerError ()
gzVoid resetTrainerError ()
Public Member Functions inherited from ctxLevenbergMarquardtSolver
 ctxLevenbergMarquardtSolver (ctxDefSolverFunction function=NULL)
virtual ~ctxLevenbergMarquardtSolver ()
gzBool minimize (gzInt32 sample_count, gzInt32 parameter_count, gzFloat *parameters, void *data)
gzBool solve (gzInt32 sample_count, gzInt32 parameter_count, gzFloat *parameters, gzFloat *fvec, gzFloat ftol, gzFloat xtol, gzFloat gtol, int maxfev, gzFloat epsfcn, gzFloat *diag, int mode, gzFloat factor, int *info, int *nfev, gzFloat *fjac, int *ipvt, gzFloat *qtf, gzFloat *wa1, gzFloat *wa2, gzFloat *wa3, gzFloat *wa4, void *data)
virtual gzVoid onEvaluate (gzFloat *parameters, gzInt32 sample_count, gzFloat *fvec, void *data, int *info)
gzVoid setGeneralPrecision (gzFloat precision)
gzVoid setMaxCall (gzUInt32 maxcall)
gzVoid setStepBound (gzFloat stepBound)
gzVoid setMode (gzInt32 mode)
gzInt32 getStatus ()

Static Public Member Functions

static gzType * getClassType ()

Protected Member Functions

gzBool updateCandidates (ctxCortexParameters *parameters, gzUInt32 iteration, gzUInt32 period, gzUInt32 epoch, gzUInt32 method, gzFloat expectedMinDiff, gzBool external, gzBool *updatedPopulation=NULL)
gzFloat calcAccumError (ctxContext *context, gzUInt32 *index, gzUInt32 accumulations, gzUInt32 batch_size, gzUInt32 subset_len)
virtual gzVoid onObject (gzObject *object)

Protected Attributes

gzRefList< ctxCortexParameters > m_populationList
gzRefList< ctxCortexParameters > m_populationEliteList
gzMutex m_populationListLocker
gzFloat m_bestError
gzFloat m_targetError
gzUInt32 m_eliteCount
gzUInt32 m_candidateCount
gzUInt32 m_eliteFactor
gzString m_save_url
gzString m_error

Detailed Description

Definition at line 364 of file ctxCortexTrainer.h.

Constructor & Destructor Documentation

◆ ctxCortexTrainer()

ctxCortexTrainer::ctxCortexTrainer ( const gzString & save_url = GZ_EMPTY_STRING,
const gzString & channel_url = "udp::45666",
const gzString & channel_name = "ctx" )

References CTX_EXPORT.

Member Function Documentation

◆ calcAccumError()

gzFloat ctxCortexTrainer::calcAccumError ( ctxContext * context,
gzUInt32 * index,
gzUInt32 accumulations,
gzUInt32 batch_size,
gzUInt32 subset_len )
protected

References CTX_EXPORT.

◆ getClassType()

gzType * ctxCortexTrainer::getClassType ( )
static

References CTX_EXPORT.

◆ getCortex()

const ctxCortexPtr & ctxCortexTrainer::getCortex ( ) const

References CTX_EXPORT.

◆ getTrainerError()

gzString ctxCortexTrainer::getTrainerError ( )

References CTX_EXPORT.

◆ getType()

virtual gzType * ctxCortexTrainer::getType ( ) const
virtual

◆ onObject()

virtual gzVoid ctxCortexTrainer::onObject ( gzObject * object)
protectedvirtual

References CTX_EXPORT.

◆ resetTrainerError()

gzVoid ctxCortexTrainer::resetTrainerError ( )

References CTX_EXPORT.

◆ setCortex()

gzVoid ctxCortexTrainer::setCortex ( const ctxCortexPtr & prop)

◆ train() [1/2]

gzBool ctxCortexTrainer::train ( const ctxBackpropTrainingOptions & options)

Train a complete Backprop session with explicit typed configuration.

References CTX_EXPORT.

◆ train() [2/2]

gzBool ctxCortexTrainer::train ( const ctxGeneticTrainingOptions & options)

Train a complete fixed-topology Genetic session and retain its final population, elite archive and fitness state.

References CTX_EXPORT.

◆ updateCandidates()

gzBool ctxCortexTrainer::updateCandidates ( ctxCortexParameters * parameters,
gzUInt32 iteration,
gzUInt32 period,
gzUInt32 epoch,
gzUInt32 method,
gzFloat expectedMinDiff,
gzBool external,
gzBool * updatedPopulation = NULL )
protected

References CTX_EXPORT.

Member Data Documentation

◆ m_bestError

gzFloat ctxCortexTrainer::m_bestError
protected

Definition at line 403 of file ctxCortexTrainer.h.

◆ m_candidateCount

gzUInt32 ctxCortexTrainer::m_candidateCount
protected

Definition at line 407 of file ctxCortexTrainer.h.

◆ m_eliteCount

gzUInt32 ctxCortexTrainer::m_eliteCount
protected

Definition at line 405 of file ctxCortexTrainer.h.

◆ m_eliteFactor

gzUInt32 ctxCortexTrainer::m_eliteFactor
protected

Definition at line 408 of file ctxCortexTrainer.h.

◆ m_error

gzString ctxCortexTrainer::m_error
protected

Definition at line 411 of file ctxCortexTrainer.h.

◆ m_populationEliteList

gzRefList<ctxCortexParameters> ctxCortexTrainer::m_populationEliteList
protected

Definition at line 400 of file ctxCortexTrainer.h.

◆ m_populationList

gzRefList<ctxCortexParameters> ctxCortexTrainer::m_populationList
protected

Definition at line 399 of file ctxCortexTrainer.h.

◆ m_populationListLocker

gzMutex ctxCortexTrainer::m_populationListLocker
protected

Definition at line 401 of file ctxCortexTrainer.h.

◆ m_save_url

gzString ctxCortexTrainer::m_save_url
protected

Definition at line 409 of file ctxCortexTrainer.h.

◆ m_targetError

gzFloat ctxCortexTrainer::m_targetError
protected

Definition at line 404 of file ctxCortexTrainer.h.


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