mathutil: Log starting error in coordinate_descent()

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-07-24 08:32:35 -04:00
parent fce993478c
commit 6a60fe998d
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ def coordinate_descent(adj_params, params, error_func):
dp = {param_name: 1. for param_name in adj_params} dp = {param_name: 1. for param_name in adj_params}
# Calculate the error # Calculate the error
best_err = error_func(params) best_err = error_func(params)
logging.info("Coordinate descent initial error: %s", best_err)
threshold = 0.00001 threshold = 0.00001
rounds = 0 rounds = 0