def get_lr(t, initial_lr, rampdown=0.25, rampup=0.05):
    lr_ramp = min(1, ((1 - t) / rampdown))
    lr_ramp = (0.5 - (0.5 * np.cos((lr_ramp * np.pi))))
    lr_ramp = (lr_ramp * min(1, (t / rampup)))
    return (initial_lr * lr_ramp)
def get_lr(t, initial_lr, rampdown=0.25, rampup=0.05):
    lr_ramp = min(1, ((1 - t) / rampdown))
    lr_ramp = (0.5 - (0.5 * np.cos((lr_ramp * np.pi))))
    lr_ramp = (lr_ramp * min(1, (t / rampup)))
    return (initial_lr * lr_ramp)