aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-07-24 08:32:35 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-07-24 08:32:35 -0400
commit6a60fe998d8c15075f1487299e11fb379eee2f4f (patch)
tree32131b59954d678ad4c77d88885122b0a110f9da
parentfce993478c2595e334f5686ff5d7f8231dcbd24a (diff)
downloadkutter-6a60fe998d8c15075f1487299e11fb379eee2f4f.tar.gz
kutter-6a60fe998d8c15075f1487299e11fb379eee2f4f.tar.xz
kutter-6a60fe998d8c15075f1487299e11fb379eee2f4f.zip
mathutil: Log starting error in coordinate_descent()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--klippy/mathutil.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/klippy/mathutil.py b/klippy/mathutil.py
index 2e39c5d1..0801eba5 100644
--- a/klippy/mathutil.py
+++ b/klippy/mathutil.py
@@ -17,6 +17,7 @@ def coordinate_descent(adj_params, params, error_func):
dp = {param_name: 1. for param_name in adj_params}
# Calculate the error
best_err = error_func(params)
+ logging.info("Coordinate descent initial error: %s", best_err)
threshold = 0.00001
rounds = 0