Skip to content

Commit

Permalink
Change LR in examples (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
abheesht17 authored Jan 30, 2025
1 parent ab0e362 commit 676378f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/basic_retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def compute_loss(self, x, y, y_pred, sample_weight, training=True):
"""

model = RetrievalModel(users_count + 1, movies_count + 1)
model.compile(optimizer=keras.optimizers.Adagrad(learning_rate=1.0))
model.compile(optimizer=keras.optimizers.Adagrad(learning_rate=0.1))

"""
Then train the model. Evaluation takes a bit of time, so we only evaluate the
Expand Down
2 changes: 1 addition & 1 deletion examples/data_parallel_retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def compute_loss(self, x, y, y_pred, sample_weight, training=True):
"""

model = RetrievalModel(users_count + 1, movies_count + 1)
model.compile(optimizer=keras.optimizers.Adagrad(learning_rate=1.0))
model.compile(optimizer=keras.optimizers.Adagrad(learning_rate=0.1))

"""
Let's train the model. Evaluation takes a bit of time, so we only evaluate the
Expand Down

0 comments on commit 676378f

Please sign in to comment.