You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for your fantastic work. I have a question regarding the number "200" inside the cosine scheduler. Is there a reason for setting it to be 200 here, and do I have to change this value If I were to train with different number of epochs?
class CosineSchedule(_LRScheduler):
def __init__(self, optimizer, K):
self.K = K
super().__init__(optimizer, -1)
def cosine(self, base_lr):
return base_lr * math.cos((99 * math.pi * (self.last_epoch)) / (200 * (self.K-1)))
def get_lr(self):
return [self.cosine(base_lr) for base_lr in self.base_lrs]
Best regards,
Louis
The text was updated successfully, but these errors were encountered:
Dear author,
Thank you for your fantastic work. I have a question regarding the number "200" inside the cosine scheduler. Is there a reason for setting it to be 200 here, and do I have to change this value If I were to train with different number of epochs?
Best regards,
Louis
The text was updated successfully, but these errors were encountered: