開始使用免費開始

視覺化正規化後的資料

在將資料正規化之後,你可以把縮放後的資料與原始資料進行比較,看看差異。上一個練習中的變數 goals_forscaled_data 已經替你準備好。

本練習屬於課程

Python 中的叢集分析

檢視課程

練習說明

  • 使用 matplotlib 繪製原始資料與縮放後的資料。
  • 在圖中顯示圖例。
  • 顯示圖表。

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

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

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

# Show the legend in the plot
plt.____()

# Display the plot
plt.____()
編輯並執行程式碼