始める無料で始める

ワークフローを作成する

離職(attrition)を調べ続けるにあたり、利用可能な予測子をすべて使って、高精度な予測を目指すモデルを作るのは自然な流れです。どうなるか試してみましょう。

この演習はコースの一部です

Rで学ぶ特徴量エンジニアリング

コースを見る

演習の手順

  • すべての特徴量に基づいて Attrition を予測するレシピを作成します。
  • モデルとレシピをワークフローにまとめます。

実践的なインタラクティブ演習

このサンプルコードを完成させて、この演習に挑戦してみましょう。

lr_model <- logistic_reg()

# Create a recipe to predict Attrition based on all features
lr_recipe <- 
  recipe(___, 
         data = train) 

# Bundle the model and recipe in a workflow
lr_workflow <- 
  workflow() %>%
  add_model(lr_model) %>%
  ___(lr_recipe)

lr_workflow
コードを編集して実行