MultipleModels.hh
Go to the documentation of this file.
00001 #ifndef _MULTIPLEMODELS_HH_
00002 #define _MULTIPLEMODELS_HH_
00003 
00004 #include <rl_common/Random.h>
00005 #include <rl_common/core.hh>
00006 #include <vector>
00007 
00008 
00009 
00011 class MultipleModels: public Model {
00012 
00013 public:
00014 
00015   MultipleModels(int id, int nInput, int nOutput, int modelType, Random rng);
00016 
00017   virtual ~MultipleModels();
00018 
00019 
00020 
00021 
00022 
00023   virtual bool trainInstance(std::vector<float> input, 
00024                              std::vector<float> output);
00025   virtual std::vector<float> testInstance(std::vector<float> input);
00026   
00027   // helper functions
00028   void createModels();
00029 
00030 private:
00031 
00032   const int id;
00033   const int nInput; 
00034   const int nOutput;
00035   const int type;
00036   
00037   Random rng;
00038 
00039   // MODELS
00040   std::vector<Model*> models;
00041 
00042 };
00043 
00044 
00045 #endif
00046   


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