Skip to main content

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.

0 votes
0 answers
11 views

Understanding Divergence in LSTM Units with Zero Initialization and Shared Weights?

I'm trying to understand how LSTM units can diverge over time when they start with zero initialization and share the same weights. Here are the key points of my confusion: Initialization: All units ...
user164819's user avatar
0 votes
1 answer
17 views
+100

How to Incorporate Label Titles and Parent Folder Information in a Multiclass Classification Model Using Keras?

I'm building a multiclass classification system using Keras. I am working with a dataset that includes text data and its metadata. Both the text and the metadata are sequences of words. The output of ...
don's user avatar
  • 1
0 votes
0 answers
10 views

How to pass feature value to custom loss in Keras

I am using a custom loss to train my model and want to use feature value to have a differential loss, something like ...
neel's user avatar
  • 101
0 votes
0 answers
14 views

Feature importance and classes importance

I have the following trained time series classification tensorflow model : ...
user3668129's user avatar
0 votes
0 answers
12 views

Keras: Relationship extraction

I am trying to manage how to extract logical relations from medical sentences. E.g.: INPUT: "Candidiasis is infection by Candida species (most often C. albicans), manifested by mucocutaneous ...
Yuri Salmanov's user avatar
0 votes
0 answers
31 views

Keras multi-label model predictions always sum to ~1

I believe I've configured this model correctly for multi-label classification, but it would seem that it insists on behaving like a multi-class model, since the predictions it outputs always sum to 1 (...
paammar's user avatar
  • 101
1 vote
0 answers
45 views

Why can't I replicate the results from this paper?

I'm trying to train a model to evaluate chess positions, following the methodology from this paper (note that the author presents several different architectures, but I'm only looking at the ANN with ...
William Markley's user avatar
0 votes
0 answers
17 views

Apply Swin transformer to 1d arrays

My input features are 1d arrays of shape (1000,) I can tokenize the arrays using tf.extract_patches ...
Alex's user avatar
  • 1
1 vote
1 answer
35 views

Validation accuracy can't increase above 70%

I am building a classifying model to predict images over 3 classes. The data is balanced, with 10.5k images for train ( 3.5k for each ), 3k validation images ( 1k each ). I increased my ...
Dragos123's user avatar
1 vote
0 answers
28 views

Validation accuracy stuck in tf keras

So I have a model to classify images into 3 classes. I have 10.5k train images ( 3.5 per each category ) and 3k ( 1k per each category ) validation images but I can't increase my val_acc no matter ...
Dragos123's user avatar
1 vote
0 answers
17 views

How to include variable input shape in convLSTM2D?

I am classifying time series of 72x72 images in 4 filters (just like RGB). Things work well ...
user43280's user avatar
  • 111
0 votes
0 answers
11 views

Vision Transformer model training and Validation accuracy stuck at 50

I have built Vision Transformers from scratch using Tensorflow keras for Binary classification of Fake and Real images.The dataset is balanced, 50% Real images and 50% fake images. But when i run this ...
bunny's user avatar
  • 1
0 votes
0 answers
14 views

Why does the TensorFlow docs use a different GAN generator loss?

As per the original paper that introduced GANs, the generator loss is given as: $$ L_{G} = L _{BCE}(\mathbf{\vec 0}, \mathbf{D}(\mathbf{G}(\mathbf{\vec z}))) = \log(1 - \mathbf{D}(\mathbf{G}(\mathbf{\...
Sagnik Taraphdar's user avatar
0 votes
0 answers
18 views

What is the shape of the hidden/cell state of convLSTM2D?

I am new to convLSTM2D and I understand how it works, however, I am confused about the shape of the hidden states at different epochs ...
user43280's user avatar
  • 111
0 votes
0 answers
46 views

Is it possible to train a neural network to feed into a Random Forest Classifier or any other type of classifier like XGBoost or Decision Tree?

I want to create a model architecture to predict future stock price movement as such: The Goal of this model is to predict if the price will go UP or DOWN within the next 3 months. I have tried a few ...
Evank's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
182