You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
validation_accuracy in the function below is not defined.
`#` a simple report
for key in sorted(validation_accuracy.keys()):
print("L2 penalty = %g" % key)
print("train error = %s, validation_error = %s" % (train_error[key], validation_error[key]))
print("--------------------------------------------------------------------------------")
train_accuracy is not defined
`# Ploting error on training and validation sets over choice of L2 penalty.
plt.rcParams['figure.figsize'] = 10, 6
sorted_list = sorted(train_accuracy.items(), key=lambda x:x[0])
plt.plot([p[0] for p in sorted_list], [p[1] for p in sorted_list], 'bo-', linewidth=4, label='Training error')
sorted_list = sorted(validation_accuracy.items(), key=lambda x:x[0])
plt.plot([p[0] for p in sorted_list], [p[1] for p in sorted_list], 'ro-', linewidth=4, label='Validation error')
plt.xscale('symlog')
plt.axis([0, 1e5, 2000, 8000])
plt.legend(loc='lower left')
plt.rcParams.update({'font.size': 18})
plt.tight_layout`
The text was updated successfully, but these errors were encountered:
validation_accuracy in the function below is not defined.
train_accuracy is not defined
The text was updated successfully, but these errors were encountered: