Path: blob/master/lessons/lesson_11/MLB - Decision Tree Practice.ipynb
1904 views
Kernel: Python [conda env:Anaconda3]
Import the MLB Hitters Data Set
In [1]:
In [2]:
Out[2]:
In [4]:
Out[4]:
(322, 20)
Create a Few New Features for the Data Set (i.e. batting average)
In [ ]:
Create a train test split
In [6]:
Use SkLearn to build a decision tree regressor to predict Salary
In [ ]:
Does it work well? What is the MSE? Plot your predictions against the actual salaries
In [ ]: