fairseq/optim/lr_scheduler/reduce_lr_on_plateau.py

Killed 0 out of 3 mutants

Survived

Survived mutation testing. These mutants show holes in your test suite.

Mutant 3274

--- fairseq/optim/lr_scheduler/reduce_lr_on_plateau.py
+++ fairseq/optim/lr_scheduler/reduce_lr_on_plateau.py
@@ -8,7 +8,7 @@
 from . import FairseqLRScheduler, register_lr_scheduler
 
 
-@register_lr_scheduler('reduce_lr_on_plateau')
+@register_lr_scheduler('XXreduce_lr_on_plateauXX')
 class ReduceLROnPlateau(FairseqLRScheduler):
     """
     Decay the LR by a factor every time the validation loss plateaus.

Mutant 3275

--- fairseq/optim/lr_scheduler/reduce_lr_on_plateau.py
+++ fairseq/optim/lr_scheduler/reduce_lr_on_plateau.py
@@ -7,8 +7,6 @@
 
 from . import FairseqLRScheduler, register_lr_scheduler
 
-
-@register_lr_scheduler('reduce_lr_on_plateau')
 class ReduceLROnPlateau(FairseqLRScheduler):
     """
     Decay the LR by a factor every time the validation loss plateaus.

Mutant 3276

--- fairseq/optim/lr_scheduler/reduce_lr_on_plateau.py
+++ fairseq/optim/lr_scheduler/reduce_lr_on_plateau.py
@@ -52,7 +52,6 @@
         self.lr = args.warmup_init_lr
         self.optimizer.set_lr(self.lr)
 
-    @staticmethod
     def add_args(parser):
         """Add arguments to the parser for this LR scheduler."""
         # fmt: off