Open SeekPoint opened 7 years ago
This is probably duplicate of #1. Just downgrade Blocks.
No, I had done this '' To downgrade Blocks run: pip install git+https://github.com/mila-udem/blocks.git@359afad119f8c6ac0ebc3cc6ec6e6475656babae ''
but still see this exact error
Interesting, unfortunately I see this error for the first time. You get this error with newly cloned repo without any modifications?
pretty sure, and I do it again from scratch:
rzai@rzai00:~/prj/asreader/asreader$ bash quick-start-cbt-ne.sh
Using gpu device 0: GeForce GTX 1080 (CNMeM is disabled)
Traceback (most recent call last):
File "text_comprehension/as_reader.py", line 166, in
Best predictions to be copied:
Best validation model:
Traceback (most recent call last):
File "text_comprehension/eval/copyBestPredictions.py", line 124, in
* RUNNING THE FUSION SCRIPT *
Models to be fused:
Ensemble (equal weights):
/home/rzai/.local/lib/python2.7/site-packages/numpy/core/_methods.py:59: RuntimeWarning: Mean of empty slice.
warnings.warn("Mean of empty slice.", RuntimeWarning)
/home/rzai/.local/lib/python2.7/site-packages/numpy/core/_methods.py:70: RuntimeWarning: invalid value encountered in double_scalars
ret = ret.dtype.type(ret / rcount)
Traceback (most recent call last):
File "text_comprehension/eval/fusion.py", line 394, in
I meet the same error.
After adding
y.name = "answers_y"
in line 152 of file as_readee.py, this problem disappears.
I guess the theano variables at a low version may lose its name after some operations.
rzai@rzai00:~/prj/asreader/asreader$ bash quick-start-cbt-ne.sh 2>&1 > tee yknote---quick-start-cbt-ne.sh---log Using gpu device 0: GeForce GTX 1080 (CNMeM is disabled, cuDNN 5005) Traceback (most recent call last): File "text_comprehension/as_reader.py", line 166, in
exp.execute()
File "/home/rzai/prj/asreader/asreader/text_comprehension/text_comprehension_base.py", line 386, in execute
**self.args.evaluate_every_n)
File "/home/rzai/prj/asreader/asreader/text_comprehension/monitoring.py", line 79, in init
self._evaluator = MemoryDatasetEvaluator([context_attention, context,y_hat,y,candidates, candidates_mask, context_mask,x_mask,x], updates)
File "/home/rzai/prj/asreader/asreader/text_comprehension/monitoring.py", line 233, in init
self.theano_buffer = AggregationBuffer(theano_variables)
File "/usr/local/lib/python2.7/dist-packages/blocks/monitoring/evaluators.py", line 127, in init
_validate_variable_names(variables)
File "/usr/local/lib/python2.7/dist-packages/blocks/monitoring/evaluators.py", line 23, in _validate_variable_names
raise ValueError('Variables must have names: {}'.format(none_names))
ValueError: Variables must have names: [Elemwise{second,no_inplace}.0]
Using gpu device 0: GeForce GTX 1080 (CNMeM is disabled, cuDNN 5005)
Traceback (most recent call last): File "text_comprehension/as_reader.py", line 166, in
exp.execute()
File "/home/rzai/prj/asreader/asreader/text_comprehension/text_comprehension_base.py", line 386, in execute
**self.args.evaluate_every_n)
File "/home/rzai/prj/asreader/asreader/text_comprehension/monitoring.py", line 79, in init
self._evaluator = MemoryDatasetEvaluator([context_attention, context,y_hat,y,candidates, candidates_mask, context_mask,x_mask,x], updates)
File "/home/rzai/prj/asreader/asreader/text_comprehension/monitoring.py", line 233, in init
self.theano_buffer = AggregationBuffer(theano_variables)
File "/usr/local/lib/python2.7/dist-packages/blocks/monitoring/evaluators.py", line 127, in init
_validate_variable_names(variables)
File "/usr/local/lib/python2.7/dist-packages/blocks/monitoring/evaluators.py", line 23, in _validate_variable_names
raise ValueError('Variables must have names: {}'.format(none_names))
ValueError: Variables must have names: [Elemwise{second,no_inplace}.0]
Traceback (most recent call last):
File "text_comprehension/eval/copyBestPredictions.py", line 124, in
print bestValModel['params']
KeyError: 'params'
/home/rzai/.local/lib/python2.7/site-packages/numpy/core/_methods.py:59: RuntimeWarning: Mean of empty slice.
warnings.warn("Mean of empty slice.", RuntimeWarning)
/home/rzai/.local/lib/python2.7/site-packages/numpy/core/_methods.py:70: RuntimeWarning: invalid value encountered in double_scalars
ret = ret.dtype.type(ret / rcount)
Traceback (most recent call last):
File "text_comprehension/eval/fusion.py", line 394, in
result = fuse_predictions(prediction_files)
File "text_comprehension/eval/fusion.py", line 158, in fuse_predictions
ensemble_accuracy = accuracy(numpy.mean(all_preds, 0))
File "text_comprehension/eval/fusion.py", line 57, in accuracy
for row in probas:
TypeError: 'numpy.float64' object is not iterable
rzai@rzai00:~/prj/asreader/asreader$