Skip to content

Commit

Permalink
update lr to learning_rate
Browse files Browse the repository at this point in the history
  • Loading branch information
gieses committed Oct 15, 2023
1 parent 837fde4 commit bf33b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xirt/xirtnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def compile(self):
"""
# set optimizer
if self.learning_p["optimizer"] == "adam":
opt = optimizers.Adam(lr=self.learning_p["learningrate"])
opt = optimizers.Adam(learning_rate=self.learning_p["learningrate"])

elif self.learning_p["optimizer"].lower() == "sgd":
opt = optimizers.SGD(learning_rate=self.learning_p["learningrate"],
Expand Down

0 comments on commit bf33b02

Please sign in to comment.