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 committed 2018-10-20 20:08:09 +09:00
1 parent e2339a6ccb
commit 29063bc4f8
2 files changed
+22 -22

No files matched your search

+1 -1
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))