Coursera icon indicating copy to clipboard operation
Coursera copied to clipboard

vectorization of featureNormalization

Open charlie219 opened this issue 6 years ago • 1 comments

i introduced a vectotised approch to the FeatureNoramlisation function which reduced the length of the code.

charlie219 avatar Oct 01 '19 06:10 charlie219

More optimized code :

mu = mean(X_norm);
sigma = std(X_norm);
X_norm = (X_norm - mu) ./ sigma;

anonrootkit avatar Feb 05 '20 17:02 anonrootkit