StatsLearning Lect10 R trees B 111213

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

When I tried to run this code Today I have some difference, I guess it is because the updates in the packages, But one thing i couldn't solve was the line 107
"predmat <- predict(boost.Boston, newdata = Boston[-train], n.trees=n.trees)"

Throws me an error:
"Error in eval(predvars, data, env) : object 'zn' not found"

Haav
Автор

I think the obb and test curves appear switched.
Because in matplot you put (test.err, oob .err) but in legend you put ('OOB', 'Test'). Am I right?
This explains why the result was at first theoretically surprising.

leonardojose