SJ001 / AI-Feynman

MIT License
630 stars 188 forks source link

Strange function when inputting dataset with high values #27

Open miyazakiHU opened 3 years ago

miyazakiHU commented 3 years ago

When I input a dataset which contains large values (10000 and larger), AI-Feynman outputs a function whose graph seems to have no relation to the input values. I then divided the dataset by it's highest value (50000), so that all the data was now stretching over a range from 0 to 1, and input the new dataset. Surprisingly, AI-Feynman then produced a function whose graph approximates the input data points very well. Do you have any idea what the problem is?

normalized_graph original_graph

SJ001 commented 3 years ago

It might be because the NN has a hard time fitting a function with values over such a wide range. In general normalizing the data helps in machine learning problems.