Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example1 not enough training. #46

Open
chriscamacho opened this issue Dec 17, 2020 · 5 comments
Open

example1 not enough training. #46

chriscamacho opened this issue Dec 17, 2020 · 5 comments

Comments

@chriscamacho
Copy link

with a value of 300 in the training loop I see this output:

Output for [0, 0] is 0.
Output for [0, 1] is 1.
Output for [1, 0] is 1.
Output for [1, 1] is 1.

changing the loop to 350 gives:

Output for [0, 0] is 0.
Output for [0, 1] is 1.
Output for [1, 0] is 1.
Output for [1, 1] is 0.

Was this done on purpose to show some kind of limitation of back propagation ?

@codeplea
Copy link
Owner

Was this done on purpose to show some kind of limitation of back propagation ?

No. It's randomized, so it takes more loops sometimes. I'll increase it.

@codeplea
Copy link
Owner

Actually, it's possible you got stuck in a local minima. If you change it back to 300 iterations, and run the program several times, how often does it work?

@chriscamacho
Copy link
Author

in 10 runs I only saw it get the right result 2 times (@ 300 iterations)

@codeplea
Copy link
Owner

Ok, thanks for the feedback. I'll look into it and tune things a bit when I have some free time.

@chriscamacho
Copy link
Author

just as a point of interest when it does "fail" the outputs for case 2,3 and 4 are always similar around 0.6

Output for [0, 0] is 0.07 (0).
Output for [0, 1] is 0.64 (1). 
Output for [1, 0] is 0.65 (1).
Output for [1, 1] is 0.62 (1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants