Skip to content

Commit

Permalink
Feat/Spam Detection Demo (#14)
Browse files Browse the repository at this point in the history
* feat: added spam_detection demo

* chore: replaced helpers with nillion_python_helpers library

* fix: included nillion_python_helpers in time_series

* fix: added LogisticRegression to all
  • Loading branch information
jcabrero authored Jun 13, 2024
1 parent 23ca09a commit 8941277
Show file tree
Hide file tree
Showing 30 changed files with 3,699 additions and 153 deletions.
1 change: 1 addition & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The following are the currently available examples:
- [Neural Net](./neural_net): shows how to build & run a simple Feed-Forward Neural Net (both linear layers & activations) using Nada AI
- [Complex Model](./complex_model): shows how to build more intricate model architectures using Nada AI. Contains convolutions, pooling operations, linear layers and activations
- [Time Series](./time_series): shows how to run a Facebook Prophet time series forecasting model using Nada AI
- [Spam Detection Demo](./spam_detection): shows how to build a privacy-preserving spam detection model using Nada AI. Contains Logistic Regression, and cleartext TF-IDF vectorization.

The Nada program source code is stored in `src/<EXAMPLE_NAME>.py`.

Expand Down
4 changes: 2 additions & 2 deletions examples/complex_model/network/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))

# Import helper functions for creating nillion client and getting keys
from neural_net.network.helpers.nillion_client_helper import create_nillion_client
from neural_net.network.helpers.nillion_keypath_helper import (
from nillion_python_helpers import (
create_nillion_client,
getUserKeyFromFile,
getNodeKeyFromFile,
)
Expand Down
12 changes: 0 additions & 12 deletions examples/complex_model/network/helpers/nillion_client_helper.py

This file was deleted.

10 changes: 0 additions & 10 deletions examples/complex_model/network/helpers/nillion_keypath_helper.py

This file was deleted.

12 changes: 0 additions & 12 deletions examples/complex_model/network/helpers/nillion_payments_helper.py

This file was deleted.

4 changes: 2 additions & 2 deletions examples/linear_regression/network/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))

# Import helper functions for creating nillion client and getting keys
from neural_net.network.helpers.nillion_client_helper import create_nillion_client
from neural_net.network.helpers.nillion_keypath_helper import (
from nillion_python_helpers import (
create_nillion_client,
getUserKeyFromFile,
getNodeKeyFromFile,
)
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 2 additions & 2 deletions examples/neural_net/network/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))

# Import helper functions for creating nillion client and getting keys
from neural_net.network.helpers.nillion_client_helper import create_nillion_client
from neural_net.network.helpers.nillion_keypath_helper import (
from nillion_python_helpers import (
create_nillion_client,
getUserKeyFromFile,
getNodeKeyFromFile,
)
Expand Down
12 changes: 0 additions & 12 deletions examples/neural_net/network/helpers/nillion_client_helper.py

This file was deleted.

10 changes: 0 additions & 10 deletions examples/neural_net/network/helpers/nillion_keypath_helper.py

This file was deleted.

12 changes: 0 additions & 12 deletions examples/neural_net/network/helpers/nillion_payments_helper.py

This file was deleted.

1,056 changes: 1,056 additions & 0 deletions examples/spam_detection/01_model_provider.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 8941277

Please sign in to comment.