Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/Spam Detection Demo #14

Merged
merged 4 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading