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
0 answers

ValueError: Shape mismatch: when using Keras Autoencoder(Theano Backend)

My data is a (83,104) pandas dataframe. And my first(only) hidden layer is expected to have 5 neurons. When I wrote my code like this: input_img = Input(shape=(104,)) # 104 dates as variable encoded = Dense(5, activation='relu')(input_img) decoded…
phil
  • 171
  • 2
  • 8
0
votes
1 answer

cascaded model (autoencoder + classifier) in keras

I am building a cascaded model (an autoencoder model stacked with a classifier). The input to the autoencoder is a set of images and the output of the autoencoder will be fed in to a pretrained classifier. auto_input= Input(shape=(ch, height,…
shaaa
  • 503
  • 1
  • 4
  • 16
0
votes
1 answer

Does simple deep seq2seq without peeking or attention converge?

Are there any successful application of deep seq2seq model where the decoder read ONLY the encoder's output state (final step of encoder's internal state) at its first step, and carry out multiple steps decoding? I.e. no peeking, no attention etc.…
0
votes
1 answer

RBM pretraining weights from Hinton paper code for weights of MATLAB native feedforwardnet toolbox

I want to use RBM pretraining weights from Hinton paper code for weights of MATLAB native feedforwardnet toolbox. Anyone can help me how to set or arrange the pre-trained weight for feedforwardnet? for instance, i used Hinton code from…
0
votes
1 answer

How to input csv data in an autoencoder

I am using the code below that implements an autoencoder. How can I feed the autoencoder with data for training and testing? import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data class Autoencoder(object): def…
hza
  • 1
0
votes
2 answers

Is there any toy example of building convolutional autoencoders using MxNet?

I'm looking for implementations of convolutional autoencoder using MxNet. But there is only one example of autoencoder based on Fully Connected Networks, which is here. There is also an issue asking similar questions in github, but receives very few…
pfc
  • 1,831
  • 4
  • 27
  • 50
0
votes
1 answer

Autoencoder not learning while training

python 3.5.2, tensorflow 1.0.0 Somewhat new in programming with autoencoders. I am trying to implement a simple network to get familiarize from here. I have used the same input data in which a CNN is able to classify perfectly with accuracy of 98%.…
Raady
  • 1,686
  • 5
  • 22
  • 46
0
votes
1 answer

Convolutional Autoencoders: Black Feature Maps

I am working with convolutional autoencoders. My autoenoder configuration has one convolutional layer with stride (2,2) or avg-pooling and relu activation and one deconvolutional layer with stride (2,2) or avg-unpooling and relu activation. I…
0
votes
0 answers

Colour image classification using Stacked Autoencoders

I want to use Stacked Autoencoders for colour image classification. The example given on matlab site for image classification of MNIST dataset is only for black and white images which has only one colour channel. But for colour images, it has 3…
user11622
  • 39
  • 1
  • 3
0
votes
1 answer

Why my 1 hidden layer autoencoder made with tensorflow does not work?

I wanted to make an autoencoder with just 1 layer, which has 100 hidden units. And, I used MNIST datasets given by tensorflow. But, it does not work. I don't know what the problem is. When I debugged, my decoder layer just is filled with all 1's. Is…
0
votes
1 answer

Keras Autoencoders - How to visualize the values of the hidden layer?

I am trying to do a project where the values of hidden layers play a pivotal role. I am trying to use a sample autoencoder from this tutorial, https://blog.keras.io/building-autoencoders-in-keras.html I am able to do the gradient descent and it is…
0
votes
1 answer

tensorflow: pow gives a negative output

I'm using tensorflow to build a simple autoencoder model, however there's this strange bug that I can't diagnose I have a loss function that looks like this: def loss_func(x,y): return 0.5 * tf.reduce_mean(tf.pow(x-y, 2 ) ) total loss is…
mohRamadan
  • 571
  • 6
  • 15
0
votes
1 answer

Explain Auto-Encoders to me please

What I've read says that the output is the input, and that if you have an error trying to reconstruct an observation then it is anomalous. That makes sense to me. The problem I'm having is this: I'm familiar with supervised methods, so here's what…
Stephen
  • 324
  • 2
  • 9
0
votes
2 answers

the weight of encoder do not change when training autoencoder using tensorflow

The coder implementing autoencoder is shown as following: # One Layer Autoencoder # Parameters learning_rate = 0.01 training_epochs = 20 batch_size = 256 display_step = 1 examples_to_show = 10 # Network Parameters n_hidden= 128 # 1st layer num…
0
votes
1 answer

how to use TensorBoard callback AND TensorBoard server?

keras blog autoencoder code I am trying to run the code for Convolutional Autoencode from https://blog.keras.io/building-autoencoders-in-keras.html from keras.layers import Input, Dense, Convolution2D, MaxPooling2D, UpSampling2D from keras.models…
Hoda Fakharzadeh
  • 697
  • 3
  • 7
  • 18