From 60edabd2610dcd813113ed92bd0ab3a86b7f9cbb Mon Sep 17 00:00:00 2001 From: Matt Graham Date: Sat, 5 Nov 2016 22:21:44 +0000 Subject: [PATCH] Fixing missing bias term from model visualisation. --- notebooks/04_Generalisation_and_overfitting.ipynb | 1 + 1 file changed, 1 insertion(+) diff --git a/notebooks/04_Generalisation_and_overfitting.ipynb b/notebooks/04_Generalisation_and_overfitting.ipynb index 5941269..6503533 100644 --- a/notebooks/04_Generalisation_and_overfitting.ipynb +++ b/notebooks/04_Generalisation_and_overfitting.ipynb @@ -257,6 +257,7 @@ "ax = fig.add_subplot(1, 1, 1)\n", "for weight, centre in zip(weights, centres):\n", " ys += weight * basis_function(xs, centre, scale)\n", + "ys += bias\n", "ax.plot(xs, ys)\n", "ax.set_xlabel('Input', fontsize=14)\n", "ax.set_ylabel('Output', fontsize=14)"