In http://cs231n.imtqy.com/neural-networks-2/ it is mentioned that for convolutional neural networks, it is preferable to project data using methods of subtraction and normalization of the average value.
I'm just wondering what is the best fit with Tensorflow.
Mean
X -= np.mean(X)
Normalization
X /= np.std(X, axis = 0)
You are looking for
tf.image.per_image_whitening(image)
tf.image.per_image_standardization(image)
Linearly scale the image to have a zero average and unit rate.op (x - mean)/adjust_stddev, - , adjust_stddev = max (stddev, 1.0/sqrt (image.NumElements())).
Linearly scale the image to have a zero average and unit rate.
op (x - mean)/adjust_stddev, - , adjust_stddev = max (stddev, 1.0/sqrt (image.NumElements())).
, real_valued_column , :
real_valued_column("col_name", normalizer = lambda x: (x-X.mean())/X.std())
X - . , , . .
- tf.image.per_image_standardization. https://www.tensorflow.org/api_docs/python/tf/image/per_image_standardization .
tf.image.per_image_standardization
Source: https://habr.com/ru/post/1650028/More articles:Force type of child interface types - genericsCan you start the process on top of the top window? (csharp wpf) - cjava.lang.RuntimeException: Не удалось запустить Cipher с помощью FingerPrint - javaChart.js changes the color of a bar - jqueryHow to open a process in the form of Windows - c #Xamarin proguard.ParseException: Unknown parameter '' on line 1 of the file 'Properties / proguard.cfg' - androidRunning exe inside WinForm project tab - exeКак изменить цвет только одного столбца в Barchart, используя Chart.js - javascriptHow to use getUserMedia with Cordova on Android? - javascriptType f in pointfree style? - haskellAll Articles