GithubHelp home page GithubHelp logo

Comments (7)

mikeizbicki avatar mikeizbicki commented on June 20, 2024

Yes, this is easy to do in principle. It looks like I never actually implemented it though for some reason, and that's why the type error occurs.

I probably won't be adding this feature any time soon. Working with these types has proven too cumbersome, and so the latest version on github completely scraps this syntax. I have yet to come up with a better one :(

from hlearn.

jacobstanley avatar jacobstanley commented on June 20, 2024

Would this configuration be possible with the latest version on github? I'm already using master from github, I don't mind switching to a different branch if it's better equip to deal with my situation.

I don't mind which syntax I use :)

from hlearn.

jacobstanley avatar jacobstanley commented on June 20, 2024

If you're saying that it won't be implemented any time soon because you have yet to come up with a better syntax, then... well damn :( haha

from hlearn.

mikeizbicki avatar mikeizbicki commented on June 20, 2024

The latest dev branch uses some features from ghc 7.8. This upgrade broke all the code for multivariate distributions, and I haven't done anything to fix it yet.

It would be possible to add this capability to the master branch on github. It would involve making the MultiNormal type (https://github.com/mikeizbicki/HLearn/blob/master/src/HLearn/Models/Distributions/Multivariate/MultiNormal.hs) implement the Marginalize class (https://github.com/mikeizbicki/HLearn/blob/master/src/HLearn/Models/Distributions/Multivariate/Internal/Marginalization.hs).

In principle this is super easy. All you do is extract the right variance term from the covariance matrix (along the diagonal) and plug it into the Normal class. In practice, though, I'm not sure how easy this will be to make the types line up right.

If you're up for a challenge and want to implement it, I'd happily merge the code :)

from hlearn.

jacobstanley avatar jacobstanley commented on June 20, 2024

I'll give it a shot, I suspect that if I can get the types to line up you can easily tell me if I'm screwing up the variance extraction

from hlearn.

jacobstanley avatar jacobstanley commented on June 20, 2024

I just want to check, do I need to implement the Marginalize class or the Marginalize' class?

from hlearn.

mikeizbicki avatar mikeizbicki commented on June 20, 2024

Marginalize', you're right. I can definitely help you out with any questions like that.

from hlearn.

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.