NPoe / neural-nlp-explanation-experiment

14 stars 1 forks source link

AssertionError: Keyword argument not understood: padding #4

Closed tangxiangru closed 5 years ago

tangxiangru commented 5 years ago

(python-thn) [txr@localhost SRC]$ python main.py train newsgroup CNN Using TensorFlow backend. Loading from ../Inputs/newsgroup/embeddings Loading from ../Inputs/newsgroup/worddict Loading from ../Inputs/newsgroup/classdict Traceback (most recent call last): File "main.py", line 103, in train(architecture, corpus) File "main.py", line 25, in train model.build() File "/home/txr/neural-nlp-explanation-experiment/HybridDocuments/SRC/task_methods.py", line 76, in build input_shape = (None, self.corpus.EMB_SIZE))) File "/home/txr/anaconda3/envs/python-thn/lib/python3.4/site-packages/keras/layers/convolutional.py", line 112, in init super(Convolution1D, self).init(**kwargs) File "/home/txr/anaconda3/envs/python-thn/lib/python3.4/site-packages/keras/engine/topology.py", line 307, in init assert kwarg in allowed_kwargs, 'Keyword argument not understood: ' + kwarg AssertionError: Keyword argument not understood: padding

NPoe commented 5 years ago

https://github.com/NPoe/neural-nlp-explanation-experiment/issues/2