combine
来自「本程序是基于linux系统下c++代码」· 代码 · 共 45 行
TXT
45 行
combine package:randomForest R Documentation
_C_o_m_b_i_n_e _E_n_s_e_m_b_l_e_s _o_f _T_r_e_e_s
_D_e_s_c_r_i_p_t_i_o_n:
Combine two more more ensembles of trees into one.
_U_s_a_g_e:
combine(...)
_A_r_g_u_m_e_n_t_s:
...: two or more objects of class 'randomForest', to be combined
into one.
_V_a_l_u_e:
An object of class 'randomForest'.
_N_o_t_e:
The 'confusion', 'err.rate', 'mse' and 'rsq' components (as well
as the corresponding components in the 'test' compnent, if exist)
of the combined object will be 'NULL'.
_A_u_t_h_o_r(_s):
Andy Liaw andy_liaw@merck.com
_S_e_e _A_l_s_o:
'randomForest', 'grow'
_E_x_a_m_p_l_e_s:
data(iris)
rf1 <- randomForest(Species ~ ., iris, ntree=50, norm.votes=FALSE)
rf2 <- randomForest(Species ~ ., iris, ntree=50, norm.votes=FALSE)
rf3 <- randomForest(Species ~ ., iris, ntree=50, norm.votes=FALSE)
rf.all <- combine(rf1, rf2, rf3)
print(rf.all)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?