Loading...
Normalize array data using broadcasting.
Normalization scales data to a standard range. Common methods:
These operations use broadcasting naturally.
Write a function normalize(arr) that normalizes a 2D array column-wise.
Return a dictionary with:
[[1, 2], [3, 4], [5, 6]]
Min-max scales each column to [0, 1], z-score centers each column
Column means/stds are computed, then broadcast to normalize