2
$\begingroup$

I'm new to ML and trying to learn it. I scraped information (using python) from a website where people try to sell their cars. I put data in a pandas data frame. Now I'm wondering how should I predict car's price according to it's manufacturing year and its mileage! I drew some plots and there is a correlation between price-year and price-mileage!

Mileage to Price Plot

Year to Price Plot

$\endgroup$
  • $\begingroup$ I recommend Jeremy Howard's "Practical Machine Learning for Coders" course -- he works through an example similar to this using random forest regressors in scikit-learn. $\endgroup$ – Andrew Maurer Apr 19 '19 at 15:17
1
$\begingroup$

You should try linear regression with sci-kit learn. You can use both year and mileage as predictors for price.

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.