Mar-07-2020, 04:52 AM
First, looks like you are reversing the X and Ys. Y is what is being predicted. You have Y as the years, and I dont think you are trying to predict the year.
Then, you are throwing models in there that really dont go together. If you are trying to predict passengers from the year, linear regression (and/or polynomial regression) works. Suggest you read up on the algorithms on the SciKitLearn website - some of these are appropriate for numeric functions like this, some for clustering and unsupervised learning, some are classification.
Suggest linear regression only of the methods you have, with another option being a Deep Neural Net.
Then, you are throwing models in there that really dont go together. If you are trying to predict passengers from the year, linear regression (and/or polynomial regression) works. Suggest you read up on the algorithms on the SciKitLearn website - some of these are appropriate for numeric functions like this, some for clustering and unsupervised learning, some are classification.
Suggest linear regression only of the methods you have, with another option being a Deep Neural Net.