Top "Deep-learning" questions

Deep Learning is an area of machine learning whose goal is to learn complex functions using special neural network architectures that are "deep" (consist of many layers).

How to get mini-batches in pytorch in a clean and efficient way?

I was trying to do a simple thing which was train a linear model with Stochastic Gradient Descent (SGD) using …

python numpy machine-learning deep-learning pytorch
Saving best model in keras

I use the following code when training a model in keras from keras.callbacks import EarlyStopping model = Sequential() model.add(…

python keras deep-learning neural-network
TensorFlow: questions regarding tf.argmax() and tf.equal()

I am learning the TensorFlow, building a multilayer_perceptron model. I am looking into some examples like the one at: …

tensorflow neural-network deep-learning
Unbalanced data and weighted cross entropy

I'm trying to train a network with a unbalanced data. I have A (198 samples), B (436 samples), C (710 samples), D (272 samples) …

python machine-learning tensorflow deep-learning
ValueError: Tensor must be from the same graph as Tensor with Bidirectinal RNN in Tensorflow

I'm doing text tagger using Bidirectional dynamic RNN in tensorflow. After maching input's dimension, I tried to run a Session. …

python tensorflow deep-learning recurrent-neural-network bidirectional
How to stack multiple lstm in keras?

I am using deep learning library keras and trying to stack multiple LSTM with no luck. Below is my code …

tensorflow deep-learning keras lstm keras-layer
How to do gradient clipping in pytorch?

What is the correct way to perform gradient clipping in pytorch? I have an exploding gradients problem, and I need …

python machine-learning deep-learning pytorch gradient-descent
Common causes of nans during training

I've noticed that a frequent occurrence during training is NANs being introduced. Often times it seems to be introduced by …

machine-learning neural-network deep-learning caffe gradient-descent
Concatenate Two Tensors in Pytorch

RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 2. Got 32 and 71 in dimension 0 at /pytorch/aten/src/THC/…

python machine-learning deep-learning pytorch tensor