可以使用 as.data.frame.rsplit
將分析或評估代碼作為數據幀返回(由 data
參數指定)。 analysis
和 assessment
是快捷方式。
用法
# S3 method for rsplit
as.data.frame(x, row.names = NULL, optional = FALSE, data = "analysis", ...)
analysis(x, ...)
# S3 method for default
analysis(x, ...)
# S3 method for rsplit
analysis(x, ...)
assessment(x, ...)
# S3 method for default
assessment(x, ...)
# S3 method for rsplit
assessment(x, ...)
參數
- x
-
rsplit
對象。 - row.names
-
NULL
或給出 DataFrame 行名稱的字符向量。不允許存在缺失值。 - optional
-
邏輯:是否應該檢查數據的列名是否合法?
- data
-
"analysis" 或 "assessment" 指定返回哪些數據。
- ...
-
目前未使用。
相關用法
- R rsample add_resample_id 使用重采樣標識符擴充數據集
- R rsample apparent 表觀錯誤率抽樣
- R rsample validation_set 創建驗證拆分以進行調整
- R rsample initial_split 簡單的訓練/測試集分割
- R rsample populate 添加評估指標
- R rsample int_pctl 自舉置信區間
- R rsample vfold_cv V 折交叉驗證
- R rsample rset_reconstruct 使用新的 rset 子類擴展 rsample
- R rsample group_mc_cv 小組蒙特卡羅交叉驗證
- R rsample group_vfold_cv V 組交叉驗證
- R rsample rolling_origin 滾動原點預測重采樣
- R rsample reverse_splits 反轉分析和評估集
- R rsample group_bootstraps 團體自舉
- R rsample labels.rset 從 rset 對象中查找標簽
- R rsample get_fingerprint 獲取重采樣的標識符
- R rsample bootstraps 引導抽樣
- R rsample validation_split 創建驗證集
- R rsample reg_intervals 具有線性參數模型的置信區間的便捷函數
- R rsample clustering_cv 集群交叉驗證
- R rsample initial_validation_split 創建初始訓練/驗證/測試拆分
- R rsample get_rsplit 從 rset 中檢索單個 rsplit 對象
- R rsample loo_cv 留一交叉驗證
- R rsample complement 確定評估樣本
- R rsample slide-resampling 基於時間的重采樣
- R rsample labels.rsplit 從 rsplit 對象中查找標簽
注:本文由純淨天空篩選整理自Hannah Frick等大神的英文原創作品 Convert an rsplit object to a data frame。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。