Showing posts with the label tensorflow

[FIXED] How do I compute this gradient in TF 2.0?

Issue I am providing a minimal example of what I want to solve. I have defined a class and in that …

[FIXED] Tensorflow: x - reduce_mean(x) has gradient 0

Issue I was observing gradients when I noticed that the gradient of subtracting one's axis'…

[FIXED] Keras multi classifier is always giving 0 output

Issue I built this keras model for multi classification model = tf.keras.Sequential([ tf.keras.l…

[FIXED] TypeError: 'retval_' has dtype int32 in the main branch, but dtype float32 in the else branch

Issue I am training my model to address image classification problem, i have 1000 images classifie…

[FIXED] Evaluation with pre-trained model results in Type error

Issue I have a trained inceptionV3 model that I want to test on a new data set. However, i am getti…

[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] Multi Label Imbalanced dataset classification

Issue I am currently working on an multi label fashion item dataset which is highly imbalanced I tr…

[FIXED] How to show the class distribution in Dataset object in Tensorflow

Issue I am working on a multi-class classification task using my own images. filenames = [] # a l…

[FIXED] How to use tensorflow on spyder?

Issue I am a new users for Python and want to use tensorflow. I think I successfully installed tens…

[FIXED] Reducing False positives ML models

Issue Is there a nice way to enforce a limit on the false positives while training a ML model? Let…

[FIXED] What's the difference between Keras' AUC(curve='PR') and Scikit-learn's average_precision_score?

Issue I am quite confused on the difference between Keras' AUC(curve='PR') and Scikit-…

[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] Custom metric Turns to NaN after many steps in each epoch

Issue I am using custom Recall and Precision metrics in my model. I know they have them built into …

[FIXED] How do I adapt code to make CNN model compatible with a higher dimension word embedding?

Issue I have been following an online tutorial on 1D CNN for text classification. I have got the mo…

[FIXED] movie similarity using Word2Vec and deep Convolutional Autoencoders

Issue i am new to python and i am trying to create a model that can measure how similar movies are …

[FIXED] Deep Convolutional Autoencoder for movie similarity

Issue i am new to python and i have a dataset that contains movie descriptions and i am trying to c…

[FIXED] using k-means with a placeholder as an input

Issue I'm running KMeans to cluster the data like from sklearn.cluster import KMeans kmeans =…

[FIXED] Bidirectional GRU with 2x2 inputs

Issue I am builduing a network, that splits strings into words, words into characters, embeds each …

[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] Failing to match the required number of dimensions for Keras LSTM model

Issue I have tried to set up a bare minimum example for building a neural network. I got 5 prices f…