Skip to content

Commit

Permalink
rotta
Browse files Browse the repository at this point in the history
  • Loading branch information
helium777 authored and MarcellusZhao committed Apr 6, 2024
1 parent f8d09ab commit 19cb3ce
Show file tree
Hide file tree
Showing 5 changed files with 678 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ data/
logs/
# pretrain/
runs/
todo/
*.out
*.pth
*.sh
Expand Down
9 changes: 9 additions & 0 deletions ttab/configs/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,13 @@
* 0.40, # The threshold for reliable minimization in SAR.
"reset_constant_em": 0.2, # threshold e_m for model recovery scheme
},
"rotta":{
"optimizer": "Adam",
"nu": 0.001,
"memory_size": 64,
"update_frequency": 64,
"lambda_t": 1.0,
"lambda_u": 1.0,
"alpha": 0.05,
}
}
2 changes: 2 additions & 0 deletions ttab/model_adaptation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from .tent import TENT
from .ttt import TTT
from .ttt_plus_plus import TTTPlusPlus
from .rotta import Rotta


def get_model_adaptation_method(adaptation_name):
Expand All @@ -29,4 +30,5 @@ def get_model_adaptation_method(adaptation_name):
"conjugate_pl": ConjugatePL,
"cotta": CoTTA,
"eata": EATA,
"rotta": Rotta,
}[adaptation_name]
Loading

0 comments on commit 19cb3ce

Please sign in to comment.