{"id":16976328,"url":"https://github.com/boisgera/pioupiou","last_synced_at":"2025-03-23T17:31:05.558Z","repository":{"id":39790270,"uuid":"341885776","full_name":"boisgera/pioupiou","owner":"boisgera","description":"Pioupiou 🐤, the nano PPL","archived":false,"fork":false,"pushed_at":"2022-05-25T19:58:34.000Z","size":725,"stargazers_count":9,"open_issues_count":5,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T22:22:50.489Z","etag":null,"topics":["programming","python","random"],"latest_commit_sha":null,"homepage":"https://boisgera.github.io/pioupiou","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boisgera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-24T12:00:11.000Z","updated_at":"2022-11-28T22:34:54.000Z","dependencies_parsed_at":"2022-09-19T06:31:15.604Z","dependency_job_id":null,"html_url":"https://github.com/boisgera/pioupiou","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boisgera%2Fpioupiou","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boisgera%2Fpioupiou/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boisgera%2Fpioupiou/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boisgera%2Fpioupiou/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boisgera","download_url":"https://codeload.github.com/boisgera/pioupiou/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245140875,"owners_count":20567461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["programming","python","random"],"created_at":"2024-10-14T01:25:45.180Z","updated_at":"2025-03-23T17:31:04.960Z","avatar_url":"https://github.com/boisgera.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Pioupiou 🐤\n================================================================================\n\n[![build](https://github.com/boisgera/pioupiou/actions/workflows/build.yml/badge.svg)](https://github.com/boisgera/pioupiou/actions/workflows/build.yml)\n[![coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/boisgera/13615cd4d2f090624f8fa068f29d67f9/raw/test.json)](https://boisgera.github.io/pioupiou/htmlcov)\n[![doc](https://img.shields.io/badge/doc-mkdocs-blue)](https://boisgera.github.io/pioupiou)\n[![MIT License](https://img.shields.io/badge/License-MIT-blue)](LICENSE.txt)\n![stage](https://img.shields.io/badge/stage-pre--alpha-red) \n\nIntroduction\n--------------------------------------------------------------------------------\n\nPioupiou is a nano probabilistic programming language, embedded into Python.\n\nUse it to define probabilistic models :\n\n    \u003e\u003e\u003e import pioupiou as pp\n    \u003e\u003e\u003e a, b = 0.5, 1.0\n    \u003e\u003e\u003e X = pp.Uniform(0.0, 1.0)\n    \u003e\u003e\u003e E = pp.Normal(0.0, 0.01)\n    \u003e\u003e\u003e Y = a * X + b + E\n\nand to simulate them :\n\n    \u003e\u003e\u003e n = 1000 # number of samples\n    \u003e\u003e\u003e omega = pp.Omega(n)\n    \u003e\u003e\u003e x, y = X(omega), Y(omega)\n    \u003e\u003e\u003e x # doctest: +ELLIPSIS\n    array([6.36961687e-01, 2.69786714e-01, 4.09735239e-02, ..., 3.80007897e-01])\n    \u003e\u003e\u003e y # doctest: +ELLIPSIS\n    array([1.09588258, 1.22942954, 1.01954509, 0.99213115, ..., 1.14366864])\n\nThat's about it! Use this data as you see fit.\n\n![data](https://boisgera.github.io/pioupiou/images/xy.svg)\n\nGetting started\n--------------------------------------------------------------------------------\n\nInstall the latest version of pioupiou with\n\n    $ pip install --upgrade git+https://github.com/boisgera/pioupiou.git\n\nthen have a look at the documentation : \u003chttps://boisgera.github.io/pioupiou/\u003e 🐤.\n\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboisgera%2Fpioupiou","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboisgera%2Fpioupiou","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboisgera%2Fpioupiou/lists"}