Skip to content

Commit

Permalink
fix f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
donglihe-hub committed Jun 21, 2024
1 parent ee5d25c commit c19188a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmultilabel/nn/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def configure_optimizers(self):
elif optimizer_name == "adamax":
optimizer = optim.Adamax(parameters, **self.optimizer_config)
else:
raise RuntimeError("Unsupported optimizer: {self.optimizer}")
raise RuntimeError(f"Unsupported optimizer: {self.optimizer}")

if self.lr_scheduler:
if self.lr_scheduler == "ReduceLROnPlateau":
Expand Down

0 comments on commit c19188a

Please sign in to comment.