Joseph
Joseph

Reputation: 353

Normalize 2D array given mean and std value

l have a dataset called 2d_data which has a dimension=(44500,224,224) such that 44500 is the number of sample.

l would like to normalize this data set using the following mean and std values :

mean=0.485 and std=0.229

How can l do that ?

Thank you

Upvotes: 1

Views: 1093

Answers (1)

Hadus
Hadus

Reputation: 1660

Normalization is: (X - Mean) / Deviation

So do just that: (2d_data - mean) / std

Upvotes: 3

Related Questions