#include <core.hh>
List of all members.
Detailed Description
Interface for planners
Definition at line 354 of file core.hh.
Constructor & Destructor Documentation
Member Function Documentation
Return the best action for a given state.
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.
Save the policy to a file.
Definition at line 372 of file core.hh.
Set if this is the first experience of the agent.
Definition at line 378 of file core.hh.
Give the planner the model being used with the agent
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
The documentation for this class was generated from the following file: