fc2d647b62
tweak: Add error checking to dmr calculation
2022-09-06 14:49:58 +02:00
60e42cf1e8
cleanup: More Dangers cleanup
...
and formatting
2022-09-06 14:25:03 +02:00
ae71bb8ec5
tweak: Move cast function to registry helpers file and rename
2022-09-06 14:05:08 +02:00
4903319073
format
2022-09-06 13:59:21 +02:00
edce22050a
cleanup: Move integrals to its own module
2022-09-06 13:59:03 +02:00
8ddd1a166a
tweak: Move combinatorics functions to its own module
2022-09-06 13:55:28 +02:00
697e3ba852
cleanup: Delete large amounts of dead code from Danger.
...
But keep pointer to commit
2022-09-06 13:44:55 +02:00
5ce0a6979d
tweak: Also use helpers in Number lib
...
Avoids code duplication
2022-09-06 13:39:02 +02:00
d8d68445b6
git add: Use helpers in Danger lib
2022-09-06 13:37:36 +02:00
b21d5d09a8
tweak: Add number function helpers
2022-09-06 13:36:43 +02:00
Ozzie Gooen
38447f1633
Merged with epic-reducer-project
2022-09-05 20:19:35 -07:00
Ozzie Gooen
c5928129d7
Minor cleanup to danger files
2022-09-05 20:16:41 -07:00
cae8f8cb65
tweak: tested examples in playground
2022-09-05 22:14:26 +02:00
bfc3b39b2b
tweak: format
2022-09-05 22:08:20 +02:00
e1760dab2d
tweak: Cleanup
2022-09-05 22:08:00 +02:00
f76de31d26
faustian bargain: create 6 different Danger.dmr functions
...
So ugly that it's almost beautiful. Except it's not
2022-09-05 21:59:53 +02:00
c183dbd24b
tweak: Continue building skeleton for Danger dmr
2022-09-05 21:40:20 +02:00
70d9a5c9f3
tweak: save intermediary state
2022-09-05 20:52:23 +02:00
8bdfa03799
feat: In Danger, add dmr for many functions
...
Still to be tested
2022-09-05 17:05:25 +02:00
2f33559e77
tweak: in Danger namespace change function name
...
to make clear that it takes only two inputs,
while I build the many-inputs version
2022-09-05 16:40:17 +02:00
9551aae634
tweak: format
2022-09-05 16:08:06 +02:00
8f8ca02730
tweak: get possibly working dmr function
2022-09-05 15:58:08 +02:00
b13da70c38
tweak: Build Danger.dmr skeleton more
2022-09-05 15:51:55 +02:00
be4e1b1a85
tweak: In Danger namespace, build dmr function further
...
dmr = diminishing marginal returns
2022-09-05 15:27:59 +02:00
fe3075b3bf
tweak: In Danger namespace, further diminishingMarginalReturnsSkeleton
2022-09-05 14:12:34 +02:00
aa3173f85b
tweak: Add skeleton for calculating dimishing returns allocation
2022-09-05 14:00:14 +02:00
f370c44771
tiny tweak: better example
2022-09-05 13:09:28 +02:00
c0713b16c2
tweak: Add better error messages for common use case
...
I.e., the case of integrating a function which
doesn't return a number but a distribution
2022-09-05 13:03:56 +02:00
2b414191ac
tweak: Numerate integration errors.
2022-09-05 12:49:47 +02:00
a45e38d75d
feat: Cleanup of Danger namespace
2022-09-05 12:38:15 +02:00
6d75af61c3
fix: formatting
2022-09-05 12:16:19 +02:00
27ca86e729
feat: Worked out kinks of the integral!
2022-09-05 12:11:42 +02:00
fd7720b045
fix: formatting
2022-09-05 09:39:55 +02:00
2fa97c20f7
fix: Off by one error due to Belt.Array.makeBy
2022-09-05 09:37:48 +02:00
6c04f9bff1
fix: change expected output type of integrals
2022-09-05 09:10:42 +02:00
e73ffaa10a
feat: Added a slightly better integral function
...
Slightly better because the handling of bounds is better.
Previously we were integrating at min, min + interval,
min + i*interval, ...
which meanst that sometimes we weren't integrating at
max.
Also a minimal amount of cleanup
2022-09-05 09:08:53 +02:00
abad453523
fix: no small integration error
2022-09-05 08:41:33 +02:00
244f3ea8d9
feat: Note that this isn't tested yet.
2022-09-04 22:48:29 +02:00
ecf5249b5c
feat: And integration function to Danger namespace
...
Note that I haven't tested this yet.
2022-09-04 22:45:55 +02:00
Umur Ozkul
3794909efc
format js
2022-09-04 21:53:02 +02:00
Umur Ozkul
b73924135f
format rescritp
2022-09-04 21:52:48 +02:00
Umur Ozkul
247e101324
PR comment
2022-09-04 21:24:53 +02:00
Umur Ozkul
044ed0bea3
qualify IEvVoid
2022-09-04 21:19:27 +02:00
943e63b379
link: run pretty
2022-09-04 20:26:57 +02:00
b292a3e6fd
tweak: Add to dos to continue tomorrow
2022-09-04 20:07:10 +02:00
f82c00a6ed
tweak: Work out how to apply a function to an
...
arbitrary value in the Danger domain
2022-09-04 19:29:22 +02:00
b45ab3dba2
feat: In Danger namespace, work out how to apply function
2022-09-04 19:22:12 +02:00
b57233096d
tweak: Revert back to working state in Danger namespace
2022-09-04 19:04:13 +02:00
dc34e7c0b8
feat: Danger namespace function tweaking
2022-09-04 18:58:19 +02:00
85fe4d16a2
tweak: Intermediary step while figuring out
...
function application
2022-09-04 18:53:57 +02:00
803231d620
feat: add a few more simple functions to Danger namespace
2022-09-04 17:12:18 +02:00
3106a10b90
tweak: Move new functions to the "Danger" namespace
2022-09-04 15:31:18 +02:00
19ddd4eb3f
tweak: Add TwoNumbersToNumber wrapper to function registry.
2022-09-04 15:09:09 +02:00
Ozzie Gooen
520b361f2c
Alpha-versioning
2022-09-02 19:53:22 -07:00
Ozzie Gooen
7a60f736f1
Merge branch 'develop' into epic-reducer-project
2022-09-01 13:45:20 -07:00
Ozzie Gooen
e522eb4c5f
0.3.0 -> 0.3.1
2022-09-01 11:00:23 -07:00
Vyacheslav Matyukhin
7e3fa1d65a
Merge branch 'develop' into epic-reducer-project
2022-09-01 21:15:18 +04:00
Ozzie Gooen
a97d1bae6d
Merge pull request #1050 from quantified-uncertainty/SampleSet.max-min
...
Added SampleSet.min and Sampleset.max
2022-09-01 09:07:02 -07:00
Vyacheslav Matyukhin
4d2fefad69
fix typo in test name
2022-09-01 19:26:57 +04:00
Vyacheslav Matyukhin
fc3a7c6cf9
support for __result__ in web components and SqLambda
2022-09-01 19:11:49 +04:00
Vyacheslav Matyukhin
8842f7b25e
delete getDependents and getDependencies methods from TS API
2022-09-01 18:15:36 +04:00
Vyacheslav Matyukhin
407984344b
test for project with multiple independent sources
2022-09-01 18:13:11 +04:00
Vyacheslav Matyukhin
dd3a8ab736
getRunOrderFor runs topological sort from current id
2022-09-01 17:57:04 +04:00
Umur Ozkul
ec93a82110
format
2022-09-01 14:53:01 +02:00
Umur Ozkul
1fe0aefd6b
Merge branch 'epic-reducer-project' of github.com:quantified-uncertainty/squiggle into epic-reducer-project
2022-09-01 14:52:14 +02:00
Umur Ozkul
7eef1d30f3
__result__ variable in bindings
2022-09-01 14:51:20 +02:00
Umur Ozkul
82a4e52384
include and "include as"
2022-09-01 14:32:24 +02:00
Vyacheslav Matyukhin
59ed741f33
show either result or bindings in viewer
2022-09-01 15:02:32 +04:00
Vyacheslav Matyukhin
48fb634140
fix more tests for new TS classes
2022-09-01 14:36:27 +04:00
Quinn Dougherty
38d0ea79e4
yarn format:all
compels me
2022-09-01 14:22:32 +08:00
Quinn Dougherty
57dca26d2b
fix the resolve to @stdlib/buffer
2022-09-01 14:08:14 +08:00
Ozzie Gooen
e582fc5be3
library1 -> libraryBase
2022-08-31 22:15:13 -07:00
Ozzie Gooen
96815b6ee5
Really simple tests for SampleSet.min and max
2022-08-31 22:14:41 -07:00
Quinn Dougherty
ab9a83bcf7
I think we're done here?
2022-09-01 13:07:13 +08:00
Quinn Dougherty
ab5b54413b
it string in tests
2022-09-01 12:54:04 +08:00
Quinn Dougherty
9366ce61f3
yarn format
compels me
2022-09-01 12:48:20 +08:00
Quinn Dougherty
989fa9644a
rm |>
in favor of ->
2022-09-01 12:48:07 +08:00
Ozzie Gooen
255541a679
Added SampleSet.min and Sampleset.max
2022-08-31 21:43:36 -07:00
Quinn Dougherty
729fc2c59d
Merge remote-tracking branch 'origin/develop' into sampleset-mixture
2022-09-01 12:39:55 +08:00
Ozzie Gooen
5e9bf521fa
Merge pull request #1042 from quantified-uncertainty/getByWithFn
...
Changed getByWithFn to not need two function calls
2022-08-31 20:10:30 -07:00
Ozzie Gooen
0fa34b09e4
Merge pull request #995 from quantified-uncertainty/sampleSet-truncate
...
Added truncate for SampleSet distribution
2022-08-31 19:57:49 -07:00
Ozzie Gooen
6631c9bad7
Renamed getByWithFn
2022-08-31 19:56:12 -07:00
Quinn Dougherty
39a9cd4eb9
a few unit tests
2022-08-31 10:31:32 +08:00
Ozzie Gooen
22458aa9e5
Proper formatting
2022-08-30 18:17:00 -07:00
Ozzie Gooen
2f77888365
Changed getByWithFn to not need two function calls
2022-08-30 17:58:51 -07:00
Vyacheslav Matyukhin
ba280c9292
implement lambda calls in web components
2022-08-30 15:16:57 +04:00
Ozzie Gooen
c7bc526b38
Merge pull request #1033 from quantified-uncertainty/10k-to-1k-default
...
Changed samples and xyPointLength from 10K to 1K
2022-08-29 18:10:32 -07:00
Ozzie Gooen
4368bb53fa
Changed samples and xyPointLength from 10K to 1K
...
See: https://eaforecasting.slack.com/archives/C030T49UHSS/p1661817834362619
2022-08-29 17:52:59 -07:00
Vyacheslav Matyukhin
a7bbfad94b
store location in values; render both result and bindings
2022-08-30 01:51:44 +04:00
Vyacheslav Matyukhin
ddfd4e0024
cleanup commented old code
2022-08-29 21:02:05 +04:00
dependabot[bot]
47ccba4c46
⬆️ Bump typescript from 4.7.4 to 4.8.2
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.7.4 to 4.8.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.7.4...v4.8.2 )
---
updated-dependencies:
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-29 15:16:16 +00:00
Ozzie Gooen
b3549348b0
Merge pull request #1027 from quantified-uncertainty/dependabot/npm_and_yarn/glennsl/rescript-jest-0.9.2
...
⬆️ Bump @glennsl/rescript-jest from 0.9.1 to 0.9.2
2022-08-29 07:58:23 -07:00
Ozzie Gooen
7f7aefb129
Merge pull request #1019 from quantified-uncertainty/dependabot/npm_and_yarn/mathjs-11.1.0
...
⬆️ Bump mathjs from 11.0.1 to 11.1.0
2022-08-29 07:38:12 -07:00
dependabot[bot]
28067ffcbd
⬆️ Bump @glennsl/rescript-jest from 0.9.1 to 0.9.2
...
Bumps [@glennsl/rescript-jest](https://github.com/glennsl/rescript-jest ) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/glennsl/rescript-jest/releases )
- [Commits](https://github.com/glennsl/rescript-jest/compare/v0.9.1...v0.9.2 )
---
updated-dependencies:
- dependency-name: "@glennsl/rescript-jest"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-29 14:35:37 +00:00
dependabot[bot]
1ce657d634
⬆️ Bump mathjs from 11.0.1 to 11.1.0
...
Bumps [mathjs](https://github.com/josdejong/mathjs ) from 11.0.1 to 11.1.0.
- [Release notes](https://github.com/josdejong/mathjs/releases )
- [Changelog](https://github.com/josdejong/mathjs/blob/develop/HISTORY.md )
- [Commits](https://github.com/josdejong/mathjs/compare/v11.0.1...v11.1.0 )
---
updated-dependencies:
- dependency-name: mathjs
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-29 14:26:59 +00:00
dependabot[bot]
a68c3c0615
⬆️ Bump fast-check from 3.1.1 to 3.1.2
...
Bumps [fast-check](https://github.com/dubzzz/fast-check/tree/HEAD/packages/fast-check ) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/dubzzz/fast-check/releases )
- [Changelog](https://github.com/dubzzz/fast-check/blob/main/packages/fast-check/CHANGELOG.md )
- [Commits](https://github.com/dubzzz/fast-check/commits/v3.1.2/packages/fast-check )
---
updated-dependencies:
- dependency-name: fast-check
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-29 14:26:20 +00:00
Sam Nolan
e493437135
Remove hardcoded enum strings
2022-08-29 13:46:52 +10:00
Sam Nolan
25565ce5c0
Fix tests failing
2022-08-29 12:50:51 +10:00
Vyacheslav Matyukhin
9c3d41427e
update System.version
2022-08-29 00:01:26 +04:00
Vyacheslav Matyukhin
fe8e980d27
fix enum types; remove accidental generated .js file
2022-08-28 23:59:56 +04:00
Vyacheslav Matyukhin
b7aa126e6a
output bindings when result is void
2022-08-28 21:45:15 +04:00
Vyacheslav Matyukhin
481483e937
rename and stringify enum tags
2022-08-28 21:33:16 +04:00
Vyacheslav Matyukhin
b50061a91a
rename all TS classes
2022-08-28 20:19:44 +04:00
Vyacheslav Matyukhin
feeb9e85f1
fix typescript errors, basic playground features work
2022-08-28 00:02:13 +04:00
Vyacheslav Matyukhin
32cefb40da
TS & components (WIP)
2022-08-27 23:57:45 +04:00
Umur Ozkul
68ddf35387
format
2022-08-27 20:39:09 +02:00
Umur Ozkul
e18a06f584
get parameters
2022-08-27 20:38:46 +02:00
Umur Ozkul
687576547c
fix lambda toString
2022-08-27 20:36:15 +02:00
Umur Ozkul
dd363d1e45
lambda parameters
2022-08-27 20:35:37 +02:00
Umur Ozkul
e2491bda88
toString for each squiggleValue
2022-08-27 20:24:13 +02:00
Umur Ozkul
2fc325beb6
format
2022-08-27 20:23:49 +02:00
Umur Ozkul
eaa1f60555
ForTS_Dsitribution, proxies for DistributionOperation.Constructors
2022-08-27 20:12:36 +02:00
Umur Ozkul
934144fce8
fix toString
2022-08-27 19:39:13 +02:00
Umur Ozkul
7b4e38a983
consistent to string for every value
2022-08-27 19:34:08 +02:00
Umur Ozkul
efd4fd322c
PR968 - start tutorials from 1 instead of 0
2022-08-27 18:36:18 +02:00
Umur Ozkul
a8efd66fa3
handle topology changes in the project
2022-08-26 02:01:27 +02:00
Umur Ozkul
0a8afc66a4
fix Topology test
2022-08-26 01:32:38 +02:00
Umur Ozkul
4e5e05530e
Fix topology runOrderDiff
2022-08-26 00:45:13 +02:00
Umur Ozkul
ac63b57478
Merge branch 'develop' into epic-reducer-project
2022-08-26 00:09:50 +02:00
Umur Ozkul
d29b77ca61
fix #1007
...
variables that start with true/false
2022-08-25 22:19:29 +02:00
Umur Ozkul
2d59898b4f
topology work in progress
2022-08-25 21:59:15 +02:00
Umur Ozkul
9a536d2a38
spell check
2022-08-25 20:56:27 +02:00
Vyacheslav Matyukhin
1f22d1f837
non-opaque results
2022-08-25 17:47:41 +04:00
Vyacheslav Matyukhin
7dd9a5bb77
string enum for SquiggleValue tags
2022-08-25 17:47:28 +04:00
Umur Ozkul
1dfc9fe820
RENeedToRun->Error
2022-08-25 10:43:51 +02:00
Umur Ozkul
441854ffec
Merge branch 'develop' into reducer-project
2022-08-23 14:46:37 +02:00
Umur Ozkul
8de8cc3633
tutorial calling functions
2022-08-23 14:01:07 +02:00
Umur Ozkul
22e45d0e7b
tutorial injecting user values
2022-08-23 13:39:19 +02:00
Umur Ozkul
5bc4395ff6
spelling
2022-08-23 13:25:02 +02:00
Umur Ozkul
d37f0fe117
tutorial includes final
2022-08-23 13:18:56 +02:00
Umur Ozkul
63cc9353b1
initial includes tutorial
2022-08-23 12:22:35 +02:00
Umur Ozkul
cd205f2eb9
test for parseInclude
2022-08-23 11:48:22 +02:00
Umur Ozkul
9cf3a93b70
fix parseInludes bug
2022-08-23 11:47:24 +02:00
Umur Ozkul
b7ae9804a5
format
2022-08-23 09:38:12 +02:00
Umur Ozkul
a394e93e06
tutorial intro to includes
2022-08-23 09:35:29 +02:00
Umur Ozkul
f23e26fbbf
tutorial 1 depending
2022-08-23 09:20:18 +02:00
Ozzie Gooen
b8d7737aeb
Merge pull request #972 from quantified-uncertainty/pointset-mapy
...
Pointset mapY
2022-08-22 11:28:12 -07:00
Umur Ozkul
1250e66fb0
fix RT
2022-08-22 17:24:58 +02:00
Umur Ozkul
e6464dbe5c
make ts compatible
...
commit 94803421acd2e5cb3a0f88e10f9244d374fab20b
Author: Umur Ozkul <umur@hightechmind.io>
Date: Mon Aug 22 08:48:33 2022 +0200
note on old habbits
commit 2c47f80fce8fa6c12cb53b97f7150758eaa74b88
Author: Umur Ozkul <umur@hightechmind.io>
Date: Mon Aug 22 08:18:16 2022 +0200
getTag returns enum value
commit 733b9a820f1d01b618708896451a112d638ee811
Author: Umur Ozkul <umur@hightechmind.io>
Date: Mon Aug 22 07:07:30 2022 +0200
result
commit 64698f4a930182b3ccf122849824e4b6df251a9f
Author: Umur Ozkul <umur@hightechmind.io>
Date: Mon Aug 22 06:48:30 2022 +0200
return tags as ts enum
commit 8ac802428a7aaac5367f5e8a9aaa592b89e305eb
Author: Umur Ozkul <umur@hightechmind.io>
Date: Mon Aug 22 06:16:26 2022 +0200
export tags
commit 6c843e475a98ca1fcfa893d09d45ac9ad7c633ee
Author: Umur Ozkul <umur@hightechmind.io>
Date: Mon Aug 22 06:11:00 2022 +0200
distribution tag
commit 9a43ec30fcaf967a672475431243949748d00bc7
Author: Umur Ozkul <umur@hightechmind.io>
Date: Mon Aug 22 05:46:24 2022 +0200
opaque result
commit f89bdd47c41135135baac99b18faf1c418cc4142
Author: Umur Ozkul <umur@hightechmind.io>
Date: Mon Aug 22 05:24:18 2022 +0200
make ts compilable
commit 6609bb3691b08405639e6f20da0fad309f2f232e
Author: Umur Ozkul <umur@hightechmind.io>
Date: Mon Aug 22 05:21:34 2022 +0200
compiles
commit bace3eca63079de8f285069c65b219601e7310bf
Author: Umur Ozkul <umur@hightechmind.io>
Date: Mon Aug 22 04:33:34 2022 +0200
rescript compiles
commit cd095f605c543902edec08fdcd407600296ec0cb
Author: Umur Ozkul <umur@hightechmind.io>
Date: Mon Aug 22 02:40:31 2022 +0200
squiggleValue
commit 9b78b5d6c8b69287458fe392f142ceb3bca99407
Author: Umur Ozkul <umur@hightechmind.io>
Date: Mon Aug 22 02:37:11 2022 +0200
project
commit 20c8693b1eb6492f1662bedbb26b469aac11f8ff
Author: Umur Ozkul <umur@hightechmind.io>
Date: Mon Aug 22 00:59:44 2022 +0200
compiles
2022-08-22 08:50:59 +02:00
Ozzie Gooen
e1efefaf7d
Added sampleN from Stdlib to allow for correct sampling of discrete distributions
2022-08-21 21:45:05 -07:00
Ozzie Gooen
7237f2709b
First implementation of sampleSet mixed distribution
2022-08-20 20:32:41 -07:00
Ozzie Gooen
516f4fa39d
Added truncate for SampleSet distribution
2022-08-20 17:10:08 -07:00
Ozzie Gooen
72b1d6af3e
Formatted
2022-08-20 15:59:25 -07:00
Ozzie Gooen
a04761226d
Improved error messages of function library
2022-08-20 15:50:30 -07:00
Umur Ozkul
c380ee2206
toStringResult for easy testing
2022-08-20 08:11:20 +02:00
Umur Ozkul
347c85324b
opaque distribution type
2022-08-20 07:37:38 +02:00
Umur Ozkul
feb7627ad0
result fmap
2022-08-20 06:47:23 +02:00
Umur Ozkul
ddb6d7f958
remove opaque type violations
2022-08-19 23:20:45 +02:00
Umur Ozkul
7957b89bb4
remove opaque type violations
2022-08-19 23:19:30 +02:00
Umur Ozkul
05ce6d2872
Comment opaue type violations
2022-08-19 23:01:38 +02:00