Top "Rnn" questions

A recurrent neural network (RNN) is a class of artificial neural network where connections between units form a directed cycle.

No module named 'tqdm'

I am running the following pixel recurrent neural network (RNN) code using Python 3.6 import os import logging import numpy as …

python tensorflow pixel rnn tqdm
Understanding a simple LSTM pytorch

import torch,ipdb import torch.autograd as autograd import torch.nn as nn import torch.nn.functional as F import …

neural-network lstm pytorch rnn
PyTorch: DecoderRNN: RuntimeError: input must have 3 dimensions, got 2

I am building a DecoderRNN using PyTorch (This is an image-caption decoder): class DecoderRNN(nn.Module): def __init__(self, embed_…

python-3.x pytorch rnn encoder-decoder
How to visualize attention weights?

Using this implementation I have included attention to my RNN (which classify the input sequences into two classes) as follows. …

keras deep-learning nlp rnn attention-model
PyTorch: manually setting weight parameters with numpy array for GRU / LSTM

I'm trying to fill up GRU/LSTM with manually defined parameters in pytorch. I have numpy arrays for parameters with …

python lstm pytorch rnn
How to add Dropout in Keras functional model?

Let's say I have an LSTM layer in Keras like this: x = Input(shape=(input_shape), dtype='int32') x = …

python machine-learning neural-network keras rnn
Keras reports TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

I'm a beginner in Keras and just write a toy example. It reports a TypeError. The code and error are …

python tensorflow machine-learning keras rnn