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

Train an IOHMM with independent chains #30

Open
aminzadenoori opened this issue Jun 3, 2020 · 2 comments
Open

Train an IOHMM with independent chains #30

aminzadenoori opened this issue Jun 3, 2020 · 2 comments

Comments

@aminzadenoori
Copy link

I want to train an IOHMM with different independent sequences and I don't know how to specify them on the only one input panda data frame. Can you explain to me the fields corr and prev briefly and how to use them, please?

@BSharmi
Copy link

BSharmi commented Oct 10, 2020

I have similar question. Would really appreciate on more description on usage of the model with multiple sequences and how to specify covariates_initial, covariates_transition. Thank you

@Mogeng
Copy link
Owner

Mogeng commented Feb 5, 2021

Can you explain what do you mean by "different independent sequences"? Are they supposed to share the same initial / transition / emission model? If no, you should just train each sequence individually. If yes, you can do the following:

In the example notebook, when we set the data, we use SHMM.set_data([speed]). This model can take a list of data frames with each data frame representing a sequence. So you will end up with having something like: SHMM.set_data([df1, df2, df3]).

Since these sequence should share the same initial / transition / emission model, you will specify them as if there were just one sequence.

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