-
Updated
May 19, 2020 - Python
rnn
Here are 1,687 public repositories matching this topic...
I tried some RNN regression learning based on the code in the "PyTorch-Tutorial/tutorial-contents/403_RNN_regressor.py" file, which did not work for me at all.
According to an accepted answer on stack-overflow (https://stackoverflow.com/questions/52857213/recurrent-network-rnn-wont-learn-a-very-simple-function-plots-shown-in-the-q?noredirect=1#comment92916825_52857213), it turns out that the li
-
Updated
Feb 18, 2019 - Python
-
Updated
Feb 11, 2019 - Python
-
Updated
May 19, 2019 - Python
-
Updated
Dec 5, 2019 - Jupyter Notebook
-
Updated
May 29, 2019 - Python
-
Updated
Mar 14, 2020 - Jupyter Notebook
-
Updated
Oct 15, 2019 - Jupyter Notebook
-
Updated
Mar 23, 2019 - Python
-
Updated
Jan 28, 2020 - Jupyter Notebook
-
Updated
May 18, 2020 - Python
I add a function(according the code in the tutorial4) to calculate the bleu score, but i get the vey low score(0.09), could you tell me why?
This is code to calculate bleu:
def translate_sentence(sentence, src_field, trg_field, model, device, max_len = 50):
model.eval()
if isinstance(sentence, str):
nlp = spacy.load('de')
tokens = [token.te
-
Updated
May 4, 2020
-
Updated
Oct 15, 2018 - Jupyter Notebook
I looked up the documentation for sequence_loss_by_example and it doesn't seem to be taking vocab_size as argument. I'd really appreciate it if you could help me understand what this argument is doing. Thanks a lot!
` loss = seq2seq.sequence_loss_by_example([self.logits],
[tf.reshape(self.targets, [-1])],
[tf.ones([args.batch_size * args.seq_length])],
-
Updated
May 19, 2020 - Jupyter Notebook
- This comment should be a part of README or another document;
- The working
dump_rnn.py
should be intraining/
, not just some link. - Either
denoise_training
should usefout
again instead of stdout orfout
should be removed. - Generated header uses float-format numbers like
#define VAD_GRU_SIZE 24.0
. - There s
-
Updated
Aug 1, 2017 - Jupyter Notebook
-
Updated
Mar 25, 2020 - CSS
-
Updated
Jul 3, 2019 - Jupyter Notebook
-
Updated
Oct 6, 2019 - Python
-
Updated
Dec 20, 2019 - Python
-
Updated
Jun 19, 2017 - Python
大佬您好,我参考了您得assignment1中得word2vec.py得实现。但是在运行过程中梯度检测报错了。
==== Gradient check for skip-gram ====
Gradient check failed.
First gradient error found at index (0, 0)
Your gradient: -0.087147 Numerical gradient: 1254.567123
我是用py3实现的,之前的所有代码几乎一致,也都正确通过了,唯独这里通过不了。之后我将您的代码直接全部拷贝下来运行,同样报以上错误,请问您知道怎么回事嘛,您当时运行通过了吗?
-
Updated
Nov 8, 2019 - Python
-
Updated
Oct 14, 2019 - Python
-
Updated
Apr 6, 2020 - Python
Improve this page
Add a description, image, and links to the rnn topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the rnn topic, visit your repo's landing page and select "manage topics."
Hi I would like to propose a better implementation for 'test_indices':
We can remove the unneeded np.array casting:
Cleaner/New:
test_indices = list(set(range(len(texts))) - set(train_indices))
Old:
test_indices = np.array(list(set(range(len(texts))) - set(train_indices)))