'standardize the data using the stored transformation'

def transform(self, data):

    if (self.mean is None):
        return (np.asarray(data) / self.scale)
    else:
        return ((np.asarray(data) - self.mean) / self.scale)
