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
In the latest version of tensorflow (1.3.0) the LinearClassifier object does not have a weights_ member. Instead, the weights have to be retrieved as follows:
Added fix for the following error on newer TensorFlow versions:
AttributeError: 'LinearClassifier' object has no attribute 'weights_'
Tested on Python 3.5.2 and TensorFlow 1.9.0
cseas
added a commit
to cseas/tutorials
that referenced
this issue
Jul 16, 2018
In the latest version of tensorflow (1.3.0) the LinearClassifier object does not have a weights_ member. Instead, the weights have to be retrieved as follows:
weights = classifier.get_variable_value("linear//weight")
The text was updated successfully, but these errors were encountered: