簡體   English   中英

在查看分類后的混淆矩陣時,R 包 bartMachine 中是否存在錯誤?

[英]Is there an error in the R package, bartMachine, when looking at the confusion matrix following classification?

我正在瀏覽 R 的 bartMachine 小插圖,最后,它有一個使用 bartMachine 解決分類問題的示例。 這是使用 MASS 包中的 Pima.te 數據集。 當嘗試使用 bartMachine 預測“類型”時(僅跟隨小插圖),通過將我的結果與小插圖的結果進行比較,看起來我的混淆矩陣標記不正確。 我得到了極高的錯誤率 - 非對角線上的數字看起來非常像小插圖的真正數和真負數。 其他人可以證實這一點嗎?

    options(java.parameters = "-Xmx5g")
    library(bartMachine)
    set_bart_machine_num_cores(4)
    data("Pima.te",package = "MASS")
    X <- data.frame(Pima.te[,-8])
    y <- Pima.te[,8]

    bart_machine_cv <- bartMachineCV(X,y)
    bart_machine_cv

看起來包中確實存在標簽錯誤,將在下一版本(1.2.3)中修復https://github.com/kapelner/bartMachine/blob/255c206be6834d0ab13b9689a41d961de1e73d8a/bartMachine/CHANGELOG

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM