improve naming in ch 1 "predict_using_gain_guess" example

"weight" --> "estimate"
  "initial_guess" --> "initial_estimate"
  print_results: rename label "previous" --> "previous estimate", add comma
This commit is contained in:
John Belmonte
2018-10-20 16:50:44 +09:00
parent e2339a6ccb
commit 29063bc4f8
2 changed files with 22 additions and 22 deletions

View File

@@ -191,7 +191,7 @@ def plot_gh_results(weights, estimates, predictions, time_step=0):
def print_results(estimates, prediction, weight):
print('previous: {:.2f}, prediction: {:.2f} estimate {:.2f}'.format(
print('previous estimate: {:.2f}, prediction: {:.2f}, estimate {:.2f}'.format(
estimates[-2], prediction, weight))