📄 treesize
字号:
treesize package:randomForest R Documentation
_S_i_z_e _o_f _t_r_e_e_s _i_n _a_n _e_n_s_e_m_b_l_e
_D_e_s_c_r_i_p_t_i_o_n:
Size of trees (number of nodes) in and ensemble.
_U_s_a_g_e:
treesize(x, terminal=TRUE)
_A_r_g_u_m_e_n_t_s:
x: an object of class 'randomForest', which contains a 'forest'
component.
terminal: count terminal nodes only ('TRUE') or all nodes ('FALSE'
_V_a_l_u_e:
A vector containing number of nodes for the trees in the
'randomForest' object.
_N_o_t_e:
The 'randomForest' object must contain the 'forest' component;
i.e., created with 'randomForest(..., keep.forest=TRUE)'.
_A_u_t_h_o_r(_s):
Andy Liaw andy_liaw@merck.com
_S_e_e _A_l_s_o:
'randomForest'
_E_x_a_m_p_l_e_s:
data(iris)
iris.rf <- randomForest(Species ~ ., iris)
hist(treesize(iris.rf))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -