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

examples: add mnist fgm demo which makes use of RESTAPI v1 #644

Open
wants to merge 18 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
6934232
examples: adapt tensorflow-mnist-classifer demo to dioptra 1.0
jtsextonMITRE Sep 18, 2024
247781c
examples: remove unneeded files & add defenses
jtsextonMITRE Sep 18, 2024
ec2b04b
examples: remove more unneeded files
jtsextonMITRE Sep 18, 2024
81ac8b2
examples: clean up notebook
jtsextonMITRE Sep 18, 2024
91c5b4e
examples: add gaussian defense and ability to use mappings to client
jtsextonMITRE Sep 18, 2024
4a8327a
examples: add graph at end of demo
jtsextonMITRE Sep 19, 2024
9d76157
examples: added unused patch generation (requires tensorflow downgrade)
jtsextonMITRE Oct 3, 2024
73c7a32
examples: re-add patch attack (numpy) to mnist demo
jtsextonMITRE Oct 8, 2024
8067cbf
examples: fix typo in mnist example
jtsextonMITRE Oct 9, 2024
b026c82
examples: changed infer to evaluate, added predict and metrics.
jtsextonMITRE Oct 16, 2024
c18b243
examples: removing unused entrypoint params and save performance metr…
jtsextonMITRE Oct 16, 2024
fa9d714
examples: remove unused variable
jtsextonMITRE Oct 16, 2024
9706738
examples: pull changes from dev to get access to new client
jtsextonMITRE Dec 19, 2024
fb10fe4
examples: remove client.py, refactor setup.py to use new client
jtsextonMITRE Dec 19, 2024
a317845
examples: update notebook to use client
jtsextonMITRE Dec 26, 2024
838e2cc
examples: add client calls to plugins for artifacts and models
jtsextonMITRE Dec 27, 2024
fc1a8a9
examples: replace mlflow metrics with RESTAPI
jtsextonMITRE Jan 2, 2025
4ddb7b7
examples: fix typing issues
jtsextonMITRE Jan 3, 2025
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
17 changes: 12 additions & 5 deletions .github/workflows/pip-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,17 +222,24 @@ jobs:
- name: install dos2unix tool
run: sudo apt install -y dos2unix

- name: download all the compiled requirements files
- name: download all the compiled requirements files - x86-64
uses: actions/download-artifact@v4
with:
path: artifacts
pattern: py*
merge-multiple: true

- name: download all the compiled requirements files - aarch64
uses: actions/download-artifact@v4
with:
pattern: requirements-*
merge-multiple: true

- name: standardize and consolidate files into venvs directory
run: |
find artifacts -type f -name "*requirements*.txt" -exec chmod 0644 {} \;
find artifacts -type f -name "*requirements*.txt" -exec dos2unix {} \;
find . -type f -name "*requirements*.txt" -exec chmod 0644 {} \;
find . -type f -name "*requirements*.txt" -exec dos2unix {} \;
mkdir venvs
mv artifacts/**/*.txt venvs
mv *.txt venvs

