small typo in bias-variance code

This commit is contained in:
mhjensen
2019-08-21 21:45:24 +02:00
parent 369597638e
commit 931bced261
19 changed files with 744 additions and 31 deletions
+1 -1
View File
@@ -3017,7 +3017,7 @@ for degree in range(maxdegree):
print('Var:', variance[degree])
print('{} >= {} + {} = {}'.format(error[degree], bias[degree], variance[degree], bias[degree]+variance[degree]))
plt.plot(polydegree, np.log10(error), label='Error')
plt.plot(polydegree, error, label='Error')
plt.plot(polydegree, bias, label='bias')
plt.plot(polydegree, variance, label='Variance')
plt.legend()