恭喜您!

在 R 中使用 tidymodels 建模

David Svancer

Data Scientist

tidymodels 生态系统

tidymodels 包的可视化

在 R 中使用 tidymodels 建模

回归建模

使用 parsnip 指定模型

 

parsnip 引擎

训练并评估线性回归模型

燃油效率数据集的 R 平方图

在 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...