Skip to content

Commit

Permalink
fix col_array keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
JernKunpittaya committed Feb 29, 2024
1 parent b71c954 commit 5e05208
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,17 @@ def compute(

prover_gen_settings(
data_path=data_path,
col_array=selected_columns,
selected_columns=selected_columns,
sel_data_path=str(sel_data_path),
prover_model=model,
prover_model_path=str(model_path),
scale=scales,
mode="resources",
settings_path=str(settings_path),
)
print('betw gen_settings and setup')
f_setting = open(str(settings_path), "r")
print("setting: ", f_setting.read())
setup(
str(model_path),
str(compiled_model_path),
Expand Down
4 changes: 2 additions & 2 deletions zkstats/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def create_dummy(data_path: str, dummy_data_path: str) -> None:
# ===================================================================================================
# ===================================================================================================

# we decide to not have sel_data_path as parameter since a bit redundant parameter.

def prover_gen_settings(
data_path: str,
selected_columns: list[str],
Expand Down Expand Up @@ -333,7 +333,7 @@ def _gen_settings(
# Poseidon is not homomorphic additive, maybe consider Pedersens or Dory commitment.
gip_run_args = ezkl.PyRunArgs()
gip_run_args.input_visibility = "hashed" # one commitment (values hashed) for each column
gip_run_args.param_visibility = "private" # no parameters used
gip_run_args.param_visibility = "private" # no parameters shown
gip_run_args.output_visibility = "public" # should be `(torch.Tensor(1.0), output)`

# generate settings
Expand Down

0 comments on commit 5e05208

Please sign in to comment.