Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added truncate for SampleSet distribution #995

Merged
merged 1 commit into from
Sep 1, 2022
Merged

Conversation

OAGr
Copy link
Contributor

@OAGr OAGr commented Aug 21, 2022

Note that truncate would break correlations. Order (correlations) is not preserved, because many items are just filtered out.

I expect that getting around this tricky. There are some hacks, like having "null" samples. I imagine at some point, we'd likely want to have a more rigorous take and have "tagged" samples. Each sample comes with a unique ID that lasts over its runtime. This is a bit tricky because of the graph structure of it. This can wait for later though.

@netlify
Copy link

netlify bot commented Aug 21, 2022

Deploy Preview for squiggle-documentation ready!

Name Link
🔨 Latest commit 516f4fa
🔍 Latest deploy log https://app.netlify.com/sites/squiggle-documentation/deploys/63018e211d3cd9000734c44b
😎 Deploy Preview https://deploy-preview-995--squiggle-documentation.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@OAGr OAGr marked this pull request as ready for review August 21, 2022 01:45
@netlify
Copy link

netlify bot commented Aug 21, 2022

Deploy Preview for squiggle-components ready!

Name Link
🔨 Latest commit 516f4fa
🔍 Latest deploy log https://app.netlify.com/sites/squiggle-components/deploys/63018e21044e00000847bf34
😎 Deploy Preview https://deploy-preview-995--squiggle-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@codecov-commenter
Copy link

Codecov Report

Merging #995 (516f4fa) into develop (5dd988a) will increase coverage by 0.01%.
The diff coverage is 75.00%.

@@             Coverage Diff             @@
##           develop     #995      +/-   ##
===========================================
+ Coverage    57.85%   57.87%   +0.01%     
===========================================
  Files           74       74              
  Lines         4114     4123       +9     
===========================================
+ Hits          2380     2386       +6     
- Misses        1734     1737       +3     
Impacted Files Coverage Δ
...ript/Distributions/SampleSetDist/SampleSetDist.res 35.71% <60.00%> (+3.28%) ⬆️
...le-lang/src/rescript/Distributions/GenericDist.res 64.94% <85.71%> (+0.21%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@OAGr OAGr merged commit 0fa34b0 into develop Sep 1, 2022
@OAGr OAGr deleted the sampleSet-truncate branch September 1, 2022 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants