【发布时间】:2020-11-28 09:13:27
【问题描述】:
我正在尝试使用 R 中的引导包计算 F1 分数的置信区间。但它似乎不起作用,我不知道为什么。
library(MLmetrics)
fci<-function(data,indices,x,y){
d<-data[indices,]
r<-F1_Score(x,y)
r
}
set.seed(12345)
bootout<-boot(data=test,
x=test$jbz,
y=test$`DR_ai+jd`,
R=2000,
statistic=fci
)
boot.ci(bootout)
错误:
[1] "All values of t are equal to 0.996637873066777 \n Cannot calculate confidence intervals"
NULL
【问题讨论】: