MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / scale_image

Function scale_image

unsupervised_class3/util.py:120–122  ·  view source on GitHub ↗
(im)

Source from the content-addressed store, hash-verified

118
119
120def scale_image(im):
121 # scale to (-1, +1)
122 return (im / 255.0)*2 - 1
123
124
125def files2images_theano(filenames):

Callers 2

files2images_theanoFunction · 0.85
files2imagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected