The Startup
Published in

The Startup

Random Forest From ModelBuilding to Hyperparameter Tuning in Python

Image by Dmitry Gladkikh from Unsplash
  1. each tree gets assigned all features then use subset of features at each node.
  2. each tree gets assigned subset of features then use all features at each node.
  3. each tree gets assigned subset of features and also subset of features at each node.
df.head()
non null value percentage for columns in each city
  1. Fill with mean/median/mode values
  2. Fill by finding highly correlated column.
  3. Use other features to predict missing value in a column.
train_MAE = 3.55
test_MAE = 9.69

--

--

Get smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +768K followers.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store