Better HN
topnewbestaskshowjobs
Log inSign up

twiecki

383 karma · joined Jul 20, 2012 (14y ago) · 46 submissions

SciPythonista interested in computational psychiatry, algorithmic trading and Bayesian modeling. @twiecki
Submissions

comment 1y ago · link · parent

There is a collection of curated resources here: https://www.pymc.io/projects/docs/en/stable/learn.html

2.

AI MMM Agent: Bayesian Marketing Mix Insights(pymc-labs.com ↗)

2 points · by twiecki · 1y ago · 1 comment

3.

Bayes is slow? Speeding up HelloFresh's Bayesian AB tests by 60x(pymc-labs.io ↗)

2 points · by twiecki · 5y ago · discuss

4.

Saving the World with Bayesian Modeling(pymc-labs.io ↗)

31 points · by twiecki · 5y ago · 4 comments

comment 7y ago · link · parent

If you are looking for an explanation of MCMC that focuses on intuitive understanding to complement more mathematical introductions, I wrote a blog post trying to explain things in simple terms here: https://twiecki.io/blog/2015/11/10/mcmc-sampling/

6.

Hierarchical Bayesian Neural Networks with Informative Priors(twiecki.github.io ↗)

2 points · by twiecki · 8y ago · discuss

7.

An intuitive, visual guide to copulas(twiecki.github.io ↗)

2 points · by twiecki · 8y ago · discuss

comment 9y ago · link · parent

No, back-propagation would not give full Bayesian inference (although there are some tricks [0]). They instead use variational inference[1], which allows for fast inference of continuous PGMs.

[0] http://mlg.eng.cam.ac.uk/yarin/blog_2248.html

[1] https://arxiv.org/abs/1603.00788

comment 9y ago · link · parent

Brian Moriarty gave a great talk in 2015 about his story of Loom with many interesting behind-the-scenes infos: https://www.youtube.com/watch?v=z1aVDael-KM Towards the end he also says he'd be excited to do a Loom sequel with the right studio.

10.

PyMC3 – Probabilistic Programming and Bayesian Machine Learning in Python(pymc-devs.github.io ↗)

5 points · by twiecki · 9y ago · discuss

comment 9y ago · link · parent

There are packages that are just Python libraries, like PyMC3: http://pymc-devs.github.io/pymc3/ It allows you to specify a Probabilistic Program with a few lines of Python code (x ~ Normal(0, 1) becomes x = pymc3.Normal('x', 0, 1)) and then run automatic inference on whatever model you dream up, it's very powerful. I always found the approach of inventing a new language to specify Probabilistic Programs like Stan does a bit odd. There, you specify the model as a string and can't interact with it or debug if something goes wrong. Disclaimer: I'm a PyMC3 developer.

comment 10y ago · link · parent

I don't think it has to be either or. For example, you can implement a Deep Net in a probabilistic programming framework (http://twiecki.github.io/blog/2016/07/05/bayesian-deep-learn...) like PyMC3. The inference here is not using sampling but rather ADVI (http://pymc-devs.github.io/pymc3/api.html#advi) which is almost as general but much much faster, and can be run on sub-samples of the data (similar to stochastic gradient descent used in deep learning). Once we bridge these two domains we can get the best of both worlds, like a deep net HMM.

comment 10y ago · link · parent

PyMC3 (http://pymc-devs.github.io/pymc3/) has all the powerful samplers that Stan has (i.e. NUTS) as well as support for discrete priors. It allows you to specify your models in pure Python, supports matrix algebra, and also has variational inference which allows for large-ish scale machine learning (e.g. here is a blog post where I train a Bayesian Neural Net on MNIST http://twiecki.github.io/blog/2016/07/05/bayesian-deep-learn...). Under the hood, it uses theano for JIT compilation to C or GPU.

I'm one of the core devs.

comment 10y ago · link · parent

Thanks for your comment! I did split the data in two, but it's easy to miss. X_test and X_train are the two sets. ann_input.set_value(X_test) then switches in the test values. That's identical to running make_moons() again.

15.

Bayesian Deep Learning(twiecki.github.io ↗)

7 points · by twiecki · 10y ago · 3 comments

comment 10y ago · link · parent

If you're interested: http://pymc-devs.github.io/pymc3/

PyMC3 uses Theano to create a compute graph of the model which then gets compiled to C. Moreover, it gives us the gradient for free so that HMC and NUTS can be used which work models of high complexity.

I use it in production, despite it still being beta. We're close to the first stable release but there are still some small kinks to figure out.

Disclaimer: I'm a co-developer.

17.

Show HN: Pyfolio – a Python library for financial performance and risk analysis(blog.quantopian.com ↗)

2 points · by twiecki · 11y ago · discuss

18.

PyMC3 beta released. A new probabilistic programming framework for Python(jsalvatier.wordpress.com ↗)

4 points · by twiecki · 11y ago · 1 comment

comment 11y ago · link · parent

Anyone else notice that the code wasn't PEP8 compatible? ;)

I went ahead and fixed it: https://gist.github.com/twiecki/7361de09b8e4c0a6248e

20.

The Problem with Data Science(blog.quantopian.com ↗)

4 points · by twiecki · 11y ago · discuss

21.

Probabilistic Programming in Quant Finance using PyMC3(twiecki.github.io ↗)

1 points · by twiecki · 11y ago · discuss

comment 11y ago · link · parent

The book is based on PyMC2, a Python module for Bayesian inference: http://pymc-devs.github.io/pymc/

PyMC3 is nearing the first beta release and is a complete rewrite that's using Theano to add just-in-time-compilation as well as support for next-generation sampling methods like Hamiltonian Monte Carlo (e.g. NUTS): http://pymc-devs.github.io/pymc3/

23.

A modern guide to getting started with Data Science and Python(twiecki.github.io ↗)

1 points · by twiecki · 12y ago · discuss

24.

Calling all quants: crowd-sourced hedge fund(pando.com ↗)

12 points · by twiecki · 12y ago · discuss

25.

Probabilistic Programming in Python(twiecki.github.io ↗)

2 points · by twiecki · 12y ago · discuss

26.

Quantopian enters open beta, reports $100M in customer trading volume(pando.com ↗)

9 points · by twiecki · 12y ago · discuss

comment 12y ago · link · parent

There is also the blue card (http://www.bluecard-eu.de/) which is pretty easy and quick to get if you have a university degree and a job-offer.

28.

The Best Of Both Worlds: Hierarchical Linear Regression in PyMC3(twiecki.github.io ↗)

4 points · by twiecki · 12y ago · discuss

29.

Real money, invested with algorithms(blog.quantopian.com ↗)

165 points · by twiecki · 12y ago · 136 comments

12