MCPcopy Create free account
hub / github.com/MorvanZhou/tutorials / minmax_normalization

Function minmax_normalization

theanoTUT/theano12_regularization/full_code.py:30–34  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

28
29
30def minmax_normalization(data):
31 xs_max = np.max(data, axis=0)
32 xs_min = np.min(data, axis=0)
33 xs = (1 - 0) * (data - xs_min) / (xs_max - xs_min) + 0
34 return xs
35
36np.random.seed(100)
37x_data = load_boston().data

Callers 1

full_code.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected