iris_save_restore.py
コードをまったく変更せずに、skflow から例を実行しようとしました。
しかし、エラーが発生し、続行する方法がわかりません。保存したファイルからモデルを復元する際に発生したようです。
new_classifier = skflow.TensorFlowEstimator.restore('/tmp/skflow_examples/iris_custom_model')
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
score = metrics.accuracy_score(y_test, new_classifier.predict(X_test))
print('Accuracy: {0:f}'.format(score)) File "/Users/hamayu/.pyenv/versions/anaconda2-2.5.0/lib/python2.7/site-packages/skflow/estimators/base.py", line 463, in restore
estimator._restore(path)
File "/Users/hamayu/.pyenv/versions/anaconda2-2.5.0/lib/python2.7/site-packages/skflow/estimators/base.py", line 401, in _restore
saver_def = tf.python.training.saver_pb2.SaverDef()
AttributeError: 'module' object has no attribute 'saver_pb2'
次のバージョンを使用しています。
- anaconda2-2.5.0
- tensorflow 0.7 Mac OS X の CPU のみ
- スクフロー 0.1.0
どうすれば修正できますか?