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 a car's price according to its 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$
1
  • 1
    $\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$ Apr 19, 2019 at 15:17

1 Answer 1

1
$\begingroup$

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

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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