Mungojerrie  1.0
Mungojerrie
Classes | Typedefs | Functions | Variables
Gym.hh File Reference

Interface between learner and model/objective. More...

#include "Model.hh"
#include <boost/functional/hash.hpp>
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/serialization/vector.hpp>
Include dependency graph for Gym.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GymObservationHasher
 
struct  GymObservationCompare
 
struct  GymOptions
 
class  Gym
 Class for a learning interface. More...
 
struct  Gym::GymInfo
 Class for encapsulation of return values of Gym. More...
 

Typedefs

using GymObservation = struct GymObservation { friend class boost::serialization::access
 
using GymAction = struct GymAction { friend class boost::serialization::access
 
using GymTransitionTuple = struct GymTransitionTuple { GymObservation S
 
using Qtype = std::unordered_map< GymObservation, std::map< GymAction, double >, GymObservationHasher >
 
using OrderedQtype = std::map< GymObservation, std::map< GymAction, double >, GymObservationCompare >
 

Functions

 GymObservation (Node first, State second, short int trackerState=0, std::vector< State > third={})
 
bool operator== (GymObservation const &other) const
 
bool operator< (GymObservation const &other) const
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
 GymAction (std::pair< Action, State > first, State second, std::vector< State > third={})
 
bool operator== (GymAction const &other) const
 
bool operator< (GymAction const &other) const
 

Variables

Node first
 
State second
 Model state.
 
short int trackerState
 Automaton state.
 
std::vector< State > third
 Priority-tracker state (0 if unused)
 
GymAction A
 
Reward R
 
GymObservation sPrime
 

Detailed Description

Interface between learner and model/objective.

Author
Mateo Perez, Fabio Somenzi, Ashutosh Trivedi