Skip to main content

All Questions

Tagged with
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 \...
Gst's user avatar
  • 21
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 ...
user155153's user avatar
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 ...
interoception's user avatar
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 ...
Marek M.'s user avatar
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 ...
Alexander Ljungberg's user avatar
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: ...
deethereal's user avatar
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 ...
Patrick's user avatar
  • 11
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 ...
Jared Frazier's user avatar
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 ...
Shameel Faraz's user avatar
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 ...
user3668129's user avatar
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: ...
user3668129's user avatar
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 ...
fromSAS2Spark's user avatar
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 ...
Shlomi Schwartz's user avatar
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: ...
Frank's user avatar
  • 1
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, ...
Turned Capacitor's user avatar

15 30 50 per page
1
2 3 4 5