Skip to content
Snippets Groups Projects
Commit b93b825b authored by Michele Nottoli's avatar Michele Nottoli
Browse files

Changed the default value for the regularization.

parent 231bf999
Branches
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ This is an up to date list of available keyword options: ...@@ -51,7 +51,7 @@ This is an up to date list of available keyword options:
- `store_overlap`: bool, default True. Store the overlaps for later usage in calling guess without passing the current overlap. It can be disabled for performance, but calling guess will require passing the overlap. - `store_overlap`: bool, default True. Store the overlaps for later usage in calling guess without passing the current overlap. It can be disabled for performance, but calling guess will require passing the overlap.
Some options can be piped to the fitting modules. Some options can be piped to the fitting modules.
- `fitting_regularization`: float, default 0.0. Controls the regularization for both the "leastsquare" and "qtr" fitting schemes. In both the fitting schemes, an additional term of the form $\varepsilon^2 ||\alpha||^2$ is added to the error function, in this expression $\alpha$ is the vector of coefficients and $\varepsilon$ is the regularization. - `fitting_regularization`: float, default 0.001. Controls the regularization for both the "leastsquare" and "qtr" fitting schemes. In both the fitting schemes, an additional term of the form $\varepsilon^2 ||\alpha||^2$ is added to the error function, in this expression $\alpha$ is the vector of coefficients and $\varepsilon$ is the regularization.
## Acknowledgments ## Acknowledgments
......
...@@ -46,7 +46,7 @@ class LeastSquare(AbstractFitting): ...@@ -46,7 +46,7 @@ class LeastSquare(AbstractFitting):
"""Simple least square minimization fitting.""" """Simple least square minimization fitting."""
supported_options = { supported_options = {
"regularization": 0.0, "regularization": 1e-3,
} }
def set_options(self, **kwargs): def set_options(self, **kwargs):
...@@ -73,7 +73,7 @@ class QuasiTimeReversible(AbstractFitting): ...@@ -73,7 +73,7 @@ class QuasiTimeReversible(AbstractFitting):
"""Quasi time reversible fitting scheme.""" """Quasi time reversible fitting scheme."""
supported_options = { supported_options = {
"regularization": 0.0, "regularization": 1e-3,
} }
def set_options(self, **kwargs): def set_options(self, **kwargs):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment