Posts

Showing posts with the label Python

Pyro - Deep universal probabilistic programming with Python and PyTorch

Image
Please also refer to the  Pyro homepage . Pyro is a flexible, scalable deep probabilistic programming library built on PyTorch. Notably, it was designed with these principles in mind: Universal : Pyro is a universal PPL -- it can represent any computable probability distribution. Scalable : Pyro scales to large data sets with little overhead compare to hand-written code. Minimal : Pyro is agile and maintainable. It is implemented with a small core of powerful, composable abstractions. Flexible : Pyro aims for automation when you want it, control when you need it. This is accomplished through high-level abstractions to express generative and inference models, while allowing experts easy-access to customize inference. Pyro is in an alpha release. It is developed and used by  Uber AI Labs . More information is available in the  launch blog post . Installation First install  PyTorch . Install via pip: Python 2.7.*: pip install pyro-ppl Python 3.5...

A Simple Todo List Using Flask and RethinkDB

Image
Today they will be creating a  simple  todo list, which you’ll be able to modify to meet your own needs. Before beginning, I highly suggest reading over  this  article, which details how RethinkDB differs from some of the other NoSQL databases. Set up RethinkDB Install Navigate  here  and download the appropriate package for your system. I used Homebrew –  $ brew install rethinkdb  – and it took almost twenty minutes to download and install the build: == > Installing rethinkdb == > Downloading http://download.rethinkdb.com/dist/rethinkdb- 1.11.2.tgz ######################################################################## 100.0% == > ./configure --prefix = /usr/local/Cellar/rethinkdb/1.11.2 -- fetch v8 --fetch protobuf == > make == > make install-osx == > Caveats To have launchd start rethinkdb at login: ln -sfv /usr/local/opt/rethinkdb/*.plist ~/Library/LaunchAgents Then to load rethinkdb now: launchctl lo...