I train the following model based on GRU, note that I am passing the argument stateful=True to the GRU builder. class LearningToSurpriseModel(tf.keras.Model):
I wish to experiement with noisy GRU states instead of resetting them to zero for each batch. I try below an implementation. My initial code was resetting initi
I'm trying to Implement Inception_resnet_v2 inside Faster-RCNN instead of using ResNet50. but when I try to run the code I got this TypeError: TypeError: Inputs
I'm trying to re-implement the text summarization tutorial here. The tutorial employs the Attention Layer proposed for Keras on GitHub (which does not come with
I want to do image classification and I have as data_X a list of 12000 three-dimensional numpy arrays. Those arrays all have the shape 300 x 300 x 3 (height, wi
I have seen this question and the answer. This doesn't help. I have MAC environment. Used Anaconda. And there is no .Keras folder under users directory. I was
Hello there guys. First time making a post here. So I am trying to make an AI chatbot using Python, in a Pycharm IDLE. While trying to start training the neura
I'm trying to build a Deep Q Learning code for CartPole-v1 game. However I encounter an AssertionError: AssertionError: Duplicate registrations for type 'experi
I have an imbalanced multi-class dataset and I want to use the class_weight argument from fit_generator to give weights to the classes according to the number o
I'm using Keras on the large dataset (Music autotagging with MagnaTagATune dataset). So I've tried to use fit_generator() fuction with a custom data generator.
I want to plot the output of this simple neural network: model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy']) history = model.fit
I just installed the latest version of Tensorflow via pip install tensorflow and whenever I run a program, I get the log message: W tensorflow/stream_execut
running a Dense feed-forward neural net in Keras. there are class_weights for two outputs, and sample_weights for a third output. fore some reason it prints the
running a Dense feed-forward neural net in Keras. there are class_weights for two outputs, and sample_weights for a third output. fore some reason it prints the
Importing libraries import matplotlib.pyplot as plt import seaborn as sns import keras from keras.layers import * from keras.models import * from sklearn.metric
Continuation from previous question: Tensorflow - TypeError: 'int' object is not iterable My training data is a list of lists each comprised of 1000 floats. For
I implement a model including a LSTM layer by subclassing the keras.Model. The following is the code I used. import tensorflow as tf from tensorflow import ker
Tensorflow datasets or tfds automatically starts downloading the data I want. I have cifar10 downloaded in my system. I can directly load the data in pytorch us
I am trying to make a CNN model for binary classification of a non-image dataset. My model/ code is working and producing very good results (accuracies are high
I have a multiclass problem where an image can be one of three classes (Masked, UnMasked, Hybrid). I am using image_dataset_from_directory from keras preprocess