| 13 | namespace rl { |
| 14 | |
| 15 | struct Model { |
| 16 | net::NeuralNet *network; |
| 17 | Action action; |
| 18 | |
| 19 | Model(net::NeuralNet * network_, Action action_) { |
| 20 | network = network_; |
| 21 | action = action_; |
| 22 | } |
| 23 | |
| 24 | Model() {} |
| 25 | }; |
| 26 | |
| 27 | /** A Learner that follows the Q-Learning algorithm */ |
| 28 | class QLearn : public Learner { |