Skip to content

Commit 36593a0

Browse files
committed
Increase value of tau in demo to make predictions less overfit
1 parent e2ee5db commit 36593a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

machine_learning/local_weighted_learning/local_weighted_learning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,5 +120,5 @@ def plot_preds(
120120
doctest.testmod()
121121

122122
training_data_x, total_bill, tip = load_data("tips", "total_bill", "tip")
123-
predictions = local_weight_regression(training_data_x, tip, 0.5)
123+
predictions = local_weight_regression(training_data_x, tip, 5)
124124
plot_preds(training_data_x, predictions, total_bill, tip, "total_bill", "tip")

0 commit comments

Comments
 (0)