Maximum Acyclic Subgraph - Multiple Sequence Alignment
MaximumAcyclicSubgraph
TrainingSet.h
1 #ifndef TRAININGSET_H
2 #define TRAININGSET_H
3 #include <iostream>
4 #include "../../alignment/State.h"
5 #include "../../alignment/Graph.h"
6 #include "../../alignment/Node.h"
7 #include "../../alignment/Edge.h"
8 #include "../SimpleAgent/Agent.h"
9 #include "../SimpleAgent/Episode.h"
10 #include "valueMLmodel.h"
11 #include "Policy.h"
12 #include "LinearNet.h"
13 #include "RLDataset.h"
14 #include <torch/torch.h>
15 #include <vector>
16 
17 using std::vector;
18 using namespace std;
19 
20 class TrainingSet {
21 
22  public:
23  TrainingSet(unsigned int learningRepetitions, unsigned int epochs, unsigned int numbEpisodes, unsigned int batchSize, float learningRate);
24 
25  unsigned int learningRepetitions;
26  unsigned int epochs;
27  unsigned int batchSize;
28  float learningRate;
29  unsigned int numbEpisodes;
30 
31  void setLearningRepetitions(unsigned int learningRepetitions);
32 
33  void setEpochs(unsigned int epochs);
34 
35  void setNumbEpisodes(unsigned int numbEpisodes);
36 
37  void setBatchSize(unsigned int batchSize);
38 
39  void setLearningRate(float learningRate);
40 
44  void train(Agent* agent);
45 };
46 #endif
Definition: TrainingSet.h:20
unsigned int epochs
Number of epochs.
Definition: TrainingSet.h:26
unsigned int learningRepetitions
Number of times the agent gets trained.
Definition: TrainingSet.h:25
This Agent class selects edges according to a policy.
Definition: Agent.h:20
unsigned int numbEpisodes
The number of episodes.
Definition: TrainingSet.h:29
float learningRate
The rate of learning (alpha)
Definition: TrainingSet.h:28
unsigned int batchSize
The size of a batch.
Definition: TrainingSet.h:27