Maximum Acyclic Subgraph - Multiple Sequence Alignment
MaximumAcyclicSubgraph
valueMLmodel.h
1 #include <iostream>
2 #include "RLDataset.h"
3 #include <math.h>
4 #include "LinearNet.h"
5 #include <torch/torch.h>
6 
7 #ifndef VALUEMLMODEL_H
8 #define VALUEMLMODEL_H
9 
10 using std::vector;
11 
12 class valueMLmodel {
13 
14  public:
15  valueMLmodel();
16  valueMLmodel(unsigned int ds);
17 
18  torch::Tensor tensState;
19 
20  std::shared_ptr<LinearNet> linearNet;
21  unsigned int dim;
22 
25  void learn(RLDataset& dataSet, unsigned int numberOfEpochs, unsigned int batch_size, float alpha);
26 
31  vector<float> calcValueEstimates(state* s);
32 
33  torch::Tensor vectorToTensor(vector<vector<bool>>& vec);
34 
35  vector<float> tensorToVector(torch::Tensor& tens);
36 };
37 #endif
This state class encapsulates the current game state. It can output possible actions and select them...
Definition: State.h:16