cost 71 ms
我們如何計算標准中的多類概率?

[英]How do we calculate multiclass probabilities in yardstick?

我有一個多類分類問題,想使用pr_curve中的 yardstick 庫中的 pr_curve 構建精確召回曲線。這個 function 需要將每個 class 的概率的 tibble 提供給它,就像這樣(這是data(hpc_cv) )。 我如何從我的分類結果中到達那里,存儲為 tibble ...

Tidymodels 預測方法給出不同的結果

[英]Tidymodels prediction methods giving different results

我對使用 tidymodels 從重新采樣中獲取指標有點困惑。 我似乎從同一組重新采樣中獲得了 3 個不同的指標,具體取決於我是使用 collect_predictions() %>% metrics() 還是只是 collect_metrics() 這是一個簡單的例子...... 以下三行給 ...

在 Tidymodels 中使用分類成本和自定義成本矩陣進行調整

[英]Tuning with classification_cost and custom cost matrix in Tidymodels

我正在使用 tidymodels 來構建一個模型,其中假陰性比假陽性成本更高。 因此,我想使用yardstick::classification_cost指標進行超參數調整,但使用反映這一事實的自定義分類成本矩陣。 在擬合模型后執行此操作非常簡單: library(tidymodels) # l ...

rmse(., truth = variable,estimate = .pred) 中的錯誤:R Tidymodels 中未使用的參數(truth = ,estimate = .pred)(標准)

[英]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 ...

tidymodels metric_set:錯誤:`metric_set()` 的所有輸入都必須是函數。 這些輸入不是:(2)

[英]tidymodels metric_set:Error: All inputs to `metric_set()` must be functions. These inputs are not: (2)

我在tidymodels包中使用了recipe()函數來填補缺失值和修復不平衡的數據。 這是我的數據; 這是我的代碼; 它一直工作到這里現在我使用metric_set()函數來適應每個重采樣。 這是我的代碼如下: 我收到錯誤說: 但它在沒有精度參數的情況下工作 有人對如何做到 ...

如何為 yardstick 包中的 roc_auc() 函數正確設置估計參數

[英]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, 中的錯誤:形式參數“估計”與多個實際參數匹配 ...

從R包標尺修改`pr_curve`和`auc_curve`的數字大小

[英]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 = ...

如何通過小標題插入插入符號:: confusionmatrix()?

[英]how to pass a tibble to caret::confusionmatrix()?

考慮以下簡單示例: 我想將此tibble傳遞給caret::confusionMatrix以便同時獲得我需要的所有指標( accuracy , recall等)。 如您所見, tibble包含計算性能統計信息所需的所有信息。 例如,您可以看到在測試數據集中(此處不可用),有100 ...

Apache Ignite和Yardstick

[英]Apache Ignite and Yardstick

有沒有人可以向我解釋有關Apache Ignite和Yardstick的信息? 據我所知,Yardstick是Apache Ignite的基准測試工具。 我知道如何運行Apache Ignite以及如何設置其內存容量。 (我知道默認值為1 GB) 當我運行Ignite時,它顯 ...

用於計算精度和召回率的Tidyverse語法

[英]Tidyverse syntax for calculating precision and recall

我正在嘗試計算我的數據框中每個組的AUC,精度,召回,准確度(我有一個數據幀,它預測了連接的三個不同模型的數據)。 這樣做的tidyverse語法是什么? 我想使用Max Kuhn的尺度包來計算這些指標。 這是一個示例df,這是我到目前為止的地方: 指標: 現在,我 ...

分組數據上的yardstick :: rmse返回錯誤和不正確的結果

[英]yardstick::rmse on grouped data returns error and incorrect results

我想評估幾個回歸模型的性能,並使用yardstick包裝計算RMSE。 這是一些示例數據 當我運行以下代碼 我收到以下錯誤 summarise_impl(.data,點)中的錯誤:沒有適用於“ rmse”的適用方法應用於類“ c('double','numeric') ...


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