I made a proper neural network trainer. When loss is absolute zero, the AI is 100% accurate at predicting the numbers. Loss is basically the difference between the actual number and the AI's guess. Each round, the AI gets slightly better at guessing the numbers. Even AI's like ChatGPT use this kind of algorithm to learn.