mhchia
7158800fbf
fix: output scale
2024-09-13 17:34:51 +08:00
mhchia
2b944dce9a
detect selected columns in computation_to_model
2024-09-13 01:55:59 +08:00
mhchia
b268b50214
use key to access column in computation
2024-07-04 23:41:21 +08:00
mhchia
13bcab6ab2
add the missing precal witness dump back
2024-06-19 19:26:03 +08:00
mhchia
007f4751b0
fix: outputs order is wrong when more than 1 outputs
2024-06-19 18:57:37 +08:00
JernKunpittaya
abee95d3fa
remove batch_size, make tensor 2D instead of 3D
2024-06-04 21:51:37 +07:00
JernKunpittaya
0ffec808f7
fix param_vis to fixed
2024-05-31 14:48:51 +07:00
JernKunpittaya
c849e60251
None as default, where, support torch with state
2024-05-14 14:39:11 +07:00
JernKunpittaya
939f91fa5b
refine after merge
2024-05-10 18:49:57 +07:00
JernKunpittaya
7def4ddce8
Merge branch 'tmp/recheck_func' of https://github.com/ZKStats/zk-stats-lib into tmp/recheck_func
2024-05-10 18:33:50 +07:00
JernKunpittaya
8c83ac2294
catch up csv
2024-05-10 18:15:27 +07:00
JernKunpittaya
4a25982896
Merge branch 'main' into tmp/recheck_func
2024-05-10 17:44:47 +07:00
JernKunpittaya
400cdd76cc
revamp zkstats logic/ flow
2024-05-10 14:34:04 +07:00
JernKunpittaya
82f3d8d99f
median
2024-05-04 13:20:25 +07:00
JernKunpittaya
6f7e38405b
generalize from mean
2024-05-04 10:55:16 +07:00
JernKunpittaya
57ea3ed3c6
fix mean example
2024-05-03 21:29:53 +07:00
mhchia
7704bf6e6e
feat: convert data file to json in core lib
2024-04-25 20:30:25 +08:00
mhchia
bb15b8c879
feat: generate data commitment in json file
2024-04-10 22:16:47 +08:00
mhchia
516b520bb3
add tests for operation+where
2024-03-07 19:05:10 +08:00
JernKunpittaya
9e53a2bb05
where function supported
2024-03-07 13:12:38 +07:00
JernKunpittaya
cf7b853620
fix mean&its corresponding, to allow lower scale as usual
2024-03-06 16:05:09 +07:00
JernKunpittaya
a61e52c5d2
where+geomean, median, mode, reg, stdv
2024-03-06 15:48:04 +07:00
JernKunpittaya
ca7d712ad4
where+mean works (w/higher scale for mean as well)
2024-03-05 12:34:19 +07:00
JernKunpittaya
58d4a24d18
make mode error = 0, traditional mode
2024-03-05 10:12:39 +07:00
JernKunpittaya
db061ef749
ezkl 9.1.0, zkstats 0.1.3, format result as array to include regression case, mod supported in median
2024-03-03 15:36:40 +07:00
JernKunpittaya
4537a77c43
clarify mode output first num, import zkstats, comment mode/median
2024-03-03 13:46:34 +07:00
JernKunpittaya
5e0520847b
fix col_array keyword
2024-02-29 18:08:53 +07:00
JernKunpittaya
b71c954a8d
Merge pull request #19 from ZKStats/docs/readme
...
docs: add more introductions in README.md and add docstrings
2024-02-29 11:04:50 +07:00
mhchia
0b691fc6bd
add docstrings
2024-02-19 22:17:25 +08:00
mhchia
caa0a0b6d9
rename 'verifier_setup' to 'setup'
2024-02-19 22:17:08 +08:00
JernKunpittaya
c22d0c7bff
Merge branch 'feat/support-rest-operations' into tmp/support-rest-operations
2024-02-16 13:23:25 +07:00
JernKunpittaya
0c367889da
fill nn.parameter, data
2024-02-16 13:21:04 +07:00
JernKunpittaya
4bce19f958
fill nn.parameter
2024-02-16 13:17:12 +07:00
JernKunpittaya
d3ef67a449
resolve num_error, result error. all to float32
2024-02-16 13:03:26 +07:00
mhchia
80b3231cb3
add docstrings for computation
2024-02-14 17:56:31 +08:00
mhchia
01be09be53
fix: use nn.Parameter for private params
2024-02-14 16:08:22 +08:00
mhchia
cfa6781816
test: change computation test for more operations
2024-02-13 01:32:18 +08:00
mhchia
91baca5530
feat: add linear_regression
2024-02-12 16:22:07 +08:00
mhchia
ce2e32f27c
feat: support operations except regression
2024-02-08 22:42:40 +08:00
mhchia
78b78b8568
remove check for 2 outputs
2024-02-08 22:41:48 +08:00
mhchia
b9e8977294
fix bugs
2024-02-03 14:33:17 +08:00
mhchia
662b5bd46d
test: add simple tests for data commitment and integration
2024-02-02 15:40:11 +08:00
mhchia
d7468bebcc
fix: data commitment generation
2024-02-02 00:40:24 +08:00
mhchia
6163e88c75
fix: parse data commitments correctly
2024-02-01 22:52:51 +08:00
mhchia
dd7973aa3d
fix: make cli work again with new computation ui
2024-02-01 22:50:37 +08:00
mhchia
a4a552a74c
fix: tests, rename createDummy, restore verifier_verify, remove zkstats_onefile
2024-02-01 19:15:02 +08:00
JernKunpittaya
0b35ce585e
Merge branch 'main' into dev
2024-01-31 12:15:35 +07:00
JernKunpittaya
702c3d4665
onefile in examples
2024-01-25 22:43:15 +07:00
mhchia
9cc9c62f20
test: add tests for op and computation, and refactor
2024-01-24 15:22:07 +08:00
mhchia
ad3666cd07
fix: make mean's output a scalar instead of a 2d array
...
To ensure `lower` and `upper` are a scalar, `x` must be a 1d array.
Otherwise, if `x` is a 3d array, `lower` and `upper` will be 2d array, which are not what
we want in our context. However, we tend to have x as a `[1, len(x), 1]`. In this case,
we need to flatten `x` to 1d array to get the correct `lower` and `upper`.
2024-01-24 15:22:07 +08:00