Giter VIP home page Giter VIP logo

mopoe's People

Contributors

thomassutter 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

Watchers

 avatar  avatar

mopoe's Issues

Confusion about PoE fusion

Thanks for your great paper. I have a confusion about the PoE part and wonder if you can clarify it.

In the paper, Definition 1 shows that the posterior is made by PoE, but i don't realize how we did it.

I tried to find the answer in the code, and came down to poe
It seems to be adding mus and vars but not product it,what is the meaning of it?

I would apologize if it's a naive question, since i just study ML for a short time,and i will appreciate it if you could clarify it.
Thank a lot.

Confusion about MoE fusion

Thanks for producing this interesting paper. I have a confusion about the MoE part and wonder if you can clarify it.

In the paper, Eq (6) is the objective to be optimized, which involves KL(sum_i expert_i || prior). Suppose expert_i is Gaussian, how do you compute the KL between a mixture-of-gaussian and the prior? I don't think this has a closed form.

I tried to find the answer in the code, and came down to moe_fusion and
mixture_component_selection. It seems to be performing some sort of sampling. Is this the same as the importance sampling in MMVAE (Shi 2019)?

Any clarification would be much appreciated. Thank you.

file missing error?

File "MoPoE/eval_metrics/sample_quality.py", line 16, in
import prd_score.prd_score as prd
ModuleNotFoundError: No module named 'prd_score'

too many open files issue

Hi Thomas,
I trained your code on the polymnist dataset, and got error every time in MoPoE/utils/TBLogger.py line 66 when the training epoch progress is 8.0%.

`File "/data/home/chenxiaoyu/code/VAE/MoPoE/utils/TBLogger.py", line 66, in write_lhood_logs
self.writer.add_scalars('Likelihoods/%s'%

File "/data/home/chenxiaoyu/anaconda3/envs/pytorch_1 12.1_py 9/lib/python3.9/site-packages/tensorboardX/writer.py", line 86, in add_scalars
fw = FileWriter(logdir=fw_tag)

File "/data/home/chenxiaoyu/anaconda3/envs/pytorch_1 12.1_py 9/lib/python3.9/site-packages/tensorboardX/writer.py", line 103, in init
self.event_writer = EventFileWriter(

File "/data/home/chenxiaoyu/anaconda3/envs/pytorch_1.12.1_py39/lib/python3.9/site-packages/tensorboardX/event_file_writer.py", line 105, in init
self._event_queue = multiprocessing.Queue(max_queue_size)

File "/data/ho e/chenxiaoyu/anaconda3/envs/pytorch_1.12.1_py39/lib/python3.9/multiprocessing/context.py", line 103, iQueue
return Queue(maxsize, ctx=self.get_con ext())

File "/data/home/chenxiaoyu/anaconda3/envs/pytorch_1.12.1_py39/lib/python3.9/multiprocessing/queues.py", line 42, in init
self. reader, self._writer = connection.Pipe(duplex=False)

File "/data/ho e/chenxiaoyu/anaconda3/envs/pytorch_1.12.1_py39/lib/python3.9/multiprocessing/connection.py", line 532in Pipe
fd1, fd2 = os.pipe()
OSError: [Errn 24] Too many open files`

Could you please give me some advices? @thomassutter

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.