Coder Social home page Coder Social logo

rajarsheem / libsdae-autoencoder-tensorflow Goto Github PK

View Code? Open in Web Editor NEW
149.0 149.0 39.0 3.17 MB

A simple Tensorflow based library for deep and/or denoising AutoEncoder.

License: MIT License

Python 100.00%
autoencoder deep-learning feature-learning

libsdae-autoencoder-tensorflow's People

Contributors

alvarouc avatar rajarsheem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libsdae-autoencoder-tensorflow's Issues

Blas GEMM launch failed

Hi, Rajarshee Mitra!
Thank you very much for your code! But when I tried running your code on my computer, I always got the error shown below:

'''
InternalError: Blas GEMM launch failed : a.shape=(100, 784), b.shape=(784, 200), m=100, n=200, k=784
[[Node: MatMul = MatMul[T=DT_FLOAT, transpose_a=false, transpose_b=false, _device="/job:localhost/replica:0/task:0/gpu:0"](_arg_x_0_0/_7, Variable/read)]]
'''
where 100 is batch_size, 784 and 200 are dimensions.

Can you offer me some help!
Thanks a lot!
Phil

AutoEncoder Graph Construction

Hi Rajarshee Mitra,

I have question regarding your code. I am confused how your code construct the connections between layers. Specifically, in line 63 of stacked_autoencoder.py, you called the run function for different layers . it seems for me that you construct n different auto-encoders instead of one stacked with n hidden layers.

Best regards,
Mohammad

Evaluation

Nice library.
How did you evaluate the goodness of your feature representation? Is the global loss the general reconstruction?
So for example, the 2nd DAE gets the encoded version of the image, so is the loss function of the 2nd DAE the followin: LOSS(decoded(noisy encoded input), decoded(encoded output))
This way the network doesn't loose seight of the global goal: Finding an optimal feature representation, right?

What I did was:

  1. Train first DAE, get encoded versions of the training data
  2. Use the encoded version to train another DAE with LOSS(noisy encoded, encoded)
    I think it was my mistake that I don't consider the completely reconstructed image as the loss..

Is that right?

Other dataset than mnist

I have just started learning denoising autoencoders but I want to import dataset of images than mnist what can be done to do so . I have tried giving path name and assigning it to a variable but im getting a type error.

Error in Mini Batch

The mini batch function may generate same sample over
There is no removal already used indices

Also issue with mask noise

Following error:

File "algorithms/deepautoencoder/stacked_autoencoder.py", line 42, in add_noise
    frac = float(self.noise.split('-')[1])

Cannot get cross-entropy to work

Hi,

I'm playing around with this code for a research project and everything works fine with mean-squared-error, however as soon as I switch to cross-entropy (which I really want), it does not converge and loss gets bigger over time... I tried numerous parameters but nothing seems to work. I'm using MNIST with the following model.

model = StackedAutoEncoder(
    dims=[100],
    activations=['softmax'], 
    noise='gaussian', 
    epoch=[1000],
    loss='cross-entropy',
    lr=0.005,
    batch_size=100,
    print_step=100
)

Do you know why this isn't working?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.