cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Why isn't my Perceptron learning?
Why isn't my Perceptron learning?
Jan 26, 2014 at 3:11am UTC
TSLexi
(4)
I'm writing a Perceptron to determine whether a number is point is above or below a line. It keeps saying that every point is above the line. Any ideas?
The code is posted here:
http://forums.codeguru.com/showthread.php?543183-Why-isn-t-my-Perceptron-learning
Thanks!
Lexi
Jan 26, 2014 at 3:58am UTC
cire
(8284)
Why are you calling
srand
inside a loop where you generate random numbers?
Jan 26, 2014 at 5:03am UTC
TSLexi
(4)
Moving the srand call outside of the loop fixed it. Thanks!
Topic archived. No new replies allowed.