Public Member Functions | Public Attributes | Private Attributes
ExplorationModel Class Reference

#include <ExplorationModel.hh>

Inheritance diagram for ExplorationModel:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool addStateToSet (const std::vector< float > &s)
bool checkForState (const std::vector< float > &s)
 ExplorationModel (MDPModel *model, int modelType, int exploreType, int predType, int nModels, float m, int numactions, float rmax, float qmax, float rrange, int nfactors, float v, float n, const std::vector< float > &featmax, const std::vector< float > &featmin, Random rng)
 ExplorationModel (const ExplorationModel &)
virtual ExplorationModelgetCopy ()
float getFeatDistToVisitedSA (const std::vector< float > &s)
virtual float getStateActionInfo (const std::vector< float > &state, int act, StateActionInfo *retval)
virtual bool updateWithExperience (experience &e)
virtual bool updateWithExperiences (std::vector< experience > &instances)
virtual ~ExplorationModel ()

Public Attributes

bool MODEL_DEBUG

Private Attributes

int exploreType
std::vector< float > featmax
std::vector< float > featmin
float M
MDPModelmodel
int modelType
const float n
int nfactors
int nModels
int numactions
int predType
float qmax
float rmax
Random rng
float rrange
std::set< std::vector< float > > statespace
const float v

Detailed Description

This model wraps an another model and adds reward bonuses based on model confidence, # of visits, or other metrics.

Definition at line 21 of file ExplorationModel.hh.


Constructor & Destructor Documentation

ExplorationModel::ExplorationModel ( MDPModel model,
int  modelType,
int  exploreType,
int  predType,
int  nModels,
float  m,
int  numactions,
float  rmax,
float  qmax,
float  rrange,
int  nfactors,
float  v,
float  n,
const std::vector< float > &  featmax,
const std::vector< float > &  featmin,
Random  rng 
)

Default contstructor

Parameters:
modelThe underlying MDP Model being used.
modelTypethe type of model being used.
exploreTypetype of reward bonuses to be added on top of model
predTypethe way in which ensemble models combine their models
nModels# of models to use for ensemble models (i.e. random forests)
m# of visits for a given state-action to be considered known
numactions# of actions in the domain
rmaxmaximum one-step reward in the domain
qmaxmaximum possible q-value in a domain
rrangerange of one-step rewards in the domain
nfactors# of state features in the domain
b/vcoefficient to determine magnitude of variance reward
ncoefficient to determine magnitude of novelty reward
featmaxthe maximum value of each state feature
featminthe minimum value of each state feature
rngRandom Number Generator

Definition at line 14 of file ExplorationModel.cc.

Copy constructor

Definition at line 38 of file ExplorationModel.cc.

Definition at line 57 of file ExplorationModel.cc.


Member Function Documentation

bool ExplorationModel::addStateToSet ( const std::vector< float > &  s)

Add state to a set of visited states

Definition at line 286 of file ExplorationModel.cc.

bool ExplorationModel::checkForState ( const std::vector< float > &  s)

Check if the given state is in the set of visited states

Definition at line 294 of file ExplorationModel.cc.

Implements MDPModel.

Definition at line 51 of file ExplorationModel.cc.

float ExplorationModel::getFeatDistToVisitedSA ( const std::vector< float > &  s)

Find distance in feature space to nearest visited state-action

Definition at line 299 of file ExplorationModel.cc.

float ExplorationModel::getStateActionInfo ( const std::vector< float > &  state,
int  act,
StateActionInfo retval 
) [virtual]

Implements MDPModel.

Definition at line 113 of file ExplorationModel.cc.

Implements MDPModel.

Definition at line 88 of file ExplorationModel.cc.

bool ExplorationModel::updateWithExperiences ( std::vector< experience > &  instances) [virtual]

Implements MDPModel.

Definition at line 63 of file ExplorationModel.cc.


Member Data Documentation

Definition at line 90 of file ExplorationModel.hh.

std::vector<float> ExplorationModel::featmax [private]

Definition at line 86 of file ExplorationModel.hh.

std::vector<float> ExplorationModel::featmin [private]

Definition at line 87 of file ExplorationModel.hh.

float ExplorationModel::M [private]

Definition at line 93 of file ExplorationModel.hh.

Underlying MDP model that we've wrapped and that we add bonus rewards onto.

Definition at line 84 of file ExplorationModel.hh.

Definition at line 71 of file ExplorationModel.hh.

Definition at line 89 of file ExplorationModel.hh.

const float ExplorationModel::n [private]

Definition at line 97 of file ExplorationModel.hh.

Definition at line 95 of file ExplorationModel.hh.

Definition at line 92 of file ExplorationModel.hh.

Definition at line 94 of file ExplorationModel.hh.

Definition at line 91 of file ExplorationModel.hh.

float ExplorationModel::qmax [private]

Definition at line 94 of file ExplorationModel.hh.

float ExplorationModel::rmax [private]

Definition at line 94 of file ExplorationModel.hh.

Definition at line 99 of file ExplorationModel.hh.

float ExplorationModel::rrange [private]

Definition at line 94 of file ExplorationModel.hh.

std::set<std::vector<float> > ExplorationModel::statespace [private]

Set of all distinct sensations seen. This way we can know what we've visited.

Definition at line 81 of file ExplorationModel.hh.

const float ExplorationModel::v [private]

Definition at line 96 of file ExplorationModel.hh.


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


rl_agent
Author(s): Todd Hester
autogenerated on Thu Jun 6 2019 22:00:14