Skip to content

Instantly share code, notes, and snippets.

@KitB
Created May 27, 2016 22:14
Show Gist options
  • Save KitB/df86d153b29326ccb6fa0c4c70980dab to your computer and use it in GitHub Desktop.
Save KitB/df86d153b29326ccb6fa0c4c70980dab to your computer and use it in GitHub Desktop.
class Normalizer(object):
def __init__(self, vector_length):
_minima = np.zeros(vector_length)
_maxima = np.zeros(vector_length)
def update(self, vector):
np.minimum(self._minima, vector, self._minima)
np.maximum(self._maxima, vector, self._maxima)
def normalize(self, vector):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment