-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
- Loading branch information
1 parent
79655dc
commit f8a4b6f
Showing
80 changed files
with
4,738 additions
and
3,396 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,3 @@ | ||
#!/bin/bash | ||
# binder post build script | ||
set -ex | ||
|
||
(cd docs && make html) | ||
|
||
# uninstall docs requirements for a lighter docker image | ||
pip uninstall -y -r docs/requirements.txt | ||
|
||
# move examples to the notebooks folder | ||
mv docs/build/html/notebooks . | ||
mv examples notebooks/examples | ||
|
||
# delete everything but the notebooks folder and the substra dependencies | ||
shopt -s extglob | ||
rm -rf .[!.]* | ||
rm -rf !(notebooks|docs) | ||
(cd docs && rm -rf !(src)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
python-3.8 | ||
python-3.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,22 @@ | ||
install-examples-dependencies: | ||
pip3 install -r examples/substra_core/diabetes_example/assets/requirements.txt \ | ||
-r examples/substra_core/titanic_example/assets/requirements.txt \ | ||
-r examples/substrafl/get_started/torch_fedavg_assets/requirements.txt \ | ||
-r examples/substrafl/go_further/sklearn_fedavg_assets/requirements.txt \ | ||
-r examples/substrafl/go_further/torch_cyclic_assets/requirements.txt \ | ||
-r examples/substrafl/go_further/diabetes_substrafl_assets/requirements.txt \ | ||
pip3 install -r examples_requirements.txt | ||
|
||
examples: example-substra example-substrafl | ||
|
||
example-substra: example-core-diabetes example-core-titanic | ||
|
||
example-core-diabetes: | ||
cd examples/substra_core/diabetes_example/ && python run_diabetes.py | ||
cd docs/source/examples/substra_core/diabetes_example/ && ipython -c "%run run_diabetes.ipynb" | ||
example-core-titanic: | ||
cd examples/substra_core/titanic_example/ && python run_titanic.py | ||
cd docs/source/examples/substra_core/titanic_example/ && ipython -c "%run run_titanic.ipynb" | ||
|
||
example-substrafl: example-fl-mnist example-fl-iris example-fl-cyclic example-fl-diabetes | ||
|
||
example-fl-mnist: | ||
cd examples/substrafl/get_started/ && python run_mnist_torch.py | ||
cd docs/source/examples/substrafl/get_started/ && ipython -c "%run run_mnist_torch.ipynb" | ||
example-fl-iris: | ||
cd examples/substrafl/go_further/ && python run_iris_sklearn.py | ||
cd docs/source/examples/substrafl/go_further/ && ipython -c "%run run_iris_sklearn.ipynb" | ||
example-fl-cyclic: | ||
cd examples/substrafl/go_further/ && python run_mnist_cyclic.py | ||
cd docs/source/examples/substrafl/go_further/ && ipython -c "%run run_mnist_cyclic.ipynb" | ||
example-fl-diabetes: | ||
cd examples/substrafl/go_further/ && python run_diabetes_substrafl.py | ||
cd docs/source/examples/substrafl/go_further/ && ipython -c "%run run_diabetes_substrafl.ipynb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.