Category "keras"

sklearn train_test_split on list of 3-dimensional arrays

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

Tensorflow Keras Dataset Filepath within PyCharm

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

Having issues with SGD/Keras in my AI chatbot

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

keras AssertionError: Duplicate registrations for type 'experimentalOptimizer'

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

Is it possible to automatically infer the class_weight from flow_from_directory in Keras?

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

Keras: network doesn't train with fit_generator()

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.

Keras - Plot training, validation and test set accuracy

I want to plot the output of this simple neural network: model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy']) history = model.fit

Could not load dynamic library 'cudart64_101.dll' on tensorflow CPU-only installation

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

Keras verbose training progress bar writing a new line on each batch issue

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

Keras verbose training progress bar writing a new line on each batch issue

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

Whenever i try to print classification report, in accuracy column it prints some other value 0.50 but my accuracy is 0.96

Importing libraries import matplotlib.pyplot as plt import seaborn as sns import keras from keras.layers import * from keras.models import * from sklearn.metric

Tensorflow - ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type float)

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

Specifying the batch size when subclassing keras.model

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

How to load data from a downloaded tar.gz file in tensorflow/keras?

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

input_shape of Conv1D layer Keras

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

Sparse Categorical CrossEntropy shape problem with Keras

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

Error: ValueError: The last dimension of the inputs to `Dense` should be defined. Found `None`

I'm trying to build a lstm model for text classification and I'm receiving an error. This is my entire code that I've tried. Please let me know what's the reas

Is it possible to continue training from a specific epoch?

A resource manager I'm using to fit a Keras model limits the access to a server to 1 day at a time. After this day, I need to start a new job. Is it possible wi

Create custom convolution layer and compare two keras layers

I am currently creating a network in keras to perform harmonic/percussive source separation on an audio spectrogram using a median filtering technique (http://d

Validation loss and loss stuck at 0

I am trying to train a classification problem with two labels to predict. For some reason, my validation_loss and my loss are always stuck at 0 when training. W