Created
May 27, 2016 22:14
-
-
Save KitB/df86d153b29326ccb6fa0c4c70980dab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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