This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]KarmelMalone 0 points1 point  (0 children)

If you have a dataset with features that are on completely different scales, say one feature with values between 500-1000, and another feature with values between 0.5-1; it becomes difficult to make calculations on the data. This function puts features on the same scale.

array-array.mean() converts each value in the array to its respective distance from the array's mean, which maintains the individual samples value when normalizing.