MEDfl 2.0.5.dev4__py3-none-any.whl → 2.0.5.dev7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- MEDfl/NetManager/database_connector.py +1 -0
- MEDfl/rw/client.py +29 -0
- {medfl-2.0.5.dev4.dist-info → medfl-2.0.5.dev7.dist-info}/METADATA +4 -4
- {medfl-2.0.5.dev4.dist-info → medfl-2.0.5.dev7.dist-info}/RECORD +7 -7
- {medfl-2.0.5.dev4.dist-info → medfl-2.0.5.dev7.dist-info}/WHEEL +0 -0
- {medfl-2.0.5.dev4.dist-info → medfl-2.0.5.dev7.dist-info}/licenses/LICENSE +0 -0
- {medfl-2.0.5.dev4.dist-info → medfl-2.0.5.dev7.dist-info}/top_level.txt +0 -0
MEDfl/rw/client.py
CHANGED
|
@@ -47,6 +47,35 @@ class DPConfig:
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
class FlowerClient(fl.client.NumPyClient):
|
|
50
|
+
"""
|
|
51
|
+
Federated learning client for MEDfl real-world pipelines.
|
|
52
|
+
|
|
53
|
+
This client:
|
|
54
|
+
- connects to a Flower server,
|
|
55
|
+
- loads local CSV data,
|
|
56
|
+
- applies server-provided schema (features/target),
|
|
57
|
+
- handles train/val/test splits (fractions or test_ids),
|
|
58
|
+
- optionally enables differential privacy with Opacus.
|
|
59
|
+
|
|
60
|
+
Parameters
|
|
61
|
+
----------
|
|
62
|
+
server_address : str
|
|
63
|
+
Address of the Flower server, e.g. ``"127.0.0.1:8080"``.
|
|
64
|
+
data_path : str, optional
|
|
65
|
+
Path to the local CSV file. Default is ``"data/data.csv"``.
|
|
66
|
+
dp_config : DPConfig, optional
|
|
67
|
+
Differential privacy configuration. If ``None``, DP is disabled.
|
|
68
|
+
val_frac : float, optional
|
|
69
|
+
Client-side validation fraction override. If ``None``, use server value.
|
|
70
|
+
test_frac : float, optional
|
|
71
|
+
Client-side test fraction override. If ``None``, use server value.
|
|
72
|
+
id_col : str, optional
|
|
73
|
+
Name of the ID column used when selecting test samples via ``test_ids``.
|
|
74
|
+
test_ids : str, optional
|
|
75
|
+
Comma-separated list of IDs (or line numbers) to use as test set.
|
|
76
|
+
seed : int, optional
|
|
77
|
+
Random seed used for splits. Default is ``42``.
|
|
78
|
+
"""
|
|
50
79
|
def __init__(
|
|
51
80
|
self,
|
|
52
81
|
server_address,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
|
-
Name:
|
|
3
|
-
Version: 2.0.5.
|
|
2
|
+
Name: medfl
|
|
3
|
+
Version: 2.0.5.dev7
|
|
4
4
|
Summary: Python Open-source package for simulating federated learning and differential privacy
|
|
5
5
|
Home-page: https://github.com/MEDomics-UdeS/MEDfl
|
|
6
6
|
Author: MEDomics consortium
|
|
@@ -14,7 +14,7 @@ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
|
14
14
|
Classifier: License :: OSI Approved :: MIT License
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.8
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.9
|
|
17
|
-
Requires-Python: >=3.8,<3.
|
|
17
|
+
Requires-Python: >=3.8,<3.15
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
License-File: LICENSE
|
|
20
20
|
Requires-Dist: flwr~=1.18.0
|
|
@@ -28,7 +28,7 @@ Requires-Dist: Sphinx~=5.3.0
|
|
|
28
28
|
Requires-Dist: SQLAlchemy~=1.4.47
|
|
29
29
|
Requires-Dist: torch>=2.7.0
|
|
30
30
|
Requires-Dist: datetime~=5.1
|
|
31
|
-
Requires-Dist: scikit-learn~=1.
|
|
31
|
+
Requires-Dist: scikit-learn~=1.8.0
|
|
32
32
|
Requires-Dist: sphinx-jsonschema==1.19.1
|
|
33
33
|
Requires-Dist: sphinx-rtd-dark-mode==1.2.4
|
|
34
34
|
Requires-Dist: plotly==5.19.0
|
|
@@ -12,7 +12,7 @@ MEDfl/LearningManager/server.py,sha256=oTgW3K1UT6m4SQBk23FIf23km_BDq9vvjeC6OgY8D
|
|
|
12
12
|
MEDfl/LearningManager/strategy.py,sha256=BHXpwmt7jx07y45YLUs8FZry2gYQbpiV4vNbHhsksQ4,3435
|
|
13
13
|
MEDfl/LearningManager/utils.py,sha256=zk84uKR_iSsoz1uvKD-l4_jJWV3_5pfUWMIeLNcT1mU,9621
|
|
14
14
|
MEDfl/NetManager/__init__.py,sha256=OpgsIiBg7UA6Bfnu_kqGfEPxU8JfpPxSFU98TOeDTP0,273
|
|
15
|
-
MEDfl/NetManager/database_connector.py,sha256=
|
|
15
|
+
MEDfl/NetManager/database_connector.py,sha256=PZEAesMR-k9jSuthx4wOTkMzUWB3INODOrhQgpMO0kY,1554
|
|
16
16
|
MEDfl/NetManager/dataset.py,sha256=HTV0jrJ4Qlhl2aSJzdFU1lkxGBKtmJ390eBpwfKf_4o,2777
|
|
17
17
|
MEDfl/NetManager/flsetup.py,sha256=CVu_TIU7l3G6DDnwtY6JURbhIZk7gKC3unqWnU-YtlM,11434
|
|
18
18
|
MEDfl/NetManager/net_helper.py,sha256=tyfxmpbleSdfPfo2ezKT0VOvZu660v9nhBuHCpl8pG4,6812
|
|
@@ -20,7 +20,7 @@ MEDfl/NetManager/net_manager_queries.py,sha256=j-CLQPjtTLyZuFPhIcwJStD7L7xtZpkmk
|
|
|
20
20
|
MEDfl/NetManager/network.py,sha256=5t705fzWc-BRg-QPAbAcDv5ckDGzsPwj_Q5V0iTgkx0,6829
|
|
21
21
|
MEDfl/NetManager/node.py,sha256=t90QuYZ8M1X_AG1bwTta0CnlOuodqkmpVda2K7NOgHc,6542
|
|
22
22
|
MEDfl/rw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
|
-
MEDfl/rw/client.py,sha256=
|
|
23
|
+
MEDfl/rw/client.py,sha256=K0cMd0GuEWX5m11fzgEkdD2JCmY2ZVThSZr0K8dCQXM,18676
|
|
24
24
|
MEDfl/rw/model.py,sha256=IvC5a1ADyn7mKeSBq1Lk_UnkSJOCErPCmpEPSOFxHpk,5343
|
|
25
25
|
MEDfl/rw/server.py,sha256=JBNSSX8tihrLIjgDTrGfmsXXOq_00gtS0s9qCgbqrHY,4834
|
|
26
26
|
MEDfl/rw/strategy.py,sha256=uQvd9lS_PZc234ghBKvrhwdc7ooztHzewuvwpWzBsJ8,13206
|
|
@@ -29,8 +29,8 @@ MEDfl/scripts/base.py,sha256=QrmG7gkiPYkAy-5tXxJgJmOSLGAKeIVH6i0jq7G9xnA,752
|
|
|
29
29
|
MEDfl/scripts/create_db.py,sha256=MnFtZkTueRZ-3qXPNX4JsXjOKj-4mlkxoRhSFdRcvJw,3817
|
|
30
30
|
alembic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
31
31
|
alembic/env.py,sha256=-aSZ6SlJeK1ZeqHgM-54hOi9LhJRFP0SZGjut-JnY-4,1588
|
|
32
|
-
medfl-2.0.5.
|
|
33
|
-
medfl-2.0.5.
|
|
34
|
-
medfl-2.0.5.
|
|
35
|
-
medfl-2.0.5.
|
|
36
|
-
medfl-2.0.5.
|
|
32
|
+
medfl-2.0.5.dev7.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
33
|
+
medfl-2.0.5.dev7.dist-info/METADATA,sha256=nf_bQVW2AskphqeNo_3jO5aUIBauMgfvPvfTww5WOcI,6914
|
|
34
|
+
medfl-2.0.5.dev7.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
|
|
35
|
+
medfl-2.0.5.dev7.dist-info/top_level.txt,sha256=dIL9X8HOFuaVSzpg40DVveDPrymWRoShHtspH7kkjdI,14
|
|
36
|
+
medfl-2.0.5.dev7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|