I am following the tutorial for Classifying Handwritten Digits with TF.Learn
The last part of the tutorial is where I have a problem. It seems like classifier.weights_ doesn't exist anymore.
This is the error message: AttributeError: 'LinearClassifier' object has no attribute 'weights_'
weights = classifier.weights_
f, axes = plt.subplots(2, 5, figsize=(10,4))
axes = axes.reshape(-1)
for i in range(len(axes)):
a = axes[i]
a.imshow(weights.T[i].reshape(28, 28), cmap=plt.cm.seismic)
a.set_title(i)
a.set_xticks(()) # ticks be gone
a.set_yticks(())
plt.show()