Skip to content

Commit

Permalink
feat: Remove deprecated verbose parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
lRomul committed Apr 7, 2024
1 parent da7fb8f commit e646539
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions argus/callbacks/lr_schedulers.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,6 @@ class ReduceLROnPlateau(LRScheduler):
factor (float, optional): Multiplicative factor. Defaults to 0.1.
patience (int, optional): Number of training epochs without the
metric improvement to update the learning rate. Defaults to 10.
verbose (bool, optional): Print info on each update to stdout.
Defaults to False.
threshold (float, optional): Threshold for considering the changes
significant. Defaults to 1e-4.
threshold_mode (str, optional): Should be 'rel', 'abs'.
Expand All @@ -223,8 +221,8 @@ class ReduceLROnPlateau(LRScheduler):
"""

def __init__(self, monitor='val_loss', better='auto', factor=0.1,
patience=10, verbose=False, threshold=1e-4,
threshold_mode='rel', cooldown=0, min_lr=0, eps=1e-8):
patience=10, threshold=1e-4, threshold_mode='rel',
cooldown=0, min_lr=0, eps=1e-8):
self.monitor = monitor
self.patience = patience
self.better, _, _ = init_better(better, monitor)
Expand All @@ -234,7 +232,6 @@ def __init__(self, monitor='val_loss', better='auto', factor=0.1,
mode=self.better,
factor=factor,
patience=patience,
verbose=verbose,
threshold=threshold,
threshold_mode=threshold_mode,
cooldown=cooldown,
Expand Down

0 comments on commit e646539

Please sign in to comment.