BaşlayınÜcretsiz Başlayın

Normalize basic list data

Now that you are aware of normalization, let us try to normalize some data. goals_for is a list of goals scored by a football team in their last ten matches. Let us standardize the data using the whiten() function.

Bu egzersiz

Cluster Analysis in Python

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Import the whiten function.
  • Use the whiten() function to standardize the data.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Import the whiten function
from scipy.cluster.vq import ____

goals_for = [4,3,2,3,1,1,2,0,1,4]

# Use the whiten() function to standardize the data
scaled_data = ____(____)
print(scaled_data)
Kodu Düzenle ve Çalıştır