Questions tagged [keras]

For questions related to Keras, the modular neural networks library written in Python. However, note that programming questions are off-topic here.

121 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
46 views

Why is my DDPG agent (implemented in TensorFlow) not learning?

I am trying to implement a Reinforcement Learning algorithm called DDPG in TensorFlow 2.x on a custom gym environment. I am new to TF. So, I started with the DDPG TF 1.x implementation from pemami4911....
0
votes
0answers
24 views

CNN keras accuracy not improving

I am trying to duplicate and learn from example given on this website . With my little modification, I am trying to simple exchange color for example like red to orange in an image. The original ...
0
votes
0answers
25 views

Binary classification to recognize blobs on pictures generates many false-positive results

I am training a NN for blobs vs non-blobs recognition. Blobs example: Non-blobs: Keras architecture is: ...
0
votes
0answers
34 views

Which loss function and evaluation metric should I use for a multiple output prediction problem?

I was running into a situation with a data set like this I have 4 events and and they might happen together in pairs. I want to use 3 features to predict the coupling between event. I am building a ...
0
votes
0answers
27 views

How much data do we need for making a successful de-noising auto-encoder?

Is there a guide how much data do you need for making successful denoising model using autoencoders? Or the rule is, the more data, the better it is? I tried with small dataset 350 samples, to see ...
0
votes
0answers
32 views

How does multiple outputs added from intermediate layers of a keras functional model influence its learning behaviour / gradients?

let us assume I have a keras functional model with 2 inputs. My model has two branchs, each branch for each input. The model only uses dense layers. The first input is the data itself (feature vector ...
0
votes
1answer
32 views

How to use 'Canny/Watershed' algorithm's output as an input for Image Classification Model

I have a very silly problem in hand. I have implemented 2 methods which give me the mask to separate the objects from the background. What I get from one method is the object encapsulated in the red ...
0
votes
0answers
33 views

How to convert something to vectors

I wanted to create an encoder, which is the first part of an autoencoder. I do not want to build the whole autoencoder but rather wanted to test whether my mobile device can support running an encoder ...
0
votes
0answers
20 views

Keras word ordering task

I'm trying to solve the word ordering task: given a syntactically unordered sentence, recover the right order of the words. The adopted approach is to transform each sentence in a dependency tree and ...
0
votes
1answer
73 views

How to handle extremely 'long' images?

After transforming timeseries into an image format, I get a width-height ratio of ~135. Typical image CNN applications involve either square or reasonably-rectangular proportions - whereas mine look ...
0
votes
0answers
43 views

My CTC loss model's loss stagnates and then outputs only blank characters

I am trying to implement BaiDu's DeepSpeech1 in keras using CTC loss, my code is below: ...
0
votes
0answers
29 views

How would I go about performing a single step of gradient descent on this model?

I have a classification model that consists of a CNN followed by an SVM. I used the Keras library for the CNN portion and sklearn for the SVM portion. I am assuming I will have to fiddle with the ...
0
votes
0answers
25 views

Model training with colored images instead of grayscale

I'm new to Python and Deep Learning with Keras. With some tutorials online for cat vs non-cat classification, I was able to compile this simple training code for my ...
0
votes
0answers
101 views

How to set loss weight to zero for an output dimension in keras?

Suppose I am training a model to detect facial keypoints that allow occlusions to be present. The input is an image of a face, and the model has to predict the x,y coordinate of both eyes and mouth. ...
0
votes
0answers
97 views

Why is the value range of my LSTM model's prediction different from my test labels?

I am using LSTM to do time-series anomaly detection. The data is an hourly sensor input across multiple years (i.e. the global_active_energy attribute of the dataset from https://www.kaggle.com/uciml/...
0
votes
0answers
37 views

What to look for when CNN returns same prediction for every input?

I am trying to use a CNN to do a regression prediction on some statistical data. The data is time-series data formatted into a 2-D grid. The network I'm using looks like this: ...
0
votes
0answers
29 views

Custom optimizer and word-vector evaluator lstm

I’m using Keras LSTM layers and building a model that is trained off ethics text. I have a problem of often over fitting (the network basically remembers my input corpus as it is very small). I was ...
0
votes
0answers
225 views
-1
votes
0answers
23 views

Keras autoencoder is not reconstructing 1D signals

I would like to train an autoencoder neural network. Assume I have a 1D signal: Then in order to create a dataset, I split this signal into several thousands of (overlapping) segments (each with 1024 ...
-1
votes
0answers
21 views

How do I split test and train data in gait recognition(or Face recognition)?

I am trying to implement gait recognition with Keras, I have a Gait-dataset and I was wondering how I would be able to handling and split the data frame into two samples (80%-20%) for training and ...

1 2
3