Comments (3)
You need to loop through your training data many, many times. Not just once.
Each time, you should randomize the order that you train on your inputs.
After each training, you should call genann_run()
and subtract that output from your expected output. Square this difference so that it's always positive, and then add it to a running sum for that training epoch. That's your error.
You should monitor the error for each loop through all the training data. It should start high, and then go down as you train.
You should also try 1 layer and 10 neurons to start. Get that working, then increase it and see if you get better results. 40 x 40 is huge, and you would probably need deep learning techniques for that.
Also, are you sure your outputs are correlated with your inputs? A neural network isn't psychic, it can only calculate something that is possible to calculate.
Anyway, there's a ton I left out, but that's a starting point.
Good luck, and let me know what you find out.
from genann.
from genann.
If you take my earlier advice, I'm sure you'll have better luck.
You can post the complete example with training data if you need more help.
from genann.
Related Issues (20)
- Why rand() has no seed? HOT 1
- link issue using msvc HOT 5
- How to implement bias value HOT 2
- I want to confirm that if the cost function of the project is quadratic cost function HOT 2
- Issue with changing activation functions HOT 13
- Implement relu HOT 4
- -nan Assertion Error HOT 2
- Feature Extraction HOT 2
- Error when trying to compile with G++ + bionic HOT 1
- DOS port HOT 3
- Anything about C++? HOT 2
- example1 not enough training. HOT 5
- Prediction HOT 1
- Non-linear regression HOT 1
- input data HOT 3
- Several hidden layers with different neurons number HOT 1
- Example1 always shows 1 or 0, even when output is {3,4,5,6} HOT 1
- OCR example? HOT 4
- Do the algorithms used by default work on complex problems? HOT 6
- Change type double to int16_t HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from genann.