quantnn/models/pytorch/common.py
def _get_default_scheduler(optimizer):
    """
    The default scheduler which reduces lr when training loss reaches a
    plateau.
    """
    scheduler = optim.lr_scheduler.ReduceLROnPlateau(optimizer, factor=0.1, patience=5)
    return scheduler

    The default scheduler which reduces lr when training loss reaches a
    plateau.
    
The default scheduler which reduces lr when training loss reaches a
plateau.
The default scheduler which reduces lr when training loss reaches a plateau .
def _get_default_scheduler(optimizer):
    scheduler = optim.lr_scheduler.ReduceLROnPlateau(optimizer, factor=0.1, patience=5)
    return scheduler
def _get_default_scheduler ( optimizer ) : scheduler = optim . lr_scheduler . ReduceLROnPlateau ( optimizer , factor = 0.1 , patience = 5 ) return scheduler
The default scheduler which reduces lr when training loss reaches a
plateau.
The default scheduler which reduces lr when training loss reaches a plateau .
"""
    The default scheduler which reduces lr when training loss reaches a
    plateau.
    """
optimizer