Cornettomlette / lab-comparing-regression-models

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logo_ironhack_blue 7

Lab | Comparing regression models

For this lab, we will be using the same dataset we used in the previous labs. We recommend using the same notebook since you will be reusing the same variables you previous created and used in labs.

Instructions

  1. In this final lab, we will model our data. Import sklearn train_test_split and separate the data.
  2. Try a simple linear regression with all the data to see whether we are getting good results.
  3. Great! Now define a function that takes a list of models and train (and tests) them so we can try a lot of them without repeating code.
  4. Use the function to check LinearRegressor and KNeighborsRegressor.
  5. You can check also the MLPRegressor for this task!
  6. Check and discuss the results.

About


Languages

Language:Jupyter Notebook 100.0%