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

Meanfield with DefaultWeakLimitStickyHDPSLDS not implemented #17

Closed
DanteArucard opened this issue May 29, 2017 · 2 comments
Closed

Meanfield with DefaultWeakLimitStickyHDPSLDS not implemented #17

DanteArucard opened this issue May 29, 2017 · 2 comments

Comments

@DanteArucard
Copy link

DanteArucard commented May 29, 2017

Dear Matthew,

I found that DefaultWeakLimitStickyHDPSLDS does not support meanfield inference, I think you wrote something about that here in this comment.
In fact WeakLimitStickyHDPHMMTransitions does not implement the meanfield update.

I was still trying to extract the models after training (as other attempted
@eliotmoss
, @mg10011 ,and me)

I wanted to try StickyHDPSLDS because with normal HDPSLDS i get high errors (specially with meanfield) and gibbs should be affected by the label switching issue. (Or it is not?)
I thought that high errors could be caused by excessive switching frequency

@DanteArucard DanteArucard changed the title Meanfield with DefaultWeakLimitStickyHDPSLDS Meanfield with DefaultWeakLimitStickyHDPSLDS not implemented May 29, 2017
@AaronIntro
Copy link

Dear Matthew,

I also found the WeakLimitHDPHSMM does not support meanfield_sgdstep. In my project I found the resampling method could not convergence for a particular day (e.g. the last day of time series). The latent state is switching between two different states ( [0,1,2] three states for e.g.). I think the SVI method may be suitable, however it could not work within the error as follows,

AttributeError: 'WeakLimitHDPHSMMTransitions' object has no attribute 'exp_expected_log_trans_matrix'

@slinderman
Copy link
Collaborator

Hi Aaron,
The WeakLimit* models only support Gibbs sampling. Only the regular HMMSLDS supports mean field variational inference. Can you try that instead? For what it's worth, SVI requires some tuning of minibatch sizes and learning rates, and it's not a priori clear to me that it will be more effective that Gibbs in this setting (though still worth a shot!). It could be that the Gibbs sampler is reflecting genuine uncertainty about the latent state in the last day.

@mattjj I opened mattjj/pyhsmm#78 (and assigned to myself) as a result of this issue. I don't think WeakLimit models should expose mean field interfaces.

--Scott

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

No branches or pull requests

3 participants