Skip to content

Commit

Permalink
Remove state client
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-nillion committed Jun 12, 2024
1 parent 9077d2f commit e4bce1f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 32 deletions.
7 changes: 3 additions & 4 deletions nada_ai/client/clients/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from .sklearn_client import SklearnClient
from .state_client import StateClient
from .torch_client import TorchClient
from .sklearn import SklearnClient
from .torch import TorchClient

__all__ = ["SklearnClient", "StateClient", "TorchClient"]
__all__ = ["SklearnClient", "TorchClient"]
File renamed without changes.
20 changes: 0 additions & 20 deletions nada_ai/client/clients/state_client.py

This file was deleted.

File renamed without changes.
9 changes: 1 addition & 8 deletions tests/python-tests/test_model_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import nada_algebra as na
from sklearn.linear_model import LinearRegression, LogisticRegression
from torch import nn
from nada_ai.client import ModelClient, StateClient, TorchClient, SklearnClient
from nada_ai.client import ModelClient, TorchClient, SklearnClient
import py_nillion_client as nillion


Expand Down Expand Up @@ -72,13 +72,6 @@ def test_sklearn_4(self):
with pytest.raises(NotImplementedError):
model_client.export_state_as_secrets("test_model", nillion.SecretInteger)

def test_state_client_1(self):
state_client = StateClient({"some_value": 1})

secrets = state_client.export_state_as_secrets("test_model", na.Rational)

assert list(secrets.keys()) == ["test_model_some_value_0"]

def test_custom_client_1(self):
class MyModelClient(ModelClient):
def __init__(self) -> None:
Expand Down

0 comments on commit e4bce1f

Please sign in to comment.