espnet.scheduler.scheduler.SchedulerInterface
Less than 1 minute
espnet.scheduler.scheduler.SchedulerInterface
class espnet.scheduler.scheduler.SchedulerInterface(key: str, args: Namespace)
Bases: object
Scheduler interface.
Initialize class.
classmethod add_arguments(key: str, parser: ArgumentParser)
Add arguments for CLI.
alias = ''
classmethod build(key: str, **kwargs)
Initialize this class with python-level args.
- Parameters:key (str) – key of hyper parameter
- Returns: A new instance of LMInterface.
- Return type: LMinterface
get_arg(name)
Get argument without prefix.
scale(n_iter: int) → float
Scale at n_iter.
- Parameters:n_iter (int) – number of current iterations.
- Returns: current scale of learning rate.
- Return type: float