-
Notifications
You must be signed in to change notification settings - Fork 0
/
recurrentTesting.cpp
37 lines (31 loc) · 942 Bytes
/
recurrentTesting.cpp
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
//
// Created by user on 31.07.2021.
//
#include <iostream>
#include "Utils/dataStructures/Tensor.h"
#include "Utils/Utils.h"
#include "Network/Network.h"
#include "Optimizers/MBGD.h"
#include "Optimizers/MomentumGD.h"
#include <opencv2/opencv.hpp>
#include "Utils/Files/CSVReader.h"
#include "Utils/Files/ImageRepresentation.h"
#include "Utils/dataStructures/VectorN.h"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wreorder"
int main(){
cn::Network network(28, 28, 3, 1);
const int outputSize = 10;
network.appendMaxPoolingLayer({2,2});
network.appendFlatteningLayer();
network.appendFFLayer(outputSize);
network.appendSigmoidLayer();
network.appendFFLayer(outputSize);
network.appendSigmoidLayer();
network.appendFFLayer(outputSize);
network.appendSigmoidLayer();
network.initRandom();
network.ready();
cn::MomentumGD momentumGd(network, 0.7, 0.01);
return 0;
}