All Questions
Tagged with keras autoencoder
75
questions
2
votes
1
answer
51
views
Custom loss function in python
I am trying to implement a custom loss function inspired by https://arxiv.org/pdf/2305.10464.pdf. That is:
$ L(\mathbf{x}) = (1-y) \left\lVert \mathbf{x_{true} - \mathbf{x_{pred}}} \right\rVert^2 + y \...
1
vote
1
answer
101
views
numpy in call method: how to run without eager execution?
I wrote an implementation of a feedback recurrent autoencoder in Keras. The key difference to a regular autoencoder is, that the decoded output is fed back to the input layers of both, encoder and ...
0
votes
1
answer
174
views
Constructing an LSTM autoencoder for variable-lentgth sequences
I would like to construct an LSTM autoencoder model for sequence anomaly detection where the sequences can be varying in length. I understand based on this answer that padding and masking can be used ...
0
votes
1
answer
98
views
Deepstack autoencoder
I'm trying to go through the first edition tabular challenge on Kaggle. Obviously my first few trials results did not satisfy me, so I went to see how other people did, and in the post of the first ...
1
vote
0
answers
54
views
Training a straight "copy the input to the output" autoencoder for audio is strangely slow
As a learning exercise, I'm training a "perfect" audio autoencoder. It has a hidden layer just as wide as the input layer, with linear activation. The expectation is that the network should ...
1
vote
0
answers
61
views
Deep autoencoder: validation loss doesn't change
I'm trying to understand autoencoders and reproduced some code from Keras documentation:
...
1
vote
0
answers
128
views
Trouble with anomaly/novelty detection (on microscale) - need easy practical guide with Keras
I am relatively new to the field of machine learning. However, I already have solved simple image classification tasks with Keras (for example building CNNs and classifying MNIST...). The rough deep ...
1
vote
0
answers
273
views
Custom keras callbacks and changing weight (beta) of regularization term in variational autoencoder loss function
The variational autoencoder loss function is this: Loss = Loss_reconstruction + Beta * Loss_kld. I am trying to efficiently implement Kullback-Liebler Divergence Cyclic Annealing--that is changing the ...
1
vote
1
answer
460
views
Conditional variational autoencoder: Feeding labeled MNIST to encoder with Keras
I am looking for a code implementation of a CVAE using MNIST in Keras.
I found this Youtube video:
https://youtu.be/8wrLjnQ7EWQ
that does VAE, but I am not sure how do I convert this and make encoder ...
7
votes
1
answer
1k
views
Why autoencoders use binary_crossentropy loss and not mean squared error?
Keras autoencoders examples:
(https://blog.keras.io/building-autoencoders-in-keras.html) use binary_crossentropy (BCE) as loss function.
Why they use ...
2
votes
0
answers
126
views
Convolutional autoencoder - why keras example is asymmetry model?
I'm looking on keras convolutional autoencoder example, and confused with the model structure:
...
3
votes
0
answers
552
views
Autoencoder: Size of out_backprop doesn't match computed
This question was asked before and non of the answered worked for, I have the code
...
1
vote
1
answer
205
views
Anomaly detection using LSTM AutoEncoder
Having a sequence of 10 days of sensors events, and a true / false label, specifying if the sensor triggered an alert within the 10 days duration:
sensor_id
timestamp
feature_1
feature_2
...
0
votes
0
answers
47
views
Autoencoder: good loss values while fitting, but the actual performance is bad
I'm implementing a 1D convolutional autoencoder to reduce the dimensionality of an array. Here is my architecture:
...
1
vote
1
answer
188
views
Latent variable graph in Variational Autoencoder
I followed this Keras documentation guide about Auto Encoders.
At the end of the documentation there is the graph of the latent variable z:
But I can not understand and how to interpret the plot, ...