From c2310cde5eee067048cc1262bdcb4ea439f37e32 Mon Sep 17 00:00:00 2001 From: Kirill Klimov Date: Wed, 4 Sep 2019 11:28:39 +0300 Subject: [PATCH] fix typo in settings --- pygauss_newton/gauss_newton.py | 6 +++--- setup.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pygauss_newton/gauss_newton.py b/pygauss_newton/gauss_newton.py index af78f91..2b82b7d 100644 --- a/pygauss_newton/gauss_newton.py +++ b/pygauss_newton/gauss_newton.py @@ -9,13 +9,13 @@ class Settings: def __init__(self, n_max_iterations=50, - dumping_constant=0.0, + damping_constant=0.0, loss_stop_threshold=0.0, grad_norm_stop_threshold=0.0, step_norm_stop_threshold=0.0, verbose=True): self.n_max_iterations = n_max_iterations - self.dumping_constant = dumping_constant + self.damping_constant = damping_constant self.loss_stop_threshold = loss_stop_threshold self.grad_norm_stop_threshold = grad_norm_stop_threshold @@ -74,7 +74,7 @@ def gauss_newton( state.loss_val = 0.5 * state.residuals_val.T @ state.residuals_val state.hessian_val = state.jacobian_val.T @ state.jacobian_val - state.hessian_val += settings.dumping_constant * eye + state.hessian_val += settings.damping_constant * eye state.step_val = -np.linalg.solve(state.hessian_val, state.gradient_val) state.step_norm = np.linalg.norm(state.step_val) diff --git a/setup.py b/setup.py index 5e7be4f..925e2f1 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setuptools.setup( name="pygauss_newton", - version="0.0.16", + version="0.0.17", author="Daiver", author_email="ra22341@ya.ru", description="",