Code Monkey home page Code Monkey logo

neural-em's People

Contributors

sjoerdvansteenkiste 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

neural-em's Issues

Univariate gaussian

Hi,

I saw in your code that you used a univariate Gaussian (or univariate Bernoulli) distribution to compute the pixel probabilities.
I'm wondering if you used the univariate formulation because you assume that each pixel and each channel are independent?

If that is the case, and I want to extend the model to items with a d-dimensional embedding, should I use a d-variate distribution or it wouldn't change much from the univariate formulation?

Cheers,
Sandro

the calculation of gamma with bernoulli distribution

Hi! Fisrst of all, thanks for the codes.
I read the codes, and I found that you compute the pixelwise probabilities of prediction with bernoulli distribution as probs = pdata + (1-data)(1-p) (in function conpute_em_probabilities->class NEMCell->nem_model.py),.
I am not sure what this formula means. Is it the expection with the latent varialble z that would be further normalized in dimention k?

RNN-EM

Hi, in the paper, you mentioned "RNN-EM naturally extends to sequential data", does it mean that RNN-EM works better (than N-EM) in the "flying" experiments? Why the result shows that RNN-EM also works better than N-EM in the static case?

Thank you.

Cannot locate the learnable learning rate

Hello,

I have a question about the learning rate implemented in N-EM.
In section A.1 of the appendix of your paper, you mention that "[we] train an additional weight to implement the learning rate that is used to combine the gradient ascent updates into the current parameter estimate."

I assume from this that the learning rate of the GEM algorithm is learned instead of fixed, but there aren't any more details as to the what network outputs the learning rate at each EM iteration and what are its inputs to this network. Furthermore, I can't seem to locate where in this repo this learnable learning rate is implemented.

I would really appreciate your help.
Thanks in advance :)

AttributeError: can't set attribute

Dear Sjoerd,

Currently, I am trying to work with your NEM framework.
However, I could not run it successfully.
The error I get is the following:

Traceback (most recent calls WITHOUT Sacred internals):
File "nem.py", line 336, in run
train_op, train_graph, valid_graph, debug_graph = build_graphs(train_inputs.output, valid_inputs.output)
File "nem.py", line 152, in build_graphs
train_graph = build_graph(train_inputs['features'], train_inputs['groups'])
File "nem.py", line 119, in build_graph
static_nem_iterations(features_corrupted, features, dataset['binary'])
File "D:\Unsupervised Learning\Neural-EM\nem_model.py", line 305, in static_nem_iterations
nem_cell = NEMCell(inner_cell, input_shape=(W, H, C), distribution=pixel_dist)
File "D:\Unsupervised Learning\Neural-EM\nem_model.py", line 50, in init
self.input_shape = input_shape
AttributeError: can't set attribute

Do you have any experience about it?
Thank you for your help!

Best,
Siming

Question on equation (4) in the paper

Hi, thanks for your great work and I have a question on equation (4)
eq-4
Equation(4) is calculating gradients of Q w.r.t 1, which is equation (2)
eq-2
since 1 is related with 1 in through 1.
I know the first part is 1
and my question is how to calculate the gradient of the second part 1 ?

Did you use 1 to get the result? but still no equation for 1

Sorry to bother and I know this is really a basic question but I tried a long time but did not get the result
Thanks for your time and any help would be appreciated

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.