1 1 vote It's a car prices dataset, and so I'm assuming that the more recent the more value a car should have. The values in the 'year' column simply consist of years from 1995 to 2020. I am trying to predict the selling price of the car. I'm a bit new to ML, currently still doing my undergraduate so any help / tips are appreciated. Thank you. Machine Learning machine-learning data-science predict onehotencoder data-analysis ordinal-encoder + – 0% Accept Rate Accepted 0 answers out of 1 questions Anas 150 points 2 2 4 answer comment Share 0 reply Please log in or register to add a comment.
0 0 votes You should ask yourself if the order of years has an effect in predicting the price? It seems it is important. Therefore, OrdinalEncoder seems to be a better choice. If you use OneHotEncoder, you consider the years with equal weights in predicting the price. tofighi answered Dec 20, 2021 tofighi 116k points 73 79 101 comment Share 0 reply Please log in or register to add a comment.