Public Member Functions | Public Attributes
Planner Class Reference

#include <core.hh>

List of all members.

Public Member Functions

virtual int getBestAction (const std::vector< float > &s)=0
virtual void planOnNewModel ()=0
std::vector< float >::iterator random_max_element (std::vector< float >::iterator start, std::vector< float >::iterator end)
virtual void savePolicy (const char *filename)
virtual void setFirst ()
virtual void setModel (MDPModel *model)=0
virtual void setSeeding (bool seeding)
virtual bool updateModelWithExperience (const std::vector< float > &last, int act, const std::vector< float > &curr, float reward, bool terminal)=0
virtual ~Planner ()

Public Attributes

Random rng

Detailed Description

Interface for planners

Definition at line 354 of file core.hh.


Constructor & Destructor Documentation

virtual Planner::~Planner ( ) [inline, virtual]

Definition at line 416 of file core.hh.


Member Function Documentation

virtual int Planner::getBestAction ( const std::vector< float > &  s) [pure virtual]

Return the best action for a given state.

virtual void Planner::planOnNewModel ( ) [pure virtual]

Plan a new policy suing the current model.

std::vector<float>::iterator Planner::random_max_element ( std::vector< float >::iterator  start,
std::vector< float >::iterator  end 
) [inline]

A method to return at random one of the maximum values in the vector. Such that when more than one actions are optimal, we select one of them at random.

Definition at line 384 of file core.hh.

virtual void Planner::savePolicy ( const char *  filename) [inline, virtual]

Save the policy to a file.

Definition at line 372 of file core.hh.

virtual void Planner::setFirst ( ) [inline, virtual]

Set if this is the first experience of the agent.

Definition at line 378 of file core.hh.

virtual void Planner::setModel ( MDPModel model) [pure virtual]

Give the planner the model being used with the agent

virtual void Planner::setSeeding ( bool  seeding) [inline, virtual]

Set whether the next experiences are seeds or actual experiences from the agent.

Definition at line 375 of file core.hh.

virtual bool Planner::updateModelWithExperience ( const std::vector< float > &  last,
int  act,
const std::vector< float > &  curr,
float  reward,
bool  terminal 
) [pure virtual]

Update the given model with an experience <s,a,s',r>.


Member Data Documentation

Definition at line 416 of file core.hh.


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


rl_common
Author(s):
autogenerated on Thu Jun 6 2019 22:00:08