Beginner neural network

I’m working on a neural network right now, and I’ve really only learned the bare minimum of coding for this topic. I’ve got the code to work for the most part, but it’s not learning how I want it to.
The current goal is to input a series of eleven ordered numbers and the network is supposed to figure out what comes next.
For example, [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] should output 13. But it Instead, outputs [15.40332372].

Here’s a link to my github repo so you can look at the code

If someone could help me, that would be great! Thanks for looking at this post!

1 Like