Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Creating a Pipeline | Section
Foundations of Machine Learning
セクション 1.  20
single

single

bookChallenge: Creating a Pipeline

メニューを表示するにはスワイプしてください

Use the original penguins.csv: first remove the two rows with insufficient data. Build one preprocessing pipeline that performs encoding, imputing, and scaling.

Only 'sex' and 'island' should be encoded, so use a ColumnTransformer. After that, apply SimpleImputer and StandardScaler to all features.

Here is a reminder of the make_column_transformer() and make_pipeline() functions you will use.

タスク

スワイプしてコーディングを開始

  1. Import make_pipeline.
  2. Create ct using OneHotEncoder for 'sex' and 'island', with remainder='passthrough'.
  3. Build a pipeline: ctSimpleImputer('most_frequent')StandardScaler.
  4. Transform X and store the result in X_transformed.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 1.  20
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt