In some C-like language I'd write: float a = unknown; /* Hey, compiler! b is supposed to be as close to 9 as you can make it*/ float b = a*a; And it would compile float a = 3.0f (or on an off day, a = -3.0f).
-
-
Replying to @sigfpe
isn't that what most probabilistic programming languages aim for?
2 replies 0 retweets 2 likes -
Unless I am missing a subtler point you're trying to make, you should check out all PyMC3 for a tensorflow based PPL and Pyro for a PyTorch based one.
2 replies 0 retweets 2 likes -
Replying to @deliprao
I'll take a look. But I'm not really after any new technology - I know it already exists. Just better integration with my existing languages.
1 reply 0 retweets 0 likes -
Replying to @sigfpe
oh, these are mostly newer implementations in modern computational graph frameworks of old ideas in PPL. Unfortunately, most PPLs work with Python. There is one that works with Java/Scala. None I know that works with C.
1 reply 0 retweets 0 likes -
Replying to @deliprao
BTW In Haskell it's easy to implement probability monad that'll take code like "do { a <- tossCoin, b <- tossCoin; return (a,b) }" and build the probability distribution on the 4 outcomes. Are there Python libraries that do similar?
1 reply 1 retweet 1 like -
Replying to @sigfpe
this coin toss example can be done with PyMC3 or Pyro or Stan I believe.
1 reply 1 retweet 1 like -
also if you want to use a probability monad, it should be possible to stitch PyMonad with these libs to get the right amount of syntactic sugar. c.f.https://github.com/fnl/pymonad
1 reply 1 retweet 1 like -
Also,
@posco is pretty awesome to geek out about this.2 replies 0 retweets 0 likes -
actually
@avibryant is implementing something in this space at@stripe right now (but for scala).2 replies 0 retweets 1 like
Yeah, what I'm working on is closest to Stan but natively & idiomatically implemented in Scala. Not quite ready for external feedback yet but maybe in a month or two.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.