'Augment data by stretching x and y axis randomly [1-e, 1+e].'

def random_scale(self, data):

    x_scale_factor = ((((np.random.random() - 0.5) * 2) * self.random_scale_factor) + 1.0)
    y_scale_factor = ((((np.random.random() - 0.5) * 2) * self.random_scale_factor) + 1.0)
    result = np.copy(data)
    result[:, 0] *= x_scale_factor
    result[:, 1] *= y_scale_factor
    return result
