Skip to content

Fancy learning rate - #90

Closed
Pengju-Sheng wants to merge 3 commits into
cdtools-developers:masterfrom
Pengju-Sheng:fancy-learning-rate
Closed

Fancy learning rate#90
Pengju-Sheng wants to merge 3 commits into
cdtools-developers:masterfrom
Pengju-Sheng:fancy-learning-rate

Conversation

@Pengju-Sheng

Copy link
Copy Markdown
Collaborator

I add new feature to adam that users can adjust learning rate for each parameters and it is compatible with the old style where you can give one single lr to all the parameters.

@allevitan allevitan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very nice framework, I didn't catch any technical problems. I had a few general comments:

  • The docstrings need to be updated
  • Test coverage needs to be added
  • I think the printout of all the learning rates with each call to optimize() is a bit noisy.

I also want to propose a slightly different framework for doing the adjustment which I think might be simpler from the user side - I will whip up a PR for comparison, curious what you'll think

Comment thread src/cdtools/reconstructors/adam.py
Comment thread src/cdtools/reconstructors/adam.py
@allevitan

Copy link
Copy Markdown
Collaborator

Ah, two more notes! We also need to update SGD_optimize, and model.Adam_optimize/model.SGD_optimize. Stay tuned for a PR :)

@allevitan allevitan mentioned this pull request Jul 23, 2026
@allevitan

Copy link
Copy Markdown
Collaborator

Closed in favor of #91

@allevitan allevitan closed this Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants