5 #include <torch/torch.h> 16 valueMLmodel(
unsigned int ds);
18 torch::Tensor tensState;
20 std::shared_ptr<LinearNet> linearNet;
25 void learn(RLDataset& dataSet,
unsigned int numberOfEpochs,
unsigned int batch_size,
float alpha);
31 vector<float> calcValueEstimates(
state* s);
33 torch::Tensor vectorToTensor(vector<vector<bool>>& vec);
35 vector<float> tensorToVector(torch::Tensor& tens);
This state class encapsulates the current game state. It can output possible actions and select them...
Definition: State.h:16