Hey Dexter,
Yes, the answer is still the same even when the stacked line is commented. I guess both the lines have the same objective of storing the predicted value. But I don’t really understand the part where you said that the predicted variable sets to a new value after each iteration.
Also… I am not too sure if the imbalanced data is being handled properly. It would be splendid if I could get an opinion on the training part(model.py) overall just to clear any fishy things out. Thanks a lot for the help.