GClasses

GClasses::GPeachAgent Class Reference

This is an experimental policy-learning algorithm. It's currently too slow to be practical. More...

#include <GPolicyLearner.h>

Inheritance diagram for GClasses::GPeachAgent:
GClasses::GPolicyLearner

List of all members.

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.
GIncrementalLearnerphysicsModel ()
 Returns the model used by this agent.

Protected Member Functions

void chooseAction (const double *pSenses, double *pActions)

Protected Attributes

GRandm_pRand
sp_relation m_pRelPhysics
sp_relation m_pRelState
GIncrementalLearnerm_pPhysicsModel
double * m_pGoal
double * m_pSubGoal
double * m_pTrainingRow
GAgentActionIteratorm_pActionIterator
int m_burnIn

Detailed Description

This is an experimental policy-learning algorithm. It's currently too slow to be practical.


Constructor & Destructor Documentation

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]

Member Function Documentation

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]
void GClasses::GPeachAgent::setGoal ( double *  pNewGoal)

Specify a goal for this agent.


Member Data Documentation

double* GClasses::GPeachAgent::m_pGoal [protected]
double* GClasses::GPeachAgent::m_pSubGoal [protected]