Questions tagged [autoencoder]

An autoencoder, autoassociator or Diabolo network is an artificial neural network used for learning efficient codings. As such, it is part of the dimensionality reduction algorithms.

The aim of an auto-encoder is to learn a compressed, distributed representation (encoding) for a set of data. This means it is being used for dimensionality reduction. Auto-encoders use two or more layers, starting from the input data (for instance in a face recognition task this would be pixels in the photograph):

  • A number of hidden layers (usually with a smaller number of neurons), which will form the encoder.
  • A number of hidden layer leading to an output layer (usually progressively bigger until the last one, where each neuron has the same meaning as in the input layer), which will form the decoder.

If linear neurons are used, then the optimal solution to an auto-encoder is strongly related to PCA.

When the hidden layers are larger than the input layer, an autoencoder can potentially learn the identity function and become useless; however, experimental results have shown that such autoencoders might still serve learn useful features in this case.

Auto-encoders can also be used to learn overcomplete feature representations of data.

The "coding" is also known as the embedded space or latent space in dimensionality reduction where the encoder will be used to project and the decoder to reconstruct.

1553 questions
0
votes
1 answer

LSTM autoencoder Issue on the dimension with Keras

I am trying to make an autoencoder with Keras. I am having error as follows ValueError: Error when checking input: expected lstm_1_input to have 3 dimensions, but got array with shape (480, 7) These are the following data info df.shape =>…
TheTechGuy
  • 1,568
  • 4
  • 18
  • 45
0
votes
1 answer

Autoencoder with different scale in different dimensions?

Q1, I am trying to implement autoencoder, and I have data like this: 800 300 1 100000 -0.1 789 400 1.6 100500 -0.4 804 360 1.2 100420 -0.2 .... How do I suppose to normalize these data to be able for training? Q2, Because I don't know the way…
0
votes
0 answers

Is patch extraction an important step before training deep neural networks?

I am trying to implement the following paper : https://ieeexplore.ieee.org/document/8281622 In this paper patch extraction process has been carried out before training of the convolutional denoising autoencoder model. I wanted to know if this step…
Somit
  • 303
  • 2
  • 10
0
votes
1 answer

Forming conditional distributions in TensorFlow probability

I am using Tensorflow Probability to build a VAE which includes image pixels as well as some other variables. The output of the VAE: tfp.distributions.Independent(tfp.distributions.Bernoulli(logits), 2, name="decoder-dist") I am trying to…
0
votes
1 answer

Getting a part of a Keras Model

I have a model for an AutoEncoder as follows: height, width = 28, 28 input_img = Input(shape=(height * width,)) encoding_dim = height * width//256 x = Dense(height * width, activation='relu')(input_img) encoded1 = Dense(height * width//2,…
Ahmad
  • 8,811
  • 11
  • 76
  • 141
0
votes
1 answer

Autoencoder and SVD: Matrix apllications

in my study, I am using the so-called Lee Carter Model (Mortality model) in which you can get the model parameters by using Singular Values Decomposition on the matrix of (log mortality rate- the average age-specific pattern of mortality). I am…
an.dr.ea
  • 9
  • 4
0
votes
0 answers

Adding custom loss function for variational autoencoder keras

I am trying to add a custom loss function for variational autoencoder. Along with the reconstruction loss, KL divergence I wish to add a loss based on the difference between hamming distances of pairs of input and outputs. But the problem what I am…
Anil Gaddam
  • 9
  • 1
  • 5
0
votes
1 answer

How to shape input data for training an Autoencoder

Good evening and nice to meet you all. I've been asked for a project to use an autoencoder for anomaly detection purposes. The dataset (synthetic, created by me) consists of 9 fictitious sensor readings. The problem is that the request is to have…
Adam
  • 62
  • 6
0
votes
1 answer

Does attention improve performances for seq2seq autoencoders?

I'm trying to implement an RNN autoencode and I was wondering if attention would improve my results. My end goal is to build a document similarity search engine, and I'm looking for ways to encode the documents. As I'm not interested in training the…
0
votes
2 answers

Adding a muplitiply layer to an autoencoder in Keras

I want to add a multiply layer on top of an LSTM autoencoder. The multiply layer should multiply the tensor for a constant value. I wrote the following code which work without the multiply layer. Does anyone know how to adjust and make this…
learning-man
  • 119
  • 2
  • 11
0
votes
1 answer

Autoencoder Decoded Output

I am trying to build an AutoEncoder, where I am trying to de-noise the signal. Now, for example, the amplitude range of my input signal varies in between -47 to +32. But while I am getting the decoded signal (reconstructed one), that signal only…
0
votes
1 answer

AutoEncoder shape

I try to create a autoencoder in Tensorflow without using contriib. Here is the original code https://github.com/Machinelearninguru/Deep_Learning/blob/master/TensorFlow/neural_networks/autoencoder/simple_autoencoder.py Here is the program I modify: …
dev dev
  • 109
  • 15
0
votes
1 answer

Saving autoencoder output array as an image

I have designed an autoencoder to read an (256*256) RGB image which gives an output as an array of float32 elements with dimensions (256,256,3) with some of the elements as shown in the figure. img =…
mrin9san
  • 305
  • 1
  • 2
  • 12
0
votes
1 answer

Split a trained neural network to 2 parts and use the latter part

I have a simple autoencoder DNN with 4 convolution layers followed by 4 deconvolution layers. import tensorflow.contrib.layers as lays conv1 = lays.conv2d(inputs, 64, [5, 5], stride=2, padding='SAME') conv2 = lays.conv2d(conv1, 32, [5, 5],…
Achintha Ihalage
  • 2,310
  • 4
  • 20
  • 33
0
votes
1 answer

AutoEncoder Cannot Understand why my decoded Images look like heatmaps?

I am having a big problem when implementing a Variational Autoencoder, it being that all images end up looking like this: when the real image is this: The training set is CIFAR10 and the expected outcome is to manage to construct similar images.…
Paul
  • 121
  • 1
  • 8