GClasses
|
This is an experimental policy-learning algorithm. It's currently too slow to be practical. More...
#include <GPolicyLearner.h>
Public Member Functions | |
GPeachAgent (sp_relation &pRelation, int actionDims, GRand *pRand, double *pGoal, GAgentActionIterator *pActionIterator) | |
pGoal is expected to be a vector of size m_senseCount. (m_senseCount = pRelation->GetAttributeCount() - actionDims.) | |
virtual | ~GPeachAgent () |
virtual void | refinePolicyAndChooseNextAction (const double *pSenses, double *pActions) |
See GPolicyLearner::refinePolicyAndChooseNextAction. | |
void | setGoal (double *pNewGoal) |
Specify a goal for this agent. | |
GIncrementalLearner * | physicsModel () |
Returns the model used by this agent. | |
Protected Member Functions | |
void | chooseAction (const double *pSenses, double *pActions) |
Protected Attributes | |
GRand * | m_pRand |
sp_relation | m_pRelPhysics |
sp_relation | m_pRelState |
GIncrementalLearner * | m_pPhysicsModel |
double * | m_pGoal |
double * | m_pSubGoal |
double * | m_pTrainingRow |
GAgentActionIterator * | m_pActionIterator |
int | m_burnIn |
This is an experimental policy-learning algorithm. It's currently too slow to be practical.
GClasses::GPeachAgent::GPeachAgent | ( | sp_relation & | pRelation, |
int | actionDims, | ||
GRand * | pRand, | ||
double * | pGoal, | ||
GAgentActionIterator * | pActionIterator | ||
) |
pGoal is expected to be a vector of size m_senseCount. (m_senseCount = pRelation->GetAttributeCount() - actionDims.)
virtual GClasses::GPeachAgent::~GPeachAgent | ( | ) | [virtual] |
void GClasses::GPeachAgent::chooseAction | ( | const double * | pSenses, |
double * | pActions | ||
) | [protected] |
GIncrementalLearner* GClasses::GPeachAgent::physicsModel | ( | ) |
Returns the model used by this agent.
virtual void GClasses::GPeachAgent::refinePolicyAndChooseNextAction | ( | const double * | pSenses, |
double * | pActions | ||
) | [virtual] |
See GPolicyLearner::refinePolicyAndChooseNextAction.
Implements GClasses::GPolicyLearner.
void GClasses::GPeachAgent::setGoal | ( | double * | pNewGoal | ) |
Specify a goal for this agent.
int GClasses::GPeachAgent::m_burnIn [protected] |
double* GClasses::GPeachAgent::m_pGoal [protected] |
GRand* GClasses::GPeachAgent::m_pRand [protected] |
sp_relation GClasses::GPeachAgent::m_pRelPhysics [protected] |
sp_relation GClasses::GPeachAgent::m_pRelState [protected] |
double* GClasses::GPeachAgent::m_pSubGoal [protected] |
double* GClasses::GPeachAgent::m_pTrainingRow [protected] |