[66326d]: / src / utils / cl_strategies.py

Download this file

39 lines (34 with data), 864 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""
Continual learning strategies.
Contains:
- Baselines
- Regularization methods
- Rehearsal methods
- Misc
"""
from avalanche.training import Naive, JointTraining, Cumulative # Baselines
from avalanche.training import EWC, LwF, SynapticIntelligence # Regularisation
from avalanche.training import Replay, GDumb, GEM, AGEM # Rehearsal
from avalanche.training import AR1, CWRStar, CoPE, StreamingLDA
STRATEGIES = {
# Baselines
"Naive": Naive,
"Naive_no_reg": Naive,
"Joint": JointTraining,
"Cumulative": Cumulative,
# Regularization based
"EWC": EWC,
"OnlineEWC": EWC,
"LwF": LwF,
"SI": SynapticIntelligence, #'LFL':LFL,
# Replay
"Replay": Replay,
"GEM": GEM,
"AGEM": AGEM,
"GDumb": GDumb,
"CoPE": CoPE,
# Misc.
"AR1": AR1,
"StreamingLDA": StreamingLDA,
"CWRStar": CWRStar,
}