Skip to main content

A nano probabilistic programming language for Python

Project description

Pioupiou 🐤

test stage

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.

data

Getting started

Install the latest version of pioupiou with:

$ pip install --upgrade git+https://github.com/boisgera/pioupiou.git

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

boisgera-pioupiou-0.0a9.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

boisgera_pioupiou-0.0a9-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file boisgera-pioupiou-0.0a9.tar.gz.

File metadata

  • Download URL: boisgera-pioupiou-0.0a9.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for boisgera-pioupiou-0.0a9.tar.gz
Algorithm Hash digest
SHA256 94ceb8d31c8911b22795849e27484661b07b3e27e00c20bcb74a15fb0f028970
MD5 d604e75313d1548bafc0d619659657ca
BLAKE2b-256 1b5da3726cd2563acdbe3cf2ecb429ea6182b1e415648be76de9cd0e7d991141

See more details on using hashes here.

File details

Details for the file boisgera_pioupiou-0.0a9-py3-none-any.whl.

File metadata

  • Download URL: boisgera_pioupiou-0.0a9-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for boisgera_pioupiou-0.0a9-py3-none-any.whl
Algorithm Hash digest
SHA256 fb5cc03c8996ab963c75db9ec76b4afc1f43e5ab6410e806656b9ea857a541da
MD5 57237806ead60793561fcdc65134f4b8
BLAKE2b-256 8459771e49a98f4c2d57ce7ee4a8389e8394a6f5c0cf70cc8a8bfb94d1d05bc4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page