Skip to content

Commit d2bad31

Browse files
chore: bump dependencies for all examples (#441)
* chore: bump dependencies for all examples Signed-off-by: SdgJlbl <[email protected]> * chore: remove unused lines in `nitpick_ignore` Signed-off-by: Guilhem Barthés <[email protected]> * feat: ignore remaining torch docstring Signed-off-by: Guilhem Barthés <[email protected]> --------- Signed-off-by: SdgJlbl <[email protected]> Signed-off-by: Guilhem Barthés <[email protected]> Co-authored-by: Guilhem Barthés <[email protected]>
1 parent 644671a commit d2bad31

File tree

18 files changed

+1153
-1269
lines changed

18 files changed

+1153
-1269
lines changed

changes/441.changed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Bump all examples dependencies.

docs/source/conf.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,7 @@ def reformat_md_section_links(file_path: Path):
358358
("py:class", "torch.nn.modules.module.Module"),
359359
("py:class", "torch.nn.modules.Module"),
360360
("py:class", "torch.nn.modules.loss._Loss"),
361-
("py:class", "torch.optim.optimizer.Optimizer"),
362361
("py:class", "torch.optim.lr_scheduler._LRScheduler"),
363-
("py:class", "torch.utils.data.dataset.Dataset"),
364362
("py:class", "torch.nn.modules.module.T"),
365363
("py:class", "string"),
366364
("py:class", "Module"),
@@ -378,7 +376,6 @@ def reformat_md_section_links(file_path: Path):
378376
("py:attr", "strict"),
379377
("py:attr", "grad_output"),
380378
("py:attr", "requires_grad"),
381-
("py:attr", "device"),
382379
("py:attr", "non_blocking"),
383380
("py:attr", "dst_type"),
384381
("py:attr", "dtype"),
@@ -399,6 +396,10 @@ def reformat_md_section_links(file_path: Path):
399396
("py:class", "substrafl.algorithms.pytorch.torch_scaffold_algo.CUpdateRule"),
400397
]
401398

399+
nitpick_ignore_regex = [
400+
# Used to ignore a torch.nn.Parameter`s\n... as we cannot identify the exact content of it
401+
("py:class", r"torch.nn.Parameter(?s:.)*"),
402+
]
402403
# This must be the name of an image file (path relative to the configuration
403404
# directory) that is the favicon of the docs. Modern browsers use this as
404405
# the icon for tabs, windows and bookmarks. It should be a Windows-style

docs/source/examples/substra_core/diabetes_example/assets/functions/aggregation/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM python:3.12-slim
33

44
# install dependencies
5-
RUN pip3 install 'pandas<2.0' 'numpy<2.0' substratools
5+
RUN pip3 install pandas numpy substratools
66

77
# add your algorithm script to docker image
88
ADD federated_analytics_functions.py .

docs/source/examples/substra_core/diabetes_example/assets/functions/local_first_order_computation/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM python:3.12-slim
33

44
# install dependencies
5-
RUN pip3 install 'pandas<2.0' 'numpy<2.0' substratools
5+
RUN pip3 install pandas numpy substratools
66

77
# add your algorithm script to docker image
88
ADD federated_analytics_functions.py .

docs/source/examples/substra_core/diabetes_example/assets/functions/local_second_order_computation/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM python:3.12-slim
33

44
# install dependencies
5-
RUN pip3 install 'pandas<2.0' 'numpy<2.0' substratools
5+
RUN pip3 install pandas numpy substratools
66

77
# add your algorithm script to docker image
88
ADD federated_analytics_functions.py .
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
matplotlib==3.6.3
2-
scikit-learn==1.5.0
1+
matplotlib==3.9.2
2+
scikit-learn==1.5.2
33
pandas==2.2.2
44
substra
55
substratools

docs/source/examples/substra_core/titanic_example/assets/function_random_forest/predict/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM python:3.12-slim
33

44
# install dependencies
5-
RUN pip3 install pandas 'numpy<2.0' 'scikit-learn==1.5.0' substratools
5+
RUN pip3 install pandas numpy 'scikit-learn==1.5.2' substratools
66

77
# add your function script to docker image
88
ADD titanic_function_rf.py .

docs/source/examples/substra_core/titanic_example/assets/function_random_forest/train/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM python:3.12-slim
33

44
# install dependencies
5-
RUN pip3 install pandas 'numpy<2.0' 'scikit-learn==1.5.0' substratools
5+
RUN pip3 install pandas numpy 'scikit-learn==1.5.2' substratools
66

77
# add your function script to docker image
88
ADD titanic_function_rf.py .

docs/source/examples/substra_core/titanic_example/assets/metric/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM python:3.12-slim
33

44
# install dependencies
5-
RUN pip3 install pandas 'numpy<2.0' 'scikit-learn==1.5.0' substratools
5+
RUN pip3 install pandas numpy 'scikit-learn==1.5.2' substratools
66

77
# add your metrics script to docker image
88
ADD titanic_metrics.py .
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
matplotlib==3.6.3
2-
scikit-learn==1.5.0
1+
matplotlib==3.9.2
2+
scikit-learn==1.5.2
33
pandas==2.2.2
44
substra
55
substratools

0 commit comments

Comments
 (0)