quantified-uncertainty / squiggle

An estimation language
https://squiggle-language.com
MIT License
148 stars 22 forks source link

Distribution Support & Mixed Sets #3115

Closed OAGr closed 4 months ago

OAGr commented 4 months ago

Most of this is done in squiggle-lang and isn't exposed to the function registry. However, two functions are - PointSet.support and subtracting MixedSet values. MixedSet values are just stored and provided as Dicts.

first = PointSet.support(mx(Sym.uniform(1, 5), Sym.uniform(10, 30)))
a = first - PointSet.support(mx(Sym.uniform(3, 8), Sym.uniform(20, 22)))

image

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: 6b9e6536067e584fa323cf967c96ea972383c287

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages | Name | Type | | ----------------------------------- | ----- | | @quri/squiggle-lang | Patch | | @quri/squiggle-components | Patch | | @quri/prettier-plugin-squiggle | Patch | | @quri/versioned-squiggle-components | Patch | | vscode-squiggle | Patch | | @quri/squiggle-textmate-grammar | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
quri-hub ✅ Ready (Inspect) Visit Preview Mar 27, 2024 8:39pm
squiggle-components ✅ Ready (Inspect) Visit Preview Mar 27, 2024 8:39pm
squiggle-website ✅ Ready (Inspect) Visit Preview Mar 27, 2024 8:39pm
1 Ignored Deployment | Name | Status | Preview | Updated (UTC) | | :--- | :----- | :------ | :------ | | **quri-ui** | ⬜️ Ignored ([Inspect](https://vercel.com/quantified-uncertainty/quri-ui/CrCNUq7bwBMh9oULP7ZBzcz1Hfon)) | [Visit Preview](https://quri-ui-git-dist-support-quantified-uncertainty.vercel.app) | Mar 27, 2024 8:39pm |