def set_noise_ratio(self, noise_ratio, goal_noise_ratio):
    noise_ratio *= 1
    y_noise_scale = (0.15 / (noise_ratio * Y_NOISE))
    self.obj_sampler = LineHoldoutSampler([((- noise_ratio) * OBJ_X_NOISE), (((- y_noise_scale) * noise_ratio) * Y_NOISE)], [(noise_ratio * OBJ_X_NOISE), ((y_noise_scale * noise_ratio) * Y_NOISE)])
    self.goal_sampler = HoldoutSampler([((- goal_noise_ratio) * X_NOISE), ((- goal_noise_ratio) * Y_NOISE)], [(goal_noise_ratio * X_NOISE), (goal_noise_ratio * Y_NOISE)], 1, True)
def set_noise_ratio(self, noise_ratio, goal_noise_ratio):
    noise_ratio *= 1
    y_noise_scale = (0.15 / (noise_ratio * Y_NOISE))
    self.obj_sampler = LineHoldoutSampler([((- noise_ratio) * OBJ_X_NOISE), (((- y_noise_scale) * noise_ratio) * Y_NOISE)], [(noise_ratio * OBJ_X_NOISE), ((y_noise_scale * noise_ratio) * Y_NOISE)])
    self.goal_sampler = HoldoutSampler([((- goal_noise_ratio) * X_NOISE), ((- goal_noise_ratio) * Y_NOISE)], [(goal_noise_ratio * X_NOISE), (goal_noise_ratio * Y_NOISE)], 1, True)