Pre-release
This release is a pre-release and may not be stable for production use.
Pioupiou 🐤
Introduction
Pioupiou is a nano probabilistic programming language, embedded into Python.
Use it to define probabilistic models :
>>> import pioupiou as pp
>>> a, b = 0.5, 1.0
>>> X = pp.Uniform(0.0, 1.0)
>>> E = pp.Normal(0.0, 0.1)
>>> Y = a * X + b + E
and to simulate them :
>>> n = 1000 # number of samples
>>> omega = pp.Omega(n)
>>> x, y = X(omega), Y(omega)
>>> x # doctest: +ELLIPSIS
array([6.36961687e-01, 2.69786714e-01, 4.09735239e-02, ..., 3.80007897e-01])
>>> y # doctest: +ELLIPSIS
array([1.09588258, 1.22942954, 1.01954509, 0.99213115, ..., 1.14366864])
That's about it! Use this data as you see fit.
Getting started
Install the latest version of pioupiou with
$ pip install --upgrade git+https://github.com/boisgera/pioupiou.git
then have a look at the documentation : https://boisgera.github.io/pioupiou/ 🐤.
Release files for boisgera-pioupiou 0.0a12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| boisgera-pioupiou-0.0a12.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| boisgera_pioupiou-0.0a12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.6 kB
Release files / boisgera-pioupiou-0.0a12.tar.gz
| Download URL | boisgera-pioupiou-0.0a12.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82d45893bf4b1d0ae18394a31c7ebd23fa4ef96a6654e361b41a264eb26e71ae
|
|
BLAKE2b-256 checksum How to use checksums |
e4143d158643200faa70ad0cd4cf11f26074d7cec48e67b86897e83eecb1f517
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.8
|
Release files / boisgera_pioupiou-0.0a12-py3-none-any.whl
| Download URL | boisgera_pioupiou-0.0a12-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc7fe98771e209330e347abbf01fe9e6808e0a977f984acfd6dc6632cfc52e1a
|
|
BLAKE2b-256 checksum How to use checksums |
f69b44a8865079f4b8228107a8c6b9f5facb98b975993e7c1499b6660eb99c10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.8
|