deep-learning-with-python-notebooks icon indicating copy to clipboard operation
deep-learning-with-python-notebooks copied to clipboard

3.7 example z-score compute

Open david-sail opened this issue 5 years ago • 2 comments

mean = train_data.mean(axis=0) train_data -= mean std = train_data.std(axis=0) train_data /= std

test_data -= mean test_data /= std

modify

mean = train_data.mean(axis=0) std = train_data.std(axis=0) train_data -= mean train_data /= std

test_data -= mean test_data /= std

david-sail avatar Jul 08 '19 07:07 david-sail

Think there's no needing in this. Maybe even operation std will be executed faster on data obtained by mean since std will be use zero subtract operation to find the mean.

chamecall avatar Jul 08 '19 07:07 chamecall

V[X+c] = V[X], where c is a constant value

happyTonakai avatar Jul 10 '19 01:07 happyTonakai