1,506 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
630
630 views
Anas asked Nov 28, 2021
630 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.4k
1.4k views
mbassoun asked May 4, 2022
1,430 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
994
994 views
1 1 vote
1 1 answer
1.8k
1.8k views
Hagar asked Jun 24, 2023
1,766 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
840
840 views
metelon asked Dec 15, 2020
840 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 ?