bump version to v0.1.10

This commit is contained in:
mhchia
2024-09-13 17:35:16 +08:00
parent 7158800fbf
commit 84c5520ab8
3 changed files with 8 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "zkstats"
version = "0.1.9"
version = "0.1.10"
description = ""
authors = ["Jern Kunpittaya", "Kevin Chia"]

View File

@@ -9,12 +9,14 @@ def error() -> float:
@pytest.fixture
def column_0():
return torch.tensor([3.0, 4.5, 1.0, 2.0, 7.5, 6.4, 5.5, 6.4])
# return torch.tensor([3.0, 4.5, 1.0, 2.0, 7.5, 6.4, 5.5, 6.4])
return torch.tensor([46.2, 40.4, 44.8, 48.1, 51.2, 91.9, 38.2])
@pytest.fixture
def column_1():
return torch.tensor([2.7, 3.3, 1.1, 2.2, 3.8, 8.2, 4.4, 3.8])
# return torch.tensor([2.7, 3.3, 1.1, 2.2, 3.8, 8.2, 4.4, 3.8])
return torch.tensor([3.5, 3.0, 3.3, 3.6, 3.8, 8.3, 3.1])
@pytest.fixture

View File

@@ -70,7 +70,9 @@ def test_integration_select_partial_columns(tmp_path, column_0, column_1, error,
data_to_json_file(data_path, data_json)
def simple_computation(state, args):
return state.mean(args["columns_0"])
m_0 = state.mean(args["columns_0"])
m_1 = state.mean(args["columns_1"])
return m_0, m_1
precal_witness_path = tmp_path / "precal_witness_path.json"
selected_columns, _, model = computation_to_model(simple_computation, precal_witness_path, data_shape, True, error)
# gen settings, setup, prove, verify