Python exercise · about 5 minutes · free
Standardise Features
Credit scores are in hundreds, ratios in fractions. Many models need features on the same scale.
Standardising: z = (x − mean) ÷ std, per column. Afterwards each column has mean 0 and standard deviation 1.
Your quest: Set
Z to the column-wise standardised version of X.Try it now Runs in your browser. No sign-in needed. Ctrl+Enter to run.
Hint
Z = (X - X.mean(axis=0)) / X.std(axis=0)Output appears here.