InvalidArgumentError: indices[0,1] = 2055 is not in [0, 256)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/Users/Benji/PycharmProjects/Code/NEWWORK6.py", line 292, in
classifier.fit(trX=trX, trY=trY, teX=teX, teY=teY)
File "C:/Users/Benji/PycharmProjects/Code/NEWWORK6.py", line 229, in fit
self.p_keep_hidden: tr_p_keep_hidden})
File "C:\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\client\session.py", line 956, in run
run_metadata_ptr)
File "C:\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\client\session.py", line 1180, in _run
feed_dict_tensor, options, run_metadata)
File "C:\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\client\session.py", line 1359, in _do_run
run_metadata)
File "C:\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\client\session.py", line 1384, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[0,1] = 2055 is not in [0, 256)
[[node GatherV2_16 (defined at \Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\framework\ops.py:1748) ]]
Original stack trace for 'GatherV2_16':
File "/Users/Benji/PycharmProjects/Code/NEWWORK6.py", line 291, in
classifier = TFRandomForestTrain( session=sess)
File "/Users/Benji/PycharmProjects/Code/NEWWORK6.py", line 190, in init
tf.add(batch_indices, batch_complement_indices)))
File "\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\util\dispatch.py", line 180, in wrapper
return target(*args, *kwargs)
File "\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\ops\array_ops.py", line 3956, in gather
params, indices, axis, name=name)
File "\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\ops\gen_array_ops.py", line 4081, in gather_v2
batch_dims=batch_dims, name=name)
File "\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\framework\op_def_library.py", line 794, in _apply_op_helper
op_def=op_def)
File "\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\util\deprecation.py", line 507, in new_func
return func(args, **kwargs)
File "\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\framework\ops.py", line 3357, in create_op
attrs, op_def, compute_device)
File "\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\framework\ops.py", line 3426, in _create_op_internal
op_def=op_def)
File "\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\framework\ops.py", line 1748, in init
self._traceback = tf_stack.extract_stack()
Hi @frenomer, thanks for posting. From looking at the post you provided, I can't tell how this issue is related to Snorkel. Let us know if you can provide more detail.
Hi I am trying to run the following cell
`class TFRandomForestTrain: def init(self, session): self.session = session
Load dataset `dataset = read_csv('C:/Users/Benji/Desktop/dataset/kddcup99.csv', header=0, index_col=0,encoding='unicode_escape')
And I am getting this error
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:/Users/Benji/PycharmProjects/Code/NEWWORK6.py", line 292, in
classifier.fit(trX=trX, trY=trY, teX=teX, teY=teY)
File "C:/Users/Benji/PycharmProjects/Code/NEWWORK6.py", line 229, in fit
self.p_keep_hidden: tr_p_keep_hidden})
File "C:\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\client\session.py", line 956, in run
run_metadata_ptr)
File "C:\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\client\session.py", line 1180, in _run
feed_dict_tensor, options, run_metadata)
File "C:\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\client\session.py", line 1359, in _do_run
run_metadata)
File "C:\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\client\session.py", line 1384, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[0,1] = 2055 is not in [0, 256)
[[node GatherV2_16 (defined at \Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\framework\ops.py:1748) ]]
Original stack trace for 'GatherV2_16': File "/Users/Benji/PycharmProjects/Code/NEWWORK6.py", line 291, in
classifier = TFRandomForestTrain( session=sess)
File "/Users/Benji/PycharmProjects/Code/NEWWORK6.py", line 190, in init
tf.add(batch_indices, batch_complement_indices)))
File "\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\util\dispatch.py", line 180, in wrapper
return target(*args, *kwargs)
File "\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\ops\array_ops.py", line 3956, in gather
params, indices, axis, name=name)
File "\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\ops\gen_array_ops.py", line 4081, in gather_v2
batch_dims=batch_dims, name=name)
File "\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\framework\op_def_library.py", line 794, in _apply_op_helper
op_def=op_def)
File "\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\util\deprecation.py", line 507, in new_func
return func(args, **kwargs)
File "\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\framework\ops.py", line 3357, in create_op
attrs, op_def, compute_device)
File "\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\framework\ops.py", line 3426, in _create_op_internal
op_def=op_def)
File "\Users\Benji\Anaconda2\envs\ben\lib\site-packages\tensorflow_core\python\framework\ops.py", line 1748, in init
self._traceback = tf_stack.extract_stack()