

def reset(self, dim):
    ' Resets / Initializes the hash for the specified dimension. '
    if (self.dim != dim):
        raise Exception('PCA hash is trained for specific dimension!')

dataset/ETHPy150Open pixelogik/NearPy/nearpy/hashes/pcabinaryprojections.py PCABinaryProjections.reset/original