⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 margin

📁 本程序是基于linux系统下c++代码
💻
字号:
margin             package:randomForest             R Documentation

_M_a_r_g_i_n_s _o_f _r_a_n_d_o_m_F_o_r_e_s_t _C_l_a_s_s_i_f_i_e_r

_D_e_s_c_r_i_p_t_i_o_n:

     Compute or plot the margin of predictions from a randomForest
     classifier.

_U_s_a_g_e:

     margin(rf, observed)
     ## S3 method for class 'margin':
     plot(x, sort=TRUE, ...)

_A_r_g_u_m_e_n_t_s:

      rf: an object of class 'randomForest', whose 'type' is not
          'regression'.

observed: the response variable (a factor) used to train 'rf'.

       x: an object of class 'margin', as returned by the function
          'margin'.

    sort: Should the data be sorted by their class labels?

     ...: other graphical parameters to be passed to 'plot.default'.

_V_a_l_u_e:

     For 'margin', the _margin_ of observations from the 'randomForest'
     classifier.  The margin of a data point is defined as the
     proportion of votes for the correct class minus maximum proportion
     of votes for the other classes.  Thus under majority votes,
     positive margin means correct classification, and vice versa.

_A_u_t_h_o_r(_s):

     Robert Gentlemen, with slight modifications by Andy Liaw

_S_e_e _A_l_s_o:

     'randomForest'

_E_x_a_m_p_l_e_s:

     set.seed(1)
     data(iris)
     iris.rf <- randomForest(Species ~ ., iris, keep.forest=FALSE)
     plot(margin(iris.rf, iris$Species))

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -