Many models, such as linear models and neural networks, train better when features are on similar scales. Standardization centers each feature and divides by its spread, so no feature dominates just because of its units.
Implement standard_scale(X), which centers each column and scales it to unit standard deviation.
Compute the column means and standard deviations, guard zero deviations, then transform.
No results yet
Run your code to check it against the examples, or submit to run every test.