{"id":30768037,"url":"https://github.com/diyer22/distribution_playground","last_synced_at":"2026-03-02T23:37:15.433Z","repository":{"id":295423306,"uuid":"690076535","full_name":"DIYer22/distribution_playground","owner":"DIYer22","description":"2D Probability Distribution \"Playground\" for Generative Models.","archived":false,"fork":false,"pushed_at":"2025-05-25T12:55:36.000Z","size":58,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-25T22:38:51.755Z","etag":null,"topics":["density-estimation","generative-model","probability-distribution"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DIYer22.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-09-11T13:38:56.000Z","updated_at":"2025-10-19T20:50:58.000Z","dependencies_parsed_at":"2025-05-25T13:46:57.271Z","dependency_job_id":"c5be8b2e-5db2-4bbf-86f9-f594f0714cd3","html_url":"https://github.com/DIYer22/distribution_playground","commit_stats":null,"previous_names":["diyer22/distribution_playground"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DIYer22/distribution_playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DIYer22%2Fdistribution_playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DIYer22%2Fdistribution_playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DIYer22%2Fdistribution_playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DIYer22%2Fdistribution_playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DIYer22","download_url":"https://codeload.github.com/DIYer22/distribution_playground/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DIYer22%2Fdistribution_playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30025181,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T23:36:48.274Z","status":"ssl_error","status_checked_at":"2026-03-02T23:33:36.569Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["density-estimation","generative-model","probability-distribution"],"created_at":"2025-09-04T20:20:42.637Z","updated_at":"2026-03-02T23:37:15.392Z","avatar_url":"https://github.com/DIYer22.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# distribution_playground\n### **2D Probability Distribution \"Playground\" for Generative Models**\n\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca target=\"_blank\" href=\"https://discrete-distribution-networks.github.io/2d-density-estimation-gif-with-10000-nodes-ddn.html\"\u003e\n    \u003cimg src=\"https://discrete-distribution-networks.github.io/img/frames_bin100_k2000_itern1800_batch40_framen96_2d-density-estimation-DDN.gif\" style=\"height:\"\u003e\n  \u003c/a\u003e\n  \u003csmall\u003e\u003cbr\u003eDensity estimation optimization process \u003ca target=\"_blank\" href=\"https://discrete-distribution-networks.github.io/2d-density-estimation-gif-with-10000-nodes-ddn.html\"\u003e\u003csmall\u003e[details]\u003c/small\u003e\u003c/a\u003e\u003cbr\u003eLeft: Generated samples; Right: GT density\u003c/small\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\n\n## ▮ Features\n- Various preset 2D distributions, from simple to complex\n- Accurate and efficient sampling from probability density maps\n- Calculate various divergence metrics between sampled data and probability density maps\n- Good visualization\n- Support for custom probability density maps from arbitrary images\n- Complete sample code for generative model experiments, including creation of cool \"optimization process GIFs\"\n\n*[Experiments](https://discrete-distribution-networks.github.io/) completed using `distribution_playground`:*  \n\u003cimg src=\"https://discrete-distribution-networks.github.io/img/2d-density.png\" style=\"width:348px\"\u003e\n  \n## ▮ Tutorials\n**Demo**\n```bash\n# Installation\npip install distribution_playground\n\n# View all density_maps\npython -m distribution_playground.density_maps\n\n# Sample data from distributions and calculate divergence metrics with density maps\npython -m distribution_playground.source_distribution\n```\n\n**Sample Code**  \nSee [toy_exp.py](https://github.com/DIYer22/sddn/blob/master/toy_exp.py), which includes:\n- Training generative models to fit probability densities\n- Recording divergence metrics between sampling results and GT density maps\n- Saving visualization images of final sampling results\n- Creating cool \"optimization process GIFs\"\n\n# Reference\n- [Probability Playground - Buffalo](https://www.acsu.buffalo.edu/~adamcunn/probability/normal.html)\n- [DDPM - dataflowr](https://github.com/dataflowr/notebooks/tree/master/Module18)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiyer22%2Fdistribution_playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiyer22%2Fdistribution_playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiyer22%2Fdistribution_playground/lists"}