~/talk

Adventures in scikit-learn's Random Forest

links:none on file
slides:none on file

Uses scikit-learn RandomForestRegressor on an ASX equities dataset, cleans NaNs with median imputation and replaces all-NaN features with zeros, and constrains trees via n_estimators and max_features (plus depth/sample-leaf limits). Uses out-of-bag CV instead of full cross-validation. Resulting r^2 is negative (−0.02) while rank correlations are modest (Kendall ≈ 11%, Spearman ≈ 15%). A backtest shows the model outperforms the incumbent in 2014 but underperforms in 2013, so the build works only intermittently.

AI-written summary · about

  1. 0:00Intro
  2. 1:01A Brief Introduction to Supervised Learning
  3. 1:15Classification
  4. 1:37Regression
  5. 1:56Training Data
  6. 2:46Test Data
  7. 4:25Why Random Forests?
  8. 8:20Decision Trees
  9. 9:29Random Sample with Replacement
  10. 11:14Number of Trees
  11. 11:54Number of Features
  12. 13:18Depth of Trees
  13. 14:59Installation
  14. 15:32Imputation
  15. 19:29Missing Features
  16. 25:20Evaluating Results
  17. 27:38Alternatives
  18. 29:30Cross-validation
  19. 30:32Out-of-bag Estimates
  20. 34:40Accessing the Trees
  21. 35:11More scikit-learn and Random Forests
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.