-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfigurations.hpp
More file actions
52 lines (37 loc) · 893 Bytes
/
Configurations.hpp
File metadata and controls
52 lines (37 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include <iostream>
#include <string>
#include <exception>
using namespace std;
class Configuration
{
private:
int Epochs;
float LearnTax;
public:
Configuration(int Epochs, float LearnTax);
void SetEpochs(int Epochs);
void SetLearnTax(float LearnTax);
//string SaveLearning(); .txt files or crypt?
//string GetLearning(string Address); //.txt files or crypt?
};
Configuration::Configuration(int Epochs = 500, float LearnTax = 0.03f)
{
try
{
SetEpochs(Epochs);
SetLearnTax(LearnTax);
cout << " :: Configurations set :: " << endl;
}
catch(const std::exception& e)
{
cout << e.what() << "\n";
}
}
void Configuration::SetEpochs(int Epochs)
{
this->Epochs = Epochs;
}
void Configuration::SetLearnTax(float LearnTax)
{
this->LearnTax = LearnTax;
}