恭喜你!

在 R 中使用 tidymodels 建立模型

David Svancer

Data Scientist

tidymodels 生態系

tidymodels 套件的視覺化

在 R 中使用 tidymodels 建立模型

迴歸建模

使用 parsnip 指定模型

 

parsnip 引擎

訓練與評估線性迴歸模型

燃油效率資料集的 R squared 圖

在 R 中使用 tidymodels 建立模型

分類建模

使用 logistic_reg() 的羅吉斯迴歸

 

對潛在客戶評分資料的羅吉斯迴歸決策邊界圖

用混淆矩陣與 ROC 曲線評估分類效能

潛在客戶評分資料的 ROC 曲線

在 R 中使用 tidymodels 建立模型

特徵工程

使用 recipes 套件進行特徵工程的工作流程圖

在 R 中使用 tidymodels 建立模型

用交叉驗證微調模型

以交叉驗證與 fit_resamples() 建立模型效能輪廓

 

  • 用網格搜尋調整超參數
  • 完成最終模型工作流程

 

cost_complexity tree_depth min_n
0.001 20 35
0.001 20 15
0.001 35 35
0.001 35 15
0.2 20 35
... ... ...
在 R 中使用 tidymodels 建立模型

謝謝!

在 R 中使用 tidymodels 建立模型

Preparing Video For Download...