0

我用 predict_type="prob" 训练了一个学习者。在进行预测时,在计算度量时会应用“默认障碍率”。我想改变这个障碍率。我怎样才能做到这一点?

learner=lrn("classif.kknn", k=10, distance=2, kernel="rectangular")   # set kernel to rectangular for "standard" knn
learner$predict_type="prob" # needs to be set, so we can see probabilities

learner$train(task, row_ids=1:300)

predictions=learner$predict(task,row_ids = 301:346)

predictions$score(msr("classif.acc")) # ?? How can I change the hurdle rate, such that this is not calculated with the default setting?


4

0 回答 0