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
/usr/local/lib/python2.7/dist-packages/skflow/io/data_feeder.py:217: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
out.itemset((i, self.y[sample]), 1.0)
Traceback (most recent call last):
File "titanic.py", line 30, in
tflr.fit(X_train, y_train)
File "/usr/local/lib/python2.7/dist-packages/skflow/estimators/base.py", line 227, in fit
feed_params_fn=self._data_feeder.get_feed_params)
File "/usr/local/lib/python2.7/dist-packages/skflow/trainer.py", line 146, in train
if summaries:
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 528, in nonzero
raise TypeError("Using a tf.Tensor as a Python bool is not allowed. "
TypeError: Using a tf.Tensor as a Python bool is not allowed. Use if t is not None: instead of if t: to test if a tensor is defined, and use the logical TensorFlow ops to test the value of a tensor.
The text was updated successfully, but these errors were encountered:
Environment info
Operating System: Linux Mint 17.3 Rosa
$uname -a
Linux Pabeda 3.19.0-32-generic #37~14.04.1-Ubuntu SMP Thu Oct 22 09:41:40 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
$python -c "import tensorflow; print(tensorflow.version)"
0.9.0
Steps to reproduce
$ git clone https://github.com/ilblackdragon/tf_examples.git
$ python titanic.py
What have you tried?
Errors
/usr/local/lib/python2.7/dist-packages/skflow/io/data_feeder.py:217: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
out.itemset((i, self.y[sample]), 1.0)
Traceback (most recent call last):
File "titanic.py", line 30, in
tflr.fit(X_train, y_train)
File "/usr/local/lib/python2.7/dist-packages/skflow/estimators/base.py", line 227, in fit
feed_params_fn=self._data_feeder.get_feed_params)
File "/usr/local/lib/python2.7/dist-packages/skflow/trainer.py", line 146, in train
if summaries:
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 528, in nonzero
raise TypeError("Using a
tf.Tensor
as a Pythonbool
is not allowed. "TypeError: Using a
tf.Tensor
as a Pythonbool
is not allowed. Useif t is not None:
instead ofif t:
to test if a tensor is defined, and use the logical TensorFlow ops to test the value of a tensor.The text was updated successfully, but these errors were encountered: