砍掉model_stack。
刪除調用。
刪除用於訓練的控件。
刪除訓練數據。
刪除環境。
刪除擬合值。
用法
# S3 method for model_stack
axe_call(x, verbose = FALSE, ...)
# S3 method for model_stack
axe_ctrl(x, verbose = FALSE, ...)
# S3 method for model_stack
axe_data(x, verbose = FALSE, ...)
# S3 method for model_stack
axe_env(x, verbose = FALSE, ...)
# S3 method for model_stack
axe_fitted(x, verbose = FALSE, ...)
例子
# build a regression model stack
st <-
stacks() %>%
add_candidates(reg_res_lr) %>%
add_candidates(reg_res_sp) %>%
blend_predictions() %>%
fit_members()
# remove any of the "butcherable"
# elements individually
axe_call(st)
#> ── A stacked ensemble model ─────────────────────────────────────
#>
#> Print methods for butchered model stacks are disabled.
axe_ctrl(st)
#> ── A stacked ensemble model ─────────────────────────────────────
#>
#> Print methods for butchered model stacks are disabled.
axe_data(st)
#> ── A stacked ensemble model ─────────────────────────────────────
#>
#> Print methods for butchered model stacks are disabled.
axe_fitted(st)
#> ── A stacked ensemble model ─────────────────────────────────────
#>
#> Print methods for butchered model stacks are disabled.
axe_env(st)
#> ── A stacked ensemble model ─────────────────────────────────────
#>
#> Print methods for butchered model stacks are disabled.
# or do it all at once!
butchered_st <- butcher(st, verbose = TRUE)
#> ✔ Memory released: "158.32 kB"
#> ✖ Disabled: `print()` and `summary()`
format(object.size(st))
#> [1] "2490296 bytes"
format(object.size(butchered_st))
#> [1] "1576824 bytes"
相關用法
- R stacks add_candidates 將模型定義添加到數據堆棧
- R stacks predict.model_stack 使用模型堆棧進行預測
- R stacks fit_members 擬合具有非零堆疊係數的模型堆疊成員
- R stacks blend_predictions 從數據堆棧中確定堆棧係數
- R stacks collect_parameters 收集候選參數和疊加係數
- R stlmethods STL 對象的方法
- R medpolish 矩陣的中值波蘭(穩健雙向分解)
- R naprint 調整缺失值
- R summary.nls 總結非線性最小二乘模型擬合
- R summary.manova 多元方差分析的匯總方法
- R formula 模型公式
- R nls.control 控製 nls 中的迭代
- R aggregate 計算數據子集的匯總統計
- R deriv 簡單表達式的符號和算法導數
- R kruskal.test Kruskal-Wallis 秩和檢驗
- R quade.test 四方測試
- R decompose 移動平均線的經典季節性分解
- R profile-methods stats4 包中的函數配置文件方法
- R plot.stepfun 繪製階躍函數
- R alias 查找模型中的別名(依賴項)
- R qqnorm 分位數-分位數圖
- R update-methods stats4包中函數更新的方法
- R eff.aovlist 多層方差分析的計算效率
- R pairwise.t.test 成對 t 檢驗
- R loglin 擬合對數線性模型
注:本文由純淨天空篩選整理自Max Kuhn等大神的英文原創作品 Axing a model_stack.。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。