Skip to content

Commit

Permalink
icar test
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioCarta committed Oct 17, 2023
1 parent 8626323 commit f786641
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/training/test_strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,8 @@ def test_expertgate(self):

def test_icarl(self):
model, optimizer, criterion, benchmark = self.init_scenario(multi_task=False)
optimizer = SGD(model.parameters(), lr=1e-5)
model = SimpleMLP(input_size=6, hidden_size=10)
optimizer = SGD(model.parameters(), lr=.000001)

strategy = ICaRL(
model.features,
Expand All @@ -860,11 +861,11 @@ def test_icarl(self):
20,
buffer_transform=None,
fixed_memory=True,
train_mb_size=10,
train_mb_size=32,
train_epochs=2,
eval_mb_size=50,
device=self.device,
eval_every=1,
eval_every=-1,
)

run_strategy(benchmark, strategy)
Expand Down

0 comments on commit f786641

Please sign in to comment.