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

Make GMM model observable. #4652

Conversation

geektoni
Copy link
Contributor

  • Emit log-likelihood, alphas and gaussians when using the train_em() method;
  • Emit log-likelihood, alphas and gaussians when using the train_smem() method;
  • Change m_coefficients registered name to "coefficients" and fix meta example;

@geektoni geektoni force-pushed the feature/observable_GMM branch 2 times, most recently from 774c6b6 to 4bbf17d Compare May 28, 2019 16:21
Copy link
Member

@karlnapf karlnapf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!
See inline

examples/meta/src/observers/gaussian_mixture_models.sg Outdated Show resolved Hide resolved
src/shogun/clustering/GMM.cpp Outdated Show resolved Hide resolved
src/shogun/clustering/GMM.cpp Outdated Show resolved Hide resolved
src/shogun/clustering/GMM.cpp Outdated Show resolved Hide resolved
@geektoni geektoni force-pushed the feature/observable_GMM branch 2 times, most recently from 13287b8 to 0bf28db Compare May 30, 2019 09:21
@geektoni geektoni changed the title [WIP] Make GMM model observable. Make GMM model observable. May 30, 2019
#![create_gmm_instance]

#![add_observer]
ParameterObserver obs = parameter_observer("ParameterObserverLogger")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as said in my other unrelated comment, it would be good/better if this guy used the mechanics as used in SGObject::to_string()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I may update it in another PR since I do not want to bloat this one :)

Copy link
Member

@karlnapf karlnapf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is almost ready imo, made a few inline comments

@geektoni geektoni force-pushed the feature/observable_framework branch from d21f741 to bac22e6 Compare June 3, 2019 12:17
* Emit log-likelihood, alphas and gaussians when using the train_em() method;
* Emit log-likelihood, alphas and gaussians when using the train_smem() method;
* Change m_coefficients registered name to "coefficients" and fix meta example;
framework.

* Update also the associated observe() directives;
* Improve GMM observable meta example;
@geektoni geektoni merged commit 9becf6c into shogun-toolbox:feature/observable_framework Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants