Open nipunbatra opened 2 years ago
I love the idea of a debugging-focused tutorial. And I suspect core Pyro devs are the worst people to write such a tutorial since it's been so long since we first stubbed our toes 🤣
@nipunbatra this would be a great tutorial to contribute!
Hi @fritzo Thanks.
I have added a long-ish notebook here
As you might notice, this will need some inputs from you especially on
Hi, I was preparing a tutorial on Prob. PCA mirroring the tutorial in TFP.
After non-trivial debugging , toying with
to_event
, I managed to get the example working in Pyro (though to be honest, still not very confident!).I would like to suggest a tutorial which debugs some common issues in models (I'd say pyro.clear_params() and managing the shapes correct would be two such candidates). While there is already an excellent guide on Tensor shapes in Pyro, I think an example-driven tutorial page focused on showing the errors in modelling and then solving through the problems would be very useful (and potentially reduce similar questions on the forums).
As an example, I'm copying the code I used for Prob. PCA. I created two versions (with and without plates). Again, it may be nice in such a tutorial to discuss the differences in the two models and when to use which.
Related #3030