Skip to content

Commit

Permalink
applying comments on the handler
Browse files Browse the repository at this point in the history
  • Loading branch information
fazelehh committed Jan 18, 2025
1 parent 080506e commit 272d01c
Show file tree
Hide file tree
Showing 2 changed files with 123 additions and 61 deletions.
5 changes: 1 addition & 4 deletions examples/mia/celebA_HQ/celebA_HQ_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ def get_criterion(self) -> torch.nn.Module:

def get_optimizer(self, model: torch.nn.Module) -> optim.Optimizer:
"""Set the optimizer for the model."""
learning_rate =0.01 # Default learning rate
momentum = 0.9 # Default momentum
weight_decay = 0.0001 # Default weight decay
return optim.SGD(model.parameters(), lr=learning_rate, momentum=momentum, weight_decay=weight_decay)
return optim.SGD(model.parameters())

def train(
self,
Expand Down
Loading

0 comments on commit 272d01c

Please sign in to comment.