Commit Graph

396 Commits

Author SHA1 Message Date
Umur Ozkul
54f8b10a95 Reducer: Environment (Give environement to all function dispatches) - closes #169 2022-04-27 22:00:42 +02:00
Ozzie Gooen
b2189777d5 Linted 2022-04-27 15:21:27 -04:00
Ozzie Gooen
dfa404f0d0 Merged with develop 2022-04-27 15:06:15 -04:00
Quinn Dougherty
7b87f64658 Issue 325
Value: [1e-3 to 3e-2]
2022-04-27 13:59:33 -04:00
Quinn Dougherty
a22fbb1afd lint
Value: [1e-7 to 1e-6]
2022-04-27 12:57:49 -04:00
Ozzie Gooen
6045fe5e62 Organized AlgebraicCombination functionality into submodules 2022-04-27 12:48:46 -04:00
Quinn Dougherty
aabb53957e rm warnings 26 and 27
Value: [1e-5 to 1e-3]
2022-04-27 12:41:07 -04:00
Quinn Dougherty
21d4c1b928 rm warning number 26
Value: [1e-4 to 5e-3]
2022-04-27 12:39:41 -04:00
Quinn Dougherty
b8a2ecc7f0 Merge remote-tracking branch 'origin/develop' into normalize-improvements 2022-04-27 12:38:08 -04:00
Sam Nolan
0353674dcb Merge develop into loss-testing 2022-04-27 15:25:26 +00:00
Ozzie Gooen
d104494f02 First attempt at refactoring algebraicCombination code 2022-04-27 11:13:10 -04:00
Quinn Dougherty
4f2dda4625 CR comment about toString.
Value: [0.001 to 0.04]
2022-04-27 09:45:48 -04:00
Quinn Dougherty
938a10766c Response to CR
Value: [0.005 to 0.43]
2022-04-26 20:30:38 -04:00
Quinn Dougherty
f0d9404a68 merge develop into issue326 2022-04-26 18:43:12 -04:00
Quinn Dougherty
2553229d28 The real 326
Value: [0.04 to 0.3]
2022-04-26 18:41:57 -04:00
Sam Nolan
93c06f85b0 Merge branch 'develop' into loss-testing 2022-04-26 17:19:33 -04:00
Sam Nolan
1ef766a6c8
Merge pull request #388 from quantified-uncertainty/issue387
Input validation for cauchy
2022-04-26 17:09:28 -04:00
Quinn Dougherty
b9c8a7e2c7 Input validation for cauchy
Value: [0.01 to 0.08]

Sam gets most of the credit
2022-04-26 16:58:36 -04:00
Quinn Dougherty
6f00716722 deleted comment
Value: [0.001 to 0.01]
2022-04-26 16:39:52 -04:00
Quinn Dougherty
5469435dc5 Merge remote-tracking branch 'origin/develop' into issue326 2022-04-26 16:07:56 -04:00
Quinn Dougherty
c53e56e773 The proper issue326 (again)
Value: [1 to 3.6]
2022-04-26 16:06:51 -04:00
Sam Nolan
752f2a1ea5 Add other distributions and operations into benchmarking 2022-04-26 16:05:16 -04:00
Sam Nolan
ba412f2df6 Fix resolution issue 2022-04-26 14:15:37 -04:00
Sam Nolan
7302a3ec10 Give isNormalised lower bound 2022-04-26 13:28:08 -04:00
Sam Nolan
350e420884 Add isNormalized to Continuous 2022-04-26 13:25:45 -04:00
Sam Nolan
e47deb8433 Translate pmf to pdf for kde 2022-04-26 12:22:31 -04:00
Quinn Dougherty
e2da81812f Merge remote-tracking branch 'origin/develop' into issue326 2022-04-26 09:56:25 -04:00
Ozzie Gooen
d84420b1ff Merge branch 'develop' into normalize-improvements
* develop:
  hotfix: codecov stuff in `.npmignore`
  Rename flip argument to be more descriptive
  Fix pointwise not commuting for subtraction
  Fix missing paramater in test
  Rename AlgebraicShapeCombination test case
  Fixed package versions in `website/package.json`
  Refactor and rename checkOrdered
  Moved dependencies to devDependencies; updated versions
  rm react-codejar
  Mistake in #371
  Fix build issues in components
  Move dependencies to devDependencies
  Ensure xyShape is ordered by x coordinates when multiplying by negatives
  ⬆️ Bump @types/node from 17.0.25 to 17.0.26
  ⬆️ Bump antd from 4.19.5 to 4.20.0
  Turned error into actual error
  Show correct errors early on when log(distribution) has bad arguments
  Fix subtraction not commuting under pointsets
