Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What does DEFAULTS['kind']['iterations'] refer to in loom/loom/config.py? #5

Open
ajaysaini725 opened this issue Oct 7, 2017 · 1 comment
Labels

Comments

@ajaysaini725
Copy link

ajaysaini725 commented Oct 7, 2017

It seems as if extra_passes in DEFAULTS refers to the number of Gibbs passes through the parameters. If this is the case, then what does the DEFAULTS['kind']['iterations'] parameter refer to?
Source: https://github.com/posterior/loom/blob/master/loom/config.py#L35

@fritzo
Copy link
Member

fritzo commented Oct 9, 2017

Loom has three kernels:

  • a "cat" kernel that reassigns objects via subsample-annealed Gibbs sampling,
  • a "hyper" kernel that samples hyperparameters for features and the Pitman-Yor clustering prior, and
  • a "kind" kernel that samples kind structure (aka view structure, aka partitioning of features).

The "cat" kernel is controlled by extra_passes, which determines the subsample annealing schedule. While loom is running subsample annealing, objects are added-to and removed-from the latent state. Whenever the set of assigned objects is completely "fresh", loom considers this to be a full minibatch and runs the "hyper" and "kind" kernels, and finally marks these objects as "dirty"; they must all be removed before the next minibatch.

Within each minibatch, the two kernels are controlled by DEFAULTS['kernels']['hyper'] and DEFAULTS['kernels']['kind']. So for example the "kind" kernel is run for DEFAULTS['kernels']['kind']['iters'] during each minibatch. (The kind kernel is a very cheap single-threaded kernel).

@fritzo fritzo added the question label Oct 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants