Deep Learning Keras Framework notes of Autoencoder class

Source: Internet
Author: User
Tags keras

Deep learning Keras Frame Notes Autoencoder class use notes

  

This is a very common auto-coding model for building. If the parameter is Output_reconstruction=true, then Dim (input) =dim (output), otherwise dim (output) =dim (hidden).

Inputshape: Depends on the definition of encoder

Outputshape: Depends on the definition of decoder

Parameters:

    • Encoder: Encoder, which is a layer type or layer container type.
    • Decoder: Decoder, which is a layer type or layer container type.
    • Output_reconstruction:boolean. When the value is false, when the Predict () function is called, the output is the activation function that passes through the deepest hidden layer. Otherwise, the output of Thefinal decoder layer is presented. Be sure your validation the data conforms to thislogic if you decide to the use of any. (This piece is not quite understood, later to understand the additional)
    • Weights: A list of numpy arrays that is used to initialize weights. This list has at least 1 elements, and its shape is (Input_dim, Output_dim).

Example:

From keras.layers import Containers     # Input shape: (nb_samples, +)  encoder =containers. Sequential ([Dense (input_dim=32), dense (8)])  decoder =containers. Sequential ([Dense (+, input_dim=8), dense (+)]) Autoencoder =sequential (     )  Autoencoder.add (Autoencoder ( Encoder=encoder, Decoder=decoder,output_reconstruction=false))  

By the way, a small advertisement, welcome to visit your own website: cylindrical template

Deep Learning Keras Framework notes of Autoencoder class

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.