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
I get an error from EPOCHS = 10; BATCH_SIZE = 32; train_input_fn = tf.compat.v1.estimator.inputs.pandas_input_fn ( x={"x": x_train}, y=labels_train, batch_size=BATCH_SIZE, num_epochs=EPOCHS, shuffle=False),
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-27-7ffde7f9d22e> in <module>()
6 batch_size=BATCH_SIZE,
7 num_epochs=EPOCHS,
----> 8 shuffle=False)
~/anaconda3/envs/tensorflow2_p36/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/inputs/pandas_io.py in pandas_input_fn(x, y, batch_size, num_epochs, shuffle, queue_capacity, num_threads, target_column)
108 'Cannot use name %s for target column: DataFrame already has a '
109 'column with that name: %s' % (target_column, x.columns))
--> 110 if not np.array_equal(x.index, y.index):
111 raise ValueError('Index for x and y are mismatched.\nIndex for x: %s\n'
112 'Index for y: %s\n' % (x.index, y.index))
AttributeError: 'dict' object has no attribute 'index'
I have changed tf.estimator.inputs.numpy_input_fn to tf.compat.v1.estimator.inputs.pandas_input_fn.
I am following this blog,
https://medium.com/neuronio/introduction-to-adanet-c01fad8b084
I get an error from
EPOCHS = 10; BATCH_SIZE = 32; train_input_fn = tf.compat.v1.estimator.inputs.pandas_input_fn ( x={"x": x_train}, y=labels_train, batch_size=BATCH_SIZE, num_epochs=EPOCHS, shuffle=False)
,I have changed
tf.estimator.inputs.numpy_input_fn
totf.compat.v1.estimator.inputs.pandas_input_fn
.my
pip freeze
goes like this,The text was updated successfully, but these errors were encountered: