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

Normalization of small numbers

In earlier examples, you have normalization of whole numbers. In this exercise, you will look at the treatment of fractional numbers - the change of interest rates in the country of Bangalla over the years. For your use, matplotlib.pyplot is imported as plt.

Bu egzersiz

Cluster Analysis in Python

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

Egzersiz talimatları

  • Scale the list rate_cuts, which contains the changes in interest rates.
  • Plot the original data against the scaled data.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Prepare data
rate_cuts = [0.0025, 0.001, -0.0005, -0.001, -0.0005, 0.0025, -0.001, -0.0015, -0.001, 0.0005]

# Use the whiten() function to standardize the data
scaled_data = ____(____)

# Plot original data
plt.____(____, label='original')

# Plot scaled data
plt.____(____, label='scaled')

plt.legend()
plt.show()
Kodu Düzenle ve Çalıştır