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,723
questions
3
votes
2
answers
1k
views
What is the better way to predict classes for the models developed using the functional API in Keras
We can predict the class for new data instances using the Sequential classification model in Keras using the predict_classes() function. What is the way to predict the class for models that developed ...
1
vote
1
answer
515
views
Keras multi GPU in vast.ai
I am trying to run a keras model on vast.ai using multiple GPUs. For that I am using keras.utils.multi_gpu_model , however I keep having this error:
...
1
vote
2
answers
554
views
Metrics values are equal while training and testing a model
I'm working on a neural network model with python using Keras with TensorFlow backend. Dataset contains two sequences with a result which can be 1 or 0 and positives to negatives ratio in dataset is 1 ...
3
votes
1
answer
303
views
Keras early stopping to a target
I'm really struggling to understand how the parameters of Keras early stopping callbacks play out, especially in the presence of a baseline. What I want is simply for the training to stop within 2 ...
1
vote
1
answer
450
views
[Keras][LSTM] error due to shape mismatch
I have following data. Where I have 2 samples. Each sample I have 3 time steps each with 2 features. I intend to have 2 batches (to updates weights after every sample)
...
3
votes
2
answers
3k
views
Running out of memory when training Keras LSTM model for binary classification on image sequences
I'm trying to come up with a Keras model based on LSTM layers that would do binary classification on image sequences.
The input data has the following shape: ...
2
votes
1
answer
104
views
Training a model where each response in the observation data has a different known varience
I have a dataset where each response variable is the number of successes of N Bernoulli trials with N and p (the probability of success) being different for each observation. The goal is to train a ...
0
votes
1
answer
537
views
Getting mean and covariance matrix for multivariate normal from keras model
I have a dataset that has 6 input features and 5 output features. I want to use a keras sequential model to estimate the mean vector and covariance matrix from any row of input features assuming the ...
2
votes
1
answer
604
views
Two parallel models for semantic segmentation in Keras
I want to build two parallel models for image semantic segmentation in Keras.
...
0
votes
1
answer
686
views
Precision, recall and accuracy metrics significantly different between training/validation and actual predictions
I have two sequential models built with Keras that train on data from a CSV file.
This is how they are built
...
1
vote
2
answers
899
views
Tensorflow keras fit - accuracy and loss both increasing drastically
ubuntu - 20.04
tensorflow 2.2
dataset used = MNIST
I am testing tensorflow and i notice that validation sparse_categorical_accuracy (accuracy) and validation <...
0
votes
1
answer
458
views
Sequentially Training Certain Layers/Sub-Networks in Keras Functional API
Suppose we have a stacked neural network architecture with a
layer that is to be shared between two "sub-networks".
Example:
...
0
votes
2
answers
831
views
Training object detection models from the scratch without using pre-trained models and weights
I have a data set of 25 images. I wish to run Faster RCNN or yolov3 object detection models on this images.I want to create my custom trained model and get weights after running say 10 epochs. Later I ...
0
votes
0
answers
10
views
Recommendations for a machine learning trading system [closed]
I recently completed a project that I have been working on to predict the movement of a stocks price either up or down then using a portfolio optimization algorithm to create a expected sharpe ratio ...
1
vote
2
answers
4k
views
MY lstm has a really low accuracy, is there anyway to improve it?
I am trying to make a model to classify whether these patients can be diagnosed with dementia by their 35 days of biometric data.
A brief summary of a dataset is below.
as an input X_train data, it ...