Showing posts with the label neural-network

[FIXED] Softmax and its derivative along an axis

Issue I'm trying to implement a Softmax activation that can be applied to arrays of any dimensi…

[FIXED] Am I mislabeling my data in my neural network?

Issue I'm working on an implementation of EfficientNet in Tensorflow. My model is overfitting a…

[FIXED] Recall and precision not working correctly(keras)

Issue I have to build a model in keras. I am really struggling with my actual dataset, hence I am j…

[FIXED] Keras Semantic Similarity model from pre-trained embeddings

Issue I want to implement a Keras model to predict the similarity between two sentences from words …

[FIXED] gensim word2vec: Find number of words in vocabulary

Issue After training a word2vec model using python gensim , how do you find the number of words in …

[FIXED] Keras - How to perform a prediction using KerasRegressor?

Issue I am new to machine learning, and I am trying to handle Keras to perform regression tasks. I …

[FIXED] Using Keras ImageDataGenerator in a regression model

Issue I want to use the flow_from_directory method of the ImageDataGenerator to generate training…

[FIXED] Non linear Regression: Why isn't the model learning?

Issue I just started learning keras. I am trying to train a non-linear regression model in keras bu…

[FIXED] What is num_units in tensorflow BasicLSTMCell?

Issue In MNIST LSTM examples, I don't understand what "hidden layer" means. Is it the…

[FIXED] Problem with dimensionality in Keras RNN - reshape isn't working?

Issue Let's consider this random dataset on which I want to perform RNN: import random import …

[FIXED] Training neural networks with very large feature tensors of very little complexity

Issue This is something of a meta question, detached from code or libraries. Let's say we have…

[FIXED] Pytorch LSTM - generating sentence- word by word?

Issue I'm trying to implement a neural network to generate sentences (image captions), and I…

[FIXED] keras - Difference between model predict function and model API function

Issue I am trying to obtain the outputs and the final hidden states from a SimpleRNN layer in my mo…

[FIXED] Using RNN Trained Model without pytorch installed

Issue I have trained an RNN model with pytorch. I need to use the model for prediction in an enviro…

[FIXED] keras, LSTM - predict on inputs of different length?

Issue I have fitted an LSTM that deals with inputs of different length: model = Sequential() model…

[FIXED] Understanding LSTM through example

Issue I want to code up one time step in a LSTM. My focus is on understanding the functioning of th…

[FIXED] Backpropagation through time in stateful RNNs

Issue If I use a stateful RNN in Keras for processing a sequence of length N divided into N parts (…

[FIXED] Strange memory usage of a custom LSTM layer in tensorflow and training gets killed

Issue I'm trying to create a custom LSTMCell in TensorFlow. I have a CPU with 24GB of RAM (No G…

[FIXED] How to apply a different dense layer for each timestep in Keras

Issue I know that applying a TimeDistributed(Dense()) applies the same dense layer over all the ti…

[FIXED] Trouble converting tensorflow model architecture to keras api

Issue I found a tensorflow model for image classification. It achived an accuracy of roughly 65%. T…