![](/img/trans.png)
[英]How do we calculate multiclass probabilities in yardstick?
我有一個多類分類問題,想使用pr_curve中的 yardstick 庫中的 pr_curve 構建精確召回曲線。這個 function 需要將每個 class 的概率的 tibble 提供給它,就像這樣(這是data(hpc_cv) )。 我如何從我的分類結果中到達那里,存儲為 tibble ...
[英]How do we calculate multiclass probabilities in yardstick?
我有一個多類分類問題,想使用pr_curve中的 yardstick 庫中的 pr_curve 構建精確召回曲線。這個 function 需要將每個 class 的概率的 tibble 提供給它,就像這樣(這是data(hpc_cv) )。 我如何從我的分類結果中到達那里,存儲為 tibble ...
[英]Tidymodels prediction methods giving different results
我對使用 tidymodels 從重新采樣中獲取指標有點困惑。 我似乎從同一組重新采樣中獲得了 3 個不同的指標,具體取決於我是使用 collect_predictions() %>% metrics() 還是只是 collect_metrics() 這是一個簡單的例子...... 以下三行給 ...
[英]Tuning with classification_cost and custom cost matrix in Tidymodels
我正在使用 tidymodels 來構建一個模型,其中假陰性比假陽性成本更高。 因此,我想使用yardstick::classification_cost指標進行超參數調整,但使用反映這一事實的自定義分類成本矩陣。 在擬合模型后執行此操作非常簡單: library(tidymodels) # l ...
[英]Error in rmse(., truth = variable, estimate = .pred) : unused arguments (truth = , estimate = .pred) in R Tidymodels (yardstick)
我正在使用此Tidymodels 教程擬合回歸樹模型。 歐洲防風草模型對象 擬合時間:2.5sn= 56868 node), split, n, deviance, yval * 表示終端節點 根 56868 32009190000 455.2222 貸方計數< 728.5 ...
[英]Get AUC on training data from a fitted workflow in Tidymodels?
我正在努力解決如何使用 tidymodels 從邏輯回歸 model 獲得 AUC。 這是一個使用內置mpg數據集的示例。library(tidymodels) library(tidyverse) # Use mpg dataset df <- mpg # Create an indi ...
[英]How to add beta parameter to F1 Score for fit_resample in TidyModel
我在 TidyModels 中使用 fit_resamples() function 來獲得如下 F1 指標。 我想知道如何傳遞默認設置為1的beta參數。 非常感謝! 扎尼 ...
[英]Add (or override) fill aesthetic to a ggplot2 autoplot function
我想為自動繪圖功能添加填充美感。 具體而言,向autoplot.conf_mat從功能yardstick封裝。 library(tidyverse) library(tidymodels) data("hpc_cv") cm <- hpc_cv %>% filter(Resamp ...
[英]tidymodels metric_set:Error: All inputs to `metric_set()` must be functions. These inputs are not: (2)
我在tidymodels包中使用了recipe()函數來填補缺失值和修復不平衡的數據。 這是我的數據; 這是我的代碼; 它一直工作到這里現在我使用metric_set()函數來適應每個重采樣。 這是我的代碼如下: 我收到錯誤說: 但它在沒有精度參數的情況下工作 有人對如何做到 ...
[英]R-package development using travis CI gets error due to failing to install dependency package
在 RStudio 中,我將usethis::use_travis()和 TRAVIS CI 與 Github 一起使用。 但是,我的 package 無法構建,因為yardstick 0.0.7 無法構建。 請注意,我的 package 可以使用rcmdcheck()和devtools::chec ...
[英]How to set the estimate argument correctly for roc_auc() function in yardstick package
我想計算模型的 AUC。 此代碼有效。 我喜歡指定參數,以便我的代碼更易於閱讀和調試。 這給出了以下錯誤 metric_summarizer(metric_nm = "roc_auc", metric_fn = roc_auc_vec, 中的錯誤:形式參數“估計”與多個實際參數匹配 ...
[英]Modify figure sizes of `pr_curve` and `auc_curve` from R package yardstick
我正在嘗試使用庫“標尺”生成ROC曲線和精確回憶曲線。 但是,我找不到修改圖形的方法。 這是一個玩具的例子。 ## Precision-recall curve data.frame(true = as.factor(rep(c(0,1), 10)), pred = ...
[英]how to pass a tibble to caret::confusionmatrix()?
考慮以下簡單示例: 我想將此tibble傳遞給caret::confusionMatrix以便同時獲得我需要的所有指標( accuracy , recall等)。 如您所見, tibble包含計算性能統計信息所需的所有信息。 例如,您可以看到在測試數據集中(此處不可用),有100 ...
[英]Apache Ignite and Yardstick
有沒有人可以向我解釋有關Apache Ignite和Yardstick的信息? 據我所知,Yardstick是Apache Ignite的基准測試工具。 我知道如何運行Apache Ignite以及如何設置其內存容量。 (我知道默認值為1 GB) 當我運行Ignite時,它顯 ...
[英]Tidyverse syntax for calculating precision and recall
我正在嘗試計算我的數據框中每個組的AUC,精度,召回,准確度(我有一個數據幀,它預測了連接的三個不同模型的數據)。 這樣做的tidyverse語法是什么? 我想使用Max Kuhn的尺度包來計算這些指標。 這是一個示例df,這是我到目前為止的地方: 指標: 現在,我 ...
[英]yardstick::rmse on grouped data returns error and incorrect results
我想評估幾個回歸模型的性能,並使用yardstick包裝計算RMSE。 這是一些示例數據 當我運行以下代碼 我收到以下錯誤 summarise_impl(.data,點)中的錯誤:沒有適用於“ rmse”的適用方法應用於類“ c('double','numeric') ...