-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code error, please answer #1
Comments
I encountered the same issue as you, The problem is that data is missing the feature dimension necessary for a Conv1D layer, which needs the input_shape=(timesteps, features). You can try adding an additional dimension with tf.expand_dims for x: x = tf.expand_dims(x, axis=-1), it works for me |
Hello, I used this method a few days ago, but the bug appeared again in the subsequent training, have you encountered the error since then |
I didn't encounter such an issue again later, would you still report the same error? |
I have encountered other bugs during the reproduction process, and the program is not running at the moment, can you provide an email address for us to easily communicate? |
你后来遇到这个问题了吗: |
I also encountered this issue. It's caused by a mismatch in the input dimension of the embedding layer. You just need to change it to input_dim = self.vocab_size + 1, and it should run smoothly. |
Big Brother thank you so much, now it is possible to train, I guess it is possible to run through it |
Hi big guy, did you encounter any other problems while testing, I'm a rookie and have some confusion after training, can I ask you for some advice? |
My model test result is very poor, please ask your model prediction how, can add you a qq or something to exchange |
My program runs without any issue, and the results are quite promising. Certainly, you can add my QQ: 2671093345, and we can discuss further. |
你好,我可以加你联系方式吗,我也是个菜鸡,想交流一下 |
Hello author, I downloaded your programme and the dataset today to use spyder for study and research, but your source code is running with an error, I'm using the pdrcnn dataset, and the error is reported as follows: (no change in code)
ValueError: Input 0 of layer conv1d_48 is incompatible with the layer: : expected min_ndim=3, found ndim=2. Full shape received: [None, 120]
I'm looking for an answer.
The text was updated successfully, but these errors were encountered: