This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.hh
50 lines (38 loc) · 1.44 KB
/
test.hh
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
49
50
// Copyright PinaPL
//
// layer.hh
// PinaPL
//
#ifndef TEST_HH
#define TEST_HH
#include <stdlib.h>
#include <eigen3/Eigen/Dense>
#include <string>
#include <sstream>
#include <iostream>
#include <fstream>
#include <map>
#include <vector>
// Dependencies for the simple neuron network
#include "neuronLayer/weightsNeuron.hh"
#include "neuronLayer/networkNeuron.hh"
// Dependencies for the LSTM neuron network
#include "lstmCell/weightsLSTM.hh"
#include "lstmCell/networkLSTM.hh"
void single_cell_test();
void single_grammar_test();
Eigen::VectorXd get_input(char letter);
std::vector<Eigen::VectorXd> real_outputs(std::vector<Eigen::VectorXd> outputs);
std::vector<Eigen::VectorXd> apply_threshold(std::vector<Eigen::VectorXd> real_outputs);
int compare(std::vector<Eigen::VectorXd> real_outputs,
std::vector<Eigen::VectorXd> expected_outputs);
int compare_double(std::vector<Eigen::VectorXd> propagation,
std::vector<Eigen::VectorXd> expected_outputs);
void grammar_learn(bool symmetrical);
void single_grammar_evaluate(NetworkNeuron network, int words_to_test);
void double_grammar_evaluate(NetworkNeuron network, int words_to_test);
void grammar_learn_LSTM(bool symmetrical);
void single_grammar_evaluate_LSTM(NetworkLSTM network, int words_to_test);
void double_grammar_evaluate_LSTM(NetworkLSTM network, int words_to_test);
std::vector<Eigen::VectorXd> real_outputs(std::vector<Eigen::VectorXd> outputs, int end_size);
#endif