1,359 views
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.
0% Accept Rate Accepted 0 answers out of 1 questions

1 Answer

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.

Related questions

0 0 votes
0 0 answers
550
550 views
Anas asked Nov 28, 2021
550 views
So say I have a column with categorical data like different styles of temperature: 'Lukewarm', 'Hot', 'Scalding', 'Cold', 'Frostbite',... etc.I know that we can use pd.ge...
0 0 votes
0 0 answers
1.3k
1.3k views
mbassoun asked May 4, 2022
1,329 views
Input is a stock price in exponential transformation. We are asked to forecast using ARMA results for 2 years.
0 0 votes
1 1 answer
800
800 views
1 1 vote
1 1 answer
1.6k
1.6k views
Hagar asked Jun 24, 2023
1,600 views
Hello,I have a dataset with a categorical column that contains three categories. One of the categories represents 98% of the data, while the remaining 2% are distributed ...
1 1 vote
1 1 answer
724
724 views
metelon asked Dec 15, 2020
724 views
When I standardized my data when I created my model. Do I need to save the standardization transformation when I want to predict with my model new data ?