set.seed(292315)
rf <- forestry(x = iris[,-1],
y = iris[, 1])
plot(x = rf)
plot(x = rf, tree.id = 2)
plot(x = rf, tree.id = 500)
ridge_rf <- forestry(
x = iris[,-1],
y = iris[, 1],
replace = FALSE,
nodesizeStrictSpl = 10,
mtry = 4,
ntree = 10,
minSplitGain = .004,
linear = TRUE,
overfitPenalty = 1.65,
linFeats = 1:2)
plot(x = ridge_rf)
plot(x = ridge_rf, tree.id = 2)
plot(x = ridge_rf, tree.id = 10)
Run the code above in your browser using DataLab