-
Notifications
You must be signed in to change notification settings - Fork 0
/
IgodotNNInterfaces.h
48 lines (37 loc) · 1.31 KB
/
IgodotNNInterfaces.h
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
#ifndef IGODOTNNINTERFACES_H
#define IGODOTNNINTERFACES_H
#include <iostream>
#include <vector>
#include <iostream>
#include "core/variant.h"
#include "core/reference.h"
#define NNDEBUG
// Common Interface for All Neural Network Classes
//This class may be seperated as two different class,based on Single Data and Multiple Data consept
std::ostream& operator<<(std::ostream& os, const PoolRealArray& poolArray);
class IGodotNNInterfaces : public Reference
{
public:
IGodotNNInterfaces(){};
IGodotNNInterfaces(const IGodotNNInterfaces&);
IGodotNNInterfaces(IGodotNNInterfaces&&);
virtual ~IGodotNNInterfaces(){}
public: //Interfaces For Godot
void ClearAllData(void);
void InsertMultipleInput(const PoolRealArray& toThis);
void SetInputs(const PoolRealArray&);
void SetOutputs(const PoolRealArray&);
public: //Interfaces For NoNGodot
std::vector<std::vector<double>> GetMultipleInput() const noexcept;
std::vector<double> GetInputVector() const noexcept;
std::vector<double> GetOutputVector();
public:
virtual void StartTraining(void)=0;
virtual real_t CalculateOutput(real_t)=0;
virtual real_t CalculateForMultipleInput(PoolRealArray)=0;
private:
std::vector<std::vector<double>> _multipleInputVector={};
std::vector<double> _inputVector={};
std::vector<double> _outputVector={};
};
#endif // IGODOTNNINTERFACES_H