📄 predict.knn
字号:
predict.knn package:knnTree R Documentation
_P_r_e_d_i_c_t _u_s_i_n_g _a _k_n_n _o_b_j_e_c_t
_D_e_s_c_r_i_p_t_i_o_n:
Predict class labels from a knn object and some data
_U_s_a_g_e:
predict.knn (object, test, train, theyre.the.same = FALSE,
return.classifications = FALSE, verbose=0, ...)
_A_r_g_u_m_e_n_t_s:
object:
test:
train:
theyre.the.same:
return.classifications:
verbose:
...:
{Other arguments, currently ignored}
_D_e_t_a_i_l_s:
This uses a knn object created by R{knn.var} to make predictions
on some data.
_V_a_l_u_e:
List with a component named "rate" giving test set error rate. If
return.classifications = TRUE, a second item named classifications
is a vector with the classification of each item in the test set.
_A_u_t_h_o_r(_s):
Sam Buttrey buttrey@nps.navy.mil
_R_e_f_e_r_e_n_c_e_s:
Buttrey and Karo, 2002
_S_e_e _A_l_s_o:
'link{knn.var}', 'knnTree'
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -