Skip to content

Instantly share code, notes, and snippets.

@Sycor4x
Sycor4x / rf_ntree.R
Last active May 17, 2021 21:11
Demonstration of rf behavior as additional trees are added
library(randomForest)
library(ggplot2)
library(data.table)
set.seed(59761) # chosen by rollig 5d10
`%nin%` <- function(x,y)!(`%in%`(x,y))
SMOOTHER <- 0.5 # "prior" on classification decisions
NTREE <- 1024 # number of trees to grow
dat <- data.table(diamonds)
Springing into action the moment their SCOTUS wristwatch transponders signaled the alert, all nine members of the U.S. Supreme Court reportedly gathered in their top-secret subterranean chambers Friday to receive their latest directive from the giant holographic head of former Chief Justice John Marshall.