Open jgrizou opened 9 years ago
Yes they are not used inside gmminf. The idea behind conditional
was the following.
Imagine you have a GMM modeling a joint prob distribution P(A^B) and you want to compute P(A | B) for several values of B. If you use the classical ìnference
method, you will recompute everything for each new value (and in particular the expensive matrix inversions), whereas most of the computation is actually the exact same one.
This is why conditional
returns a function, which corresponds to f(x) = P(A | B=x). However, from what I remember it didn't improved the computational time significantly, for some reasons I hadn't clearly understood.
So in short: those functions are probably buggy and not used elsewhere in the code (from my old memories). However, continuing investigating this issue is very useful I think (you have probably noticed that ilo-gmm is slow, I think this could improve it a lot, e.g. when you simply want to make a series of predictions).
Me spamming again!
I looked quickly into gmminf.py
Are all the part of the code actually in use?
The
conditional
functions seem not in use inside gmminf as well as not in use in ilogmm. There are the following:and
The second one is specially cryptic to me, I don't understand what is going on there. Maybe those are archaeological remainings :D ?