First of all thank you Jeff for helping me with this. Im trying to understand what are you trying to tell me, thats why I try to do a quick summary. Just to be sure if we are on the same page here.
My problem is that I have a small dataset, thats why I cannot work with my data and the models I put in my code. You are suggesting just plot my data X (years), Y (Passengers) and figure out which regression to use(Linear vs Polynomial). So are we ditching machine learning at all ? Do I understand it correctly ? If not, please feel free to correct my assumptions.
I plotted my data, and I think it is not linear, so I should use polynomial regression. What do you think ?
Graph
P.S. rok = year , Pocet prepravenych cestujucich = Passengers
First of all thank you Jeff for helping me with this. Im really trying to uderstand what do you mean splitting my datast into 3.
So my trainval_dataset should represent the whole array ? The whole years and numbers of passengers alike ?
What should than I put in test_dataset and train_dataset ?
First of all thank you Jeff for helping me with this. Im really trying to uderstand what do you mean splitting my datast into 3.
So my trainval_dataset should represent the whole array ? The whole years and numbers of passengers alike ?
What should than I put in test_dataset and train_dataset ?[/quote]
Please ignore the last posts. I get now that I need to split the data to three, as you suggested. The part I dont clearly understand that what should be in my trainval_dataset, test_dataset and train_dataset.
Sorry for the mess with the posts, for some reason I cannot delete the last three so please react just on this one.
My problem is that I have a small dataset, thats why I cannot work with my data and the models I put in my code. You are suggesting just plot my data X (years), Y (Passengers) and figure out which regression to use(Linear vs Polynomial). So are we ditching machine learning at all ? Do I understand it correctly ? If not, please feel free to correct my assumptions.
I plotted my data, and I think it is not linear, so I should use polynomial regression. What do you think ?
Graph
P.S. rok = year , Pocet prepravenych cestujucich = Passengers
First of all thank you Jeff for helping me with this. Im really trying to uderstand what do you mean splitting my datast into 3.
So my trainval_dataset should represent the whole array ? The whole years and numbers of passengers alike ?
What should than I put in test_dataset and train_dataset ?
First of all thank you Jeff for helping me with this. Im really trying to uderstand what do you mean splitting my datast into 3.
So my trainval_dataset should represent the whole array ? The whole years and numbers of passengers alike ?
What should than I put in test_dataset and train_dataset ?[/quote]
Please ignore the last posts. I get now that I need to split the data to three, as you suggested. The part I dont clearly understand that what should be in my trainval_dataset, test_dataset and train_dataset.
Sorry for the mess with the posts, for some reason I cannot delete the last three so please react just on this one.