rahulk64 / one-network Goto Github PK
View Code? Open in Web Editor NEWA simple Artificial Neural Network with only one hidden layer
A simple Artificial Neural Network with only one hidden layer
In file included from OneNetwork.cpp:1:0:
OneNetwork.hpp:6:13: error: ISO C++ forbids declaration of ‘OneNework’ with no type [-fpermissive]
OneNework(); //Default Constructor
^
OneNetwork.hpp:16:6: error: expected unqualified-id before ‘[’ token
int[] getNeurons();
^
OneNetwork.hpp:17:25: error: expected ‘,’ or ‘...’ before ‘n’
void setNeurons(int[] n);
^
OneNetwork.hpp:19:20: error: expected ‘,’ or ‘...’ before ‘examples’
void learn(int[] examples);
^
OneNetwork.hpp:26:9: error: expected unqualified-id before ‘[’ token
double[][] weights1, weight2;
^
OneNetwork.hpp:32:24: error: expected ‘,’ or ‘...’ before ‘examples’
double forward(int[] examples);
^
OneNetwork.hpp:33:25: error: expected ‘,’ or ‘...’ before ‘examples’
double backward(int[] examples, double[] results, double[] expected);
^
OneNetwork.hpp:34:25: error: expected ‘,’ or ‘...’ before ‘array’
void printArray(int[] array);
^
OneNetwork.cpp:7:1: error: prototype for ‘OneNetwork::OneNetwork()’ does not match any in class ‘OneNetwork’
OneNetwork::OneNetwork() {
^
In file included from OneNetwork.cpp:1:0:
OneNetwork.hpp:4:7: error: candidates are: constexpr OneNetwork::OneNetwork(OneNetwork&&)
class OneNetwork {
^
OneNetwork.hpp:4:7: error: constexpr OneNetwork::OneNetwork(const OneNetwork&)
OneNetwork.hpp:8:3: error: OneNetwork::OneNetwork(int, int, int)
OneNetwork(int i, int h, int o); //Takes in #input, hidden, & output neurons
^
OneNetwork.hpp:7:3: error: OneNetwork::OneNetwork(double, int, int)
OneNetwork(double l, int i, int h); //Takes in learning rate, #iterations, and #hidden neurons
^
OneNetwork.cpp:53:4: error: expected unqualified-id before ‘[’ token
int[] OneNetwork::getNeurons() {
^
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.