Questions tagged [keras]
Keras is a popular, open-source deep learning API for Python built on top of TensorFlow and is useful for fast implementation. Topics include efficient low-level tensor operations, computation of arbitrary gradients, scalable computations, export of graphs, etc.
2,664 questions
5 votes
1 answer
41 views
Improve the Keras MNIST Model's Accuracy
Changing into a data engineer. I've started with this code to plot the metric of accuracy. ...
3 votes
1 answer
59 views
Why training time alternates between 900s and 70s when training my keras sequential model?
I am training a model using Keras python library to recognize images of drawings that belong to two artists. Here is a screenshot of the flactuations I am seeing: 587/587 ━━━━━━━━━━━━━━━━━━━━ 906s 2s/...
1 vote
0 answers
35 views
Is it really necessary to enforce constraints on ouputs in neural network?
I have a question. I'm doing a regression and I have 20 outputs where their sum is equal to 1 and also they are non-negative. I thought since their sum is equal to 1 maybe I can predict first 19 ...
3 votes
1 answer
71 views
What loss functions are suitable for a YOLO-like architecture in TensorFlow/Keras, especially for fine-tuning on an imbalanced dataset?
I'm working with a custom YOLO-like architecture implemented in TensorFlow/Keras. While pretraining on the COCO dataset works, I plan to fine-tune the model on a highly imbalanced dataset. ...
3 votes
1 answer
367 views
What does it mean when even a small set of samples don't give 0 loss?
I'm trying to do a regression problem where I find Molar compositions of some chemical species. I'm using this kind of netwrok: ...
5 votes
1 answer
100 views
How to measure that my dataset is good for the training?
I wanted to train a model for this dataset. the Inputs dataset is here:https://drive.google.com/file/d/1bbMa7auwYjYxyCB72UMBNv5kaojqV7WH/view?usp=sharing and the outputs dataset is here:https://drive....
4 votes
1 answer
80 views
My neural network doesn't overfit my dataset and my loss won't go down from a certain range
So I made a neural network from scratch, and it seems that my loss doesn't change at all; that's my train code. ...
8 votes
1 answer
252 views
What does it mean when validation loss increases over several epochs?
I'm training an LSTM model to predict a stock price. This is what I do with my model training: ...
6 votes
1 answer
147 views
How to implement this simple recommender system in Keras?
I've been working in data science for a long time, but very rarely have I been called upon to implement an ML algorithm; I've just ran other people's libraries. I'm trying to pick up the skill. I'm ...
2 votes
0 answers
62 views
DensNet169 model accuracy not increasing on medical classification dataset
I am training an DensNet model on medical dataset which has gold standards as per annotation. After training i noticed accuracy is just 60%. Later i performed following changes but still no luck. ...
1 vote
0 answers
40 views
GNN Loss NaN after first training example?
I am trying to train a GNN but am getting a NaN loss function immediately after the first training example. Below I have included all of the pertinent code. My input is 385 points in 3D space confined ...
1 vote
0 answers
34 views
Getting ValueError: Unexpected object from deserialization, expected a layer or operation, got a <class '__main__.L1Dist'> while reloading the model
here is the code from the Distance layer part because site is not allowing me to upload full code. embedding = make_embedding() distance layer ...
1 vote
0 answers
39 views
Q-values output is NaN in DQN model - input state is normalized and padded
I'm training a Deep Q-Network (DQN) to trade crypto using historical data. My model keeps outputting NaN values for the Q-values during prediction. I'm using a custom function getState2() to generate ...
2 votes
0 answers
87 views
tuple has no attribute "rank" error when trying to build bayesian neural net
I'm trying to build a BNN but am encountering the error in the title. I tried to ensure I'm not passing a tuple to .shape.rank by : using the functional API with explicit Input (should make first ...
2 votes
0 answers
38 views
Multinodal vs modular neural network
I’ve made a couple of neural networks that predict separate target features form the same dataset. All these networks have different hyperparameters and different function transforms for example (log) ...