Comments (7)
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.
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.
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.
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.
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.
I just want to check, do I need to implement the Marginalize
class or the Marginalize'
class?
from hlearn.
Marginalize'
, you're right. I can definitely help you out with any questions like that.
from hlearn.
Related Issues (20)
- cabal sandbox init step HOT 2
- hlearn-distributions depends on constrainkinds-1.1.0.0 which fails to install HOT 8
- Interested in working on HLearn. HOT 2
- Build issues. HOT 1
- Is HLearn intentionally kept of hackage / stackage? HOT 2
- Blog post on categorical distribution has deprecated instructions
- Invalid subhask submodule HOT 6
- Naive Bayes classifier HOT 2
- Helping out? HOT 4
- A couple of questions HOT 13
- stack haddock fails
- Interested in contributing HOT 5
- Migration to ghc-8.0 with subhask-branch ghc-8.0 HOT 1
- Interested in contribution
- Example of using cover tree? HOT 1
- Contributing HOT 1
- Interested in contributing - density estimation, wavelets
- Not very easy to start with HOT 1
- SubHask build error during install script HOT 2
- Interested in contributing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hlearn.