OptimizerParamsΒΆ

class pytext.config.pytext_config.OptimizerParams[source]

Bases: ConfigBase

All Attributes (including base classes)

type: OptimizerType = <OptimizerType.ADAM: 'adam'>
lr: float = 0.001
weight_decay: float = 1e-05
momentum: float = 0.0

Default JSON

{
    "type": "adam",
    "lr": 0.001,
    "weight_decay": 1e-05,
    "momentum": 0.0
}