EWC ON#

Arguments#

Options

--e_lambdafloat

Help: lambda weight for EWC

  • Default: None

--gammafloat

Help: gamma parameter for EWC online

  • Default: None

Classes#

class models.ewc_on.EwcOn(backbone, loss, args, transform, dataset=None)[source]#

Bases: ContinualModel

Continual learning via online EWC.

COMPATIBILITY: List[str] = ['class-il', 'domain-il', 'task-il']#
NAME: str = 'ewc_on'#
end_task(dataset)[source]#
static get_parser(parser)[source]#
Return type:

ArgumentParser

get_penalty_grads()[source]#
observe(inputs, labels, not_aug_inputs, epoch=None)[source]#
penalty()[source]#