2022-04-25 21:59:45 -04:00
Ozzie Gooen
2c1aff25d3 Added basic functins to SampleSetDist 2022-04-25 21:46:40 -04:00
Quinn Dougherty
5ef8cf5dde Fixed implementation
Value: [0.4 to 2]
2022-04-25 21:04:11 -04:00
Quinn Dougherty
3367b82eef mode to determine dist mode to operate in
Value: [1.2 to 4.6]
2022-04-25 20:55:16 -04:00
Ozzie Gooen
dc127a884a
Merge pull request #359 from quantified-uncertainty/log-inputs-errors
Show correct errors early on when log(distribution) has bad arguments
2022-04-25 20:50:26 -04:00
Sam Nolan
6bfecf2204 Rename flip argument to be more descriptive 2022-04-25 15:55:25 -04:00
Sam Nolan
62653d55b4 Fix pointwise not commuting for subtraction 2022-04-25 15:46:56 -04:00
Sam Nolan
cf44e6d3c7 Merge branch 'develop' into commutative-error 2022-04-25 15:08:57 -04:00
Sam Nolan
f9c02ba626 Refactor and rename checkOrdered 2022-04-25 14:50:45 -04:00
Umur Ozkul
7d4e3072b8 commite related issue note 2022-04-25 18:35:15 +02:00
Umur Ozkul
6878523186 cancel performance hook 2022-04-25 18:27:04 +02:00
Sam Nolan
d7151907d3 Ensure xyShape is ordered by x coordinates when multiplying by negatives
Value: [0.00001 to 0.0005]
2022-04-25 11:44:50 -04:00
Umur Ozkul
ac8827da28 ternary with bindings (failed) 2022-04-25 17:15:28 +02:00
Sam Nolan
fe493af0b9 Merge branch 'develop' into commutative-error 2022-04-25 11:00:45 -04:00
Umur Ozkul
cbc2b73b20 Evaluate ternary operator (tested) 2022-04-25 16:19:56 +02:00
Sam Nolan
d60aaa57f7 Get tests to pass for Reducer code
Value: [0.0001 to 0.04]
2022-04-25 10:10:07 -04:00
Umur Ozkul
c810c4576d reducer semantics ternary (tested) 2022-04-25 15:30:27 +02:00
Umur Ozkul
4d801c0b10 ternary operator mathjs parse (tested) 2022-04-25 15:11:50 +02:00
Umur Ozkul
3788cb0c9a fix variant warnings 2022-04-25 10:52:13 +02:00
Umur Ozkul
8d92941736 Merge branch 'develop' into Umur-reducer-dev 2022-04-25 09:28:53 +02:00
Umur Ozkul
c5e08cfdb6 modify lambda 2022-04-25 09:17:38 +02:00
Umur Ozkul
eba087329f called lamda with arguments (tested) 2022-04-25 08:49:17 +02:00
Umur Ozkul
1fb9218a94 refactor passToFunction 2022-04-25 08:19:18 +02:00
Umur Ozkul
d214bddc82 lambda expressions bound to function call symbols 2022-04-25 06:30:25 +02:00
Umur Ozkul
7b080ff4c2 bind function calls 2022-04-25 03:01:58 +02:00
Umur Ozkul
e3ef08839f Function definition evaluated 2022-04-25 02:48:49 +02:00
Umur Ozkul
1f989de11c lambda binding 2022-04-25 01:53:37 +02:00
Umur Ozkul
5d88fae40c internalCode 2022-04-25 01:16:41 +02:00
Umur Ozkul
fe4e355fbe format 2022-04-24 18:42:54 +02:00
Ozzie Gooen
260d159500 Make sure pointSetDist toPointSet is normalized 2022-04-23 18:29:58 -04:00
Ozzie Gooen
51e2cf167c Turned error into actual error 2022-04-23 18:07:26 -04:00
Ozzie Gooen
1102ceb4ec Show correct errors early on when log(distribution) has bad arguments 2022-04-23 17:51:41 -04:00
Sam Nolan
8cb138b84a Fix convolution for negative multiplication 2022-04-23 17:48:00 -04:00
Sam Nolan
ee6551a694 Prevent negative standard deviation in symbolic multiplication
Introduced in #242
2022-04-23 16:57:06 -04:00
Sam Nolan
9090c44284 Fix subtraction not commuting under pointsets 2022-04-23 15:58:42 -04:00
Umur Ozkul
88b6d49ad3 function definition parse (tested) 2022-04-23 21:13:43 +02:00
Sam Nolan
dfd2f83c9d
Merge pull request #345 from quantified-uncertainty/invalid-ops
Change NaN operations to results
2022-04-23 14:51:50 -04:00
Sam Nolan
df4b734a49 Rename invalidOperationError 2022-04-23 14:35:49 -04:00
Sam Nolan
b44a955338 Fix bundle errors 2022-04-23 14:16:11 -04:00
Sam Nolan
7e8c16b923 Rename Other to OtherError 2022-04-23 14:13:38 -04:00
Sam Nolan
c7e601e15b Remove NaN from pointwise operations 2022-04-23 14:09:06 -04:00
Ozzie Gooen
21975f2c0b Fixed the linting of reducer files 2022-04-23 12:25:33 -04:00
Umur Ozkul
a915e68049 MathJs functionAssingmentNode parsed, comments passed (tested)
Just found out that comments were already done
2022-04-23 18:07:47 +02:00
Sam Nolan
98bf4f81c7 Rename assertOk to toExn 2022-04-23 10:30:03 -04:00
Sam Nolan
9fb7148290 Refactor mapY and mapYResult in mixed to remove duplication 2022-04-23 10:17:07 -04:00
Sam Nolan
ad593e659b Move error types to types modules 2022-04-23 09:56:47 -04:00
Sam Nolan
79af95ed78 Remove unneeded prefix to error 2022-04-23 09:47:48 -04:00
Umur Ozkul
99906446c5 resi declaration consistency 2022-04-23 15:40:04 +02:00
Umur Ozkul
e456726e53 Merge branch 'reducer-dev-F-debugging' into Umur-reducer-dev 2022-04-23 15:21:11 +02:00
Sam Nolan
9c92d93ca4 Fix bad validation math 2022-04-22 17:21:45 -04:00
Sam Nolan
508f673873 Change NaN operations to results
- Also deleting old GenericDist_Types
- Also removing some string errors
2022-04-22 16:27:17 -04:00
Umur Ozkul
875f0519ac fixed - PR#333 kill W in evaluatePartialWBindings
renamed to evaluatePartialUsingExternalBindings
2022-04-22 22:19:59 +02:00
Umur Ozkul
2c7e6c750b fix PR#333 - kill W in evalaluateWBindings
renamed to evaluateUsingExternalBindings
2022-04-22 22:15:06 +02:00
Umur Ozkul
a4aee41aa4 Merge branch 'develop' into reducer-dev 2022-04-22 21:19:11 +02:00
Umur Ozkul
b683e720f1 PR#333 2022-04-22 21:16:27 +02:00
Sam Nolan
2845bd3e39 Use a more conservative convolution policy 2022-04-22 12:43:18 -04:00
Sam Nolan
ad8be5273f Merge branch 'develop' into reducer-dev 2022-04-22 11:04:43 -04:00
Sam Nolan
cb8ff92d4e Fix webpack bundle errors 2022-04-22 10:48:34 -04:00
Umur Ozkul
9ce5ed53d2 inspectPerformance (tested) 2022-04-22 16:18:00 +02:00
Umur Ozkul
417f0060b6 inspect and inspect with label (tested) 2022-04-22 15:43:37 +02:00
Umur Ozkul
2c5c5095b8 moved externalBindings to ReducerInterface 2022-04-22 04:51:31 +02:00
Sam Nolan
cfb969f2b3 Remove rescript warning 102 2022-04-21 18:42:15 -04:00
Sam Nolan
6eddb5a4af Remove warning 20 2022-04-21 18:19:38 -04:00
Sam Nolan
e1bf47b6b3 Remove old parser and warning 27 2022-04-21 18:09:06 -04:00
Umur Ozkul
2aa3a5ac48 format 2022-04-22 00:02:27 +02:00
Umur Ozkul
5038e2c691 eval partial tested 2022-04-21 23:55:23 +02:00
Sam Nolan
10d9d8bc37 Fix warning 41 2022-04-21 17:30:39 -04:00
Umur Ozkul
a02bc27852 eval partial tested 2022-04-21 21:33:12 +02:00
Umur Ozkul
46f3ee3d2c parse partial tested 2022-04-21 19:16:09 +02:00
Umur Ozkul
a3a7b9b269 remove unused case 2022-04-21 18:22:36 +02:00
Umur Ozkul
f272568b97 Merge branch 'develop' into reducer-dev
packages/squiggle-lang/src/rescript/Reducer/Reducer_Expression/Reducer_Expression.res
2022-04-21 18:20:54 +02:00
Ozzie Gooen
e83d5b111d
Merge pull request #323 from quantified-uncertainty/fix-reducer-warnings
Fix rescript warnings
2022-04-20 14:17:28 -04:00
Sam Nolan
c2b93831e3 Fix rescript warnings 2022-04-20 13:51:27 -04:00
Quinn Dougherty
806ba86446 fixed lint 2022-04-20 12:13:31 -04:00
Quinn
c101cdac18
update signature for result 2022-04-20 11:54:17 -04:00
Quinn
cbd93b7e79
back out of double Ok 2022-04-20 11:50:08 -04:00
Quinn
4631c183d9
wrap #Cauchy in Ok 2022-04-20 11:49:41 -04:00
Quinn
5875880c06
nested Ok because cauchy requires no input validation 2022-04-20 11:44:33 -04:00
Quinn
0540fef63a
Update ReducerInterface_GenericDistribution.res 2022-04-20 11:39:00 -04:00
Quinn
017cbe7274
hotfix: cauchy in binary dist constructors 2022-04-20 11:22:10 -04:00
Umur Ozkul
da37536b4b Merge branch 'develop' into reducer-dev 2022-04-17 20:38:20 +02:00
Umur Ozkul
e2015e1098 Outer and Partial: test helpers defined 2022-04-17 20:07:21 +02:00
Umur Ozkul
0585aa33a9 parseOuter, parsePartial 2022-04-17 19:47:05 +02:00
Umur Ozkul
b1e2b27cee partials compile. TODO tests 2022-04-17 19:24:39 +02:00
Ozzie Gooen
fe2be53d04
Merge pull request #295 from quantified-uncertainty/add-isNormalized
Added isNormalized function, for testing
2022-04-15 16:30:56 -04:00
Ozzie Gooen
9febf3f182 Changed isNormalize in response to CR 2022-04-15 16:28:51 -04:00
Ozzie Gooen
2ed7d03005 Added formatting 2022-04-15 14:10:17 -04:00
Ozzie Gooen
2df6a7f537 Removed Js.log 2022-04-15 13:59:25 -04:00
Ozzie Gooen
73b950078d Added isNormalized function, for testing 2022-04-15 13:58:00 -04:00
8743b235d6 fix: typo 2022-04-15 12:54:04 -04:00
Umur Ozkul
7ab69a1708 issue 234
Define partial code
2022-04-15 14:48:58 +02:00
Umur Ozkul
3f95ca455b imports #234 2022-04-15 08:56:48 +02:00
1677d63375 fix: std of lognormal symbolic division 2022-04-14 21:54:06 -04:00
6d82adca25 Merge branch 'develop' into audit-2022-04-14-SymbolicDist.res 2022-04-14 16:50:37 -04:00
bd3f2c99d1 tweak: add explanation for magic number 2022-04-14 16:25:15 -04:00
e5655dc2d1 fix: formatting 2022-04-14 16:20:23 -04:00
69148bb350 fix: Rescript bugs 2022-04-14 16:17:59 -04:00
Ozzie Gooen
8854eed91e
Merge pull request #242 from quantified-uncertainty/analytic-normal
Analytic normal
2022-04-14 16:11:36 -04:00
ec9c67f090 feat: Audit SymbolicDist.res
- Fix buggy lognormal multiplication code
- Add precision to 90% confidence intervals code
- Simplified lognormal code
- Added sources for many of the manipulations
2022-04-14 16:03:54 -04:00
Umur Ozkul
53c44cdc9d refactor macro definitions 2022-04-14 18:17:45 +02:00
Umur Ozkul
1fa1867470 Merge branch 'develop' into reducer-dev 2022-04-14 17:04:54 +02:00
Umur Ozkul
35f7077248 remove unused code 2022-04-14 17:02:01 +02:00
Umur Ozkul
fb63d44ab9 PR#226 2022-04-14 17:00:12 +02:00
Umur Ozkul
9b4f397859 remove unnecessary rec 2022-04-14 03:10:45 +02:00
Umur Ozkul
de379b6c04 Merge branch 'develop' into reducer-dev 2022-04-14 03:03:08 +02:00
Umur Ozkul
daf2a27182 PR#226, add missing variants to switch statements
Code is passing unit tests however there were missing variands. Fixed
2022-04-14 02:40:59 +02:00
Quinn Dougherty
b0ff2c19f5 yarn format 2022-04-13 19:18:08 -04:00
Quinn Dougherty
165427f137 refactored to a higher level of abstraction 2022-04-13 10:30:23 -04:00
Quinn Dougherty
e9e6cab099 silenced warning about toString not having switch case for ArgumentError 2022-04-13 10:26:10 -04:00
Sam Nolan
948a8dd651 Add analytic solutions for normal and lognormal 2022-04-13 15:11:14 +10:00
Quinn Dougherty
b6e423a6e3 fixed bug after rebase: hope it doesn't cause problems 2022-04-13 01:08:51 -04:00
Quinn Dougherty
de81928ea9 Ran yarn format 2022-04-13 01:05:09 -04:00
Quinn Dougherty
af0577f85e test count: 386 2022-04-13 01:05:09 -04:00
Quinn Dougherty
59fcd6a26c intermediate commit to checkout something else 2022-04-13 01:05:08 -04:00
Quinn Dougherty
dd53c7554b (rebase): begin setup for big redo 2022-04-13 01:05:08 -04:00
Quinn Dougherty
9d857bf79b (rebase): documented ratio of lognormals 2022-04-13 01:05:08 -04:00
Quinn Dougherty
a64cd75ead inv and cdf 2022-04-13 01:05:08 -04:00
Quinn Dougherty
6a4d615d3d (rebase): (rebase): (rebase): **refactor**: rm duplicated genericDist and error declarations 2022-04-13 01:04:53 -04:00
Sam Nolan
348b1c9ac6 Add normal distribution analytical simplifications 2022-04-13 14:36:30 +10:00
Sam Nolan
117c08bfa9 Fix unweighted average of distributions 2022-04-13 12:03:04 +10:00
Sam Nolan
38135f0c81 Merge branch 'develop' into mix-distributions 2022-04-13 11:22:43 +10:00
Quinn Dougherty
b17f638483 EBindings -> T.EBindings 2022-04-12 20:48:53 -04:00
Quinn Dougherty
4f95c019eb yarn format 2022-04-12 20:22:19 -04:00