Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

7
Help with a neural network!
Post Body

So I've been trying to make a neural network, but I've ran into a problem. I have a function called getOutput() which should get the value of the output neurons but unfortunately for some reason, it returns a different value every time - even with the same weights! I initially put a random weight in each neuron, but this should only happen once because it's in the constructor.

My files are below:

main.cpp

NeuralNet.cpp NeuralNet.h

Random.cpp Random.h

Neuron.cpp Neuron.h

Any help at all would be loved.

Author
Account Strength
100%
Account Age
10 years
Verified Email
Yes
Verified Flair
No
Total Karma
57,434
Link Karma
14,517
Comment Karma
42,643
Profile updated: 1 week ago
Posts updated: 10 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
8 years ago