Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
LIBRARY IN C++
A Vanilla NN Diagram
Hidden
neuron weight
neuron
s
Example :- For training a neural network
1 #include <vector>
2 #include “NeuralNetwork.hpp”
4 int main()
5 { vector<int> topology(3);
7 topology.push_back(3); }
11 input.push_back(3); }
13 target.push_back(3); }
15 return 0; }
Example :- For classify test data
1 #include <vector>
2 #include “NeuralNetwork.hpp”
4 int main()
5 { vector<int> topology(3);
7 topology.push_back(3); }
11 input.push_back(3); }
12 nn->classify(input);
13 return 0; }
Conclusion
As per the above code training data may take only 15 lines of code to learn a
machine for a particular dataset. And only 13 lines to classify test data.
THANK YOU