Giter Site home page Giter Site logo

Comments (5)

helske avatar helske commented on May 29, 2024 1

Glad you found out the source of the error, we'll have to work out something regarding that kind of case at some point (either a check and stop or fix the EM algorithm so that it is possible to model that kind of data as well).

from seqhmm.

helske avatar helske commented on May 29, 2024

It's hard to debug without minimal working example. Are you altering the model manually after build_hmm? My first guess would be that there is some out of bound reference due to mismatched dimensions in C++ side. Or, it could be some actual bug due to recent changes in the EM algorithm. For tracking down that I would need more info though.

from seqhmm.

vrodriguezf avatar vrodriguezf commented on May 29, 2024

Finally the problem was in my sequence dataset.

I was introducing some "empty" sequences, full of NA symbols in one of the channels, and that was causing the EM algorithm to crash. I have considered those sequences as useless for my experiments and now it is working well :)

Thanks!

from seqhmm.

helske avatar helske commented on May 29, 2024

As I started to work on this I realized that I had misread your previous comment. It is of course pointless to use model where one channel contains only NA's for each sequence (so informative error message should be provided in model building phase), but a case where some sequences are full of NA's in one or multiple channels should be possible. And I did not find any problems in that kind of cases in my experiments. Could you send a minimal example which causes the seqfault for you either here or by email to me (for example the model object used in call to fit_model)?

from seqhmm.

helske avatar helske commented on May 29, 2024

There is now a check in fit_model which gives and error if one channel is full of NA's.

from seqhmm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.