- name: archive the consolidated requirements files
uses: actions/upload-artifact@v4
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,6 @@ vignettes/*.pdf

# Javascript
node_modules/
package-lock.json

# ---------------------------
# BEGIN Whitelisted Files
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ prepare_build_dir() {
"public"
"index.html"
"package.json"
"package-lock.json"
"tsconfig.json"
"tsconfig.app.json"
"tsconfig.node.json"
Expand Down Expand Up @@ -351,10 +352,10 @@ copy_dist_to_output() {
compile_vue_js_frontend() {
cd "${BUILD_DIR}"

log_info "Installing node packages using npm install"
log_info "Installing node packages using npm ci"

if ! npm install; then
log_error "Installing node modules using npm install failed, exiting..."
if ! npm ci; then
log_error "Installing node modules using npm ci failed, exiting..."
exit 1
fi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,65 +4,69 @@
#
# pip-compile --output-file=venvs/linux-amd64-py3.11-mlflow-tracking-requirements.txt docker/pip-tools/mlflow-tracking-requirements.in
#
alembic==1.13.2
alembic==1.14.0
# via mlflow
aniso8601==9.0.1
# via graphene
blinker==1.8.2
blinker==1.9.0
# via flask
boto3==1.34.139
boto3==1.35.69
# via -r docker/pip-tools/mlflow-tracking-requirements.in
botocore==1.34.139
botocore==1.35.69
# via
# boto3
# s3transfer
cachetools==5.3.3
# via mlflow
certifi==2024.7.4
cachetools==5.5.0
# via
# google-auth
# mlflow-skinny
certifi==2024.8.30
# via requests
charset-normalizer==3.3.2
charset-normalizer==3.4.0
# via requests
click==8.1.7
# via
# flask
# mlflow
cloudpickle==3.0.0
# via mlflow
contourpy==1.2.1
# mlflow-skinny
cloudpickle==3.1.0
# via mlflow-skinny
contourpy==1.3.1
# via matplotlib
cycler==0.12.1
# via matplotlib
deprecated==1.2.14
# via opentelemetry-api
databricks-sdk==0.38.0
# via mlflow-skinny
deprecated==1.2.15
# via
# opentelemetry-api
# opentelemetry-semantic-conventions
docker==7.1.0
# via mlflow
entrypoints==0.4
# via mlflow
flask==3.0.3
flask==3.1.0
# via mlflow
fonttools==4.53.1
fonttools==4.55.0
# via matplotlib
gitdb==4.0.11
# via gitpython
gitpython==3.1.43
# via mlflow-skinny
google-auth==2.36.0
# via databricks-sdk
graphene==3.4.3
# via mlflow
graphene==3.3
# via mlflow
graphql-core==3.2.3
graphql-core==3.2.5
# via
# graphene
# graphql-relay
graphql-relay==3.2.0
# via graphene
greenlet==3.0.3
greenlet==3.1.1
# via sqlalchemy
gunicorn==22.0.0
gunicorn==23.0.0
# via mlflow
idna==3.7
idna==3.10
# via requests
importlib-metadata==7.1.0
importlib-metadata==8.5.0
# via
# mlflow
# mlflow-skinny
# opentelemetry-api
itsdangerous==2.2.0
# via flask
Expand All @@ -76,112 +80,118 @@ jmespath==1.0.1
# botocore
joblib==1.4.2
# via scikit-learn
kiwisolver==1.4.5
kiwisolver==1.4.7
# via matplotlib
mako==1.3.5
mako==1.3.6
# via alembic
markdown==3.6
markdown==3.7
# via mlflow
markupsafe==2.1.5
markupsafe==3.0.2
# via
# jinja2
# mako
# werkzeug
matplotlib==3.9.1
matplotlib==3.9.2
# via mlflow
mlflow==2.14.2
mlflow==2.18.0
# via -r docker/pip-tools/mlflow-tracking-requirements.in
numpy==1.26.4
mlflow-skinny==2.18.0
# via mlflow
numpy==2.1.3
# via
# contourpy
# matplotlib
# mlflow
# pandas
# pyarrow
# scikit-learn
# scipy
opentelemetry-api==1.25.0
opentelemetry-api==1.28.2
# via
# mlflow
# mlflow-skinny
# opentelemetry-sdk
# opentelemetry-semantic-conventions
opentelemetry-sdk==1.25.0
# via mlflow
opentelemetry-semantic-conventions==0.46b0
opentelemetry-sdk==1.28.2
# via mlflow-skinny
opentelemetry-semantic-conventions==0.49b2
# via opentelemetry-sdk
packaging==24.1
packaging==24.2
# via
# gunicorn
# matplotlib
# mlflow
pandas==2.2.2
# mlflow-skinny
pandas==2.2.3
# via mlflow
pillow==10.4.0
pillow==11.0.0
# via matplotlib
protobuf==4.25.3
# via mlflow
psycopg2-binary==2.9.9
protobuf==5.28.3
# via mlflow-skinny
psycopg2-binary==2.9.10
# via -r docker/pip-tools/mlflow-tracking-requirements.in
pyarrow==15.0.2
pyarrow==18.1.0
# via mlflow
pyparsing==3.1.2
pyasn1==0.6.1
# via
# pyasn1-modules
# rsa
pyasn1-modules==0.4.1
# via google-auth
pyparsing==3.2.0
# via matplotlib
python-dateutil==2.9.0.post0
# via
# botocore
# graphene
# matplotlib
# pandas
pytz==2024.1
# via
# mlflow
# pandas
pyyaml==6.0.1
# via mlflow
querystring-parser==1.2.4
# via mlflow
pytz==2024.2
# via pandas
pyyaml==6.0.2
# via mlflow-skinny
requests==2.32.3
# via
# databricks-sdk
# docker
# mlflow
s3transfer==0.10.2
# mlflow-skinny
rsa==4.9
# via google-auth
s3transfer==0.10.4
# via boto3
scikit-learn==1.5.1
scikit-learn==1.5.2
# via mlflow
scipy==1.14.0
scipy==1.14.1
# via
# mlflow
# scikit-learn
simplejson==3.19.2
simplejson==3.19.3
# via -r docker/pip-tools/mlflow-tracking-requirements.in
six==1.16.0
# via
# python-dateutil
# querystring-parser
# via python-dateutil
smmap==5.0.1
# via gitdb
sqlalchemy==2.0.31
sqlalchemy==2.0.36
# via
# alembic
# mlflow
sqlparse==0.5.0
# via mlflow
sqlparse==0.5.2
# via mlflow-skinny
threadpoolctl==3.5.0
# via scikit-learn
typing-extensions==4.12.2
# via
# alembic
# graphene
# opentelemetry-sdk
# sqlalchemy
tzdata==2024.1
tzdata==2024.2
# via pandas
urllib3==2.2.2
urllib3==2.2.3
# via
# botocore
# docker
# requests
werkzeug==3.0.3
werkzeug==3.1.3
# via flask
wrapt==1.16.0
wrapt==1.17.0
# via deprecated
zipp==3.19.2
zipp==3.21.0
# via importlib-metadata
Loading
Loading