Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Preprocessing the Dataset | Core Concepts
Cluster Analysis
course content

Зміст курсу

Cluster Analysis

Cluster Analysis

1. Clustering Fundamentals
2. Core Concepts
3. K-Means
4. Hierarchical Clustering
5. DBSCAN
6. GMMs

book
Challenge: Preprocessing the Dataset

Завдання

Swipe to start coding

You are given a synthetic dataset stored in the data variable.

  • Replace missing values in the 'Age' column with the mean value of this column and store the result in this column.
  • Create an instance of an appropriate encoder, which will be used for the 'City' column and store it in the city_encoder variable. Make sure to specify the removal of the first column.
  • Encode the values in the 'City' column using city_encoder and store the result in the city_encoded variable.
  • Create an instance of an appropriate encoder, which will be used for the 'Income' column and store it in the income_encoder variable. Note that 'High' > 'Middle' > 'Low'.
  • Encode the values in the 'Income' column using income_encoder and store the result in the 'Income' column.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 6
toggle bottom row

book
Challenge: Preprocessing the Dataset

Завдання

Swipe to start coding

You are given a synthetic dataset stored in the data variable.

  • Replace missing values in the 'Age' column with the mean value of this column and store the result in this column.
  • Create an instance of an appropriate encoder, which will be used for the 'City' column and store it in the city_encoder variable. Make sure to specify the removal of the first column.
  • Encode the values in the 'City' column using city_encoder and store the result in the city_encoded variable.
  • Create an instance of an appropriate encoder, which will be used for the 'Income' column and store it in the income_encoder variable. Note that 'High' > 'Middle' > 'Low'.
  • Encode the values in the 'Income' column using income_encoder and store the result in the 'Income' column.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 6
Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Ми дуже хвилюємося, що щось пішло не так. Що трапилося?
some-alt