hey @Jituk48216 ,
There is no such error in your code. its correct.
Its just that , while we create custom random data using sklearn, we don’t know how the data will be.
Its just at random , so that parameters you choose like noise , etc. to create that data matters a lott.
So to just understand and learn about neural networks , there working just experiment with a number of parameters , like changing number of layer , number of nodes in each layer , learning rate , epochs , etc.
Don’t just go for accuracy ,just understand the concept , if you get that , accuracy will automatically be achieved.
I hope this helps you
.