TensorFlow-in-a-Nutshell
TensorFlow-in-a-Nutshell copied to clipboard
TypeError: __init__() got an unexpected keyword argument 'shape'
When running the example I get:
TypeError: __init__() got an unexpected keyword argument 'shape'
Easily fixed by changing:
dense_shape=[df[k].size, 1])
to
shape=[df[k].size, 1])
nice, what version of python and version of TF are you using?
$ python -c "import sys; print(sys.version)"
2.7.6 (default, Oct 26 2016, 20:30:19)
[GCC 4.8.4]
$ python -c 'import tensorflow as tf; print(tf.__version__)'
1.0.1
WARNING:tensorflow:From wide.py:64: calling init (from tensorflow.contrib.learn.python.learn.estimators.dnn_linear_combined) with fix_global_step_increment_bug=False is deprecated and will be removed after 2017-04-15.
But in Python3.6, you should use dense_shape but not shape.