Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
enh: add 'CG' as an optimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Oct 26, 2024
1 parent 5fd0125 commit 10b1018
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/eddymotion/model/_sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@
"""Minimum nonzero angle."""
LBFGS_CONFIGURABLE_OPTIONS = {"disp", "maxiter", "ftol", "gtol"}
"""The set of extended options that can be set on the default BFGS."""
CONFIGURABLE_OPTIONS: Mapping[str, set] = {"Nelder-Mead": {"disp", "maxiter", "adaptive", "fatol"}}
CONFIGURABLE_OPTIONS: Mapping[str, set] = {
"Nelder-Mead": {"disp", "maxiter", "adaptive", "fatol"},
"CG": {"disp", "maxiter", "gtol"},
}
"""
A mapping from optimizer names to the option set they allow.
Expand Down

0 comments on commit 10b1018

Please sign in to comment.