Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Challenge: Build a Preprocessing Workflow | Transformers and Preprocessing Workflows
Mastering scikit-learn API and Workflows

bookChallenge: Build a Preprocessing Workflow

Compito

Swipe to start coding

You are building a basic preprocessing workflow using scikit-learn.

  1. Use SimpleImputer(strategy="mean") for numeric columns.
  2. Use OneHotEncoder(sparse=False) for categorical columns.
  3. Apply both transformations using a ColumnTransformer named preprocessor.
  4. Fit and transform the DataFrame df.
  5. Store the result in the variable result.

Soluzione

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 4
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

Suggested prompts:

Can you explain that in more detail?

What are the main benefits or drawbacks?

Can you give me an example?

close

bookChallenge: Build a Preprocessing Workflow

Scorri per mostrare il menu

Compito

Swipe to start coding

You are building a basic preprocessing workflow using scikit-learn.

  1. Use SimpleImputer(strategy="mean") for numeric columns.
  2. Use OneHotEncoder(sparse=False) for categorical columns.
  3. Apply both transformations using a ColumnTransformer named preprocessor.
  4. Fit and transform the DataFrame df.
  5. Store the result in the variable result.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 4
single

single

some-alt