MEDfl 0.1.4__py3-none-any.whl → 0.1.6__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.
@@ -1,13 +1,13 @@
1
- # Medfl/LearningManager/__init__.py
1
+ # # Medfl/LearningManager/__init__.py
2
2
 
3
- # Import modules from this package
4
- from .client import *
5
- from .dynamicModal import *
6
- from .flpipeline import *
7
- from .federated_dataset import *
8
- from .model import *
9
- from .params_optimiser import *
10
- from .plot import *
11
- from .server import *
12
- from .strategy import *
13
- from .utils import *
3
+ # # Import modules from this package
4
+ # from .client import *
5
+ # from .dynamicModal import *
6
+ # from .flpipeline import *
7
+ # from .federated_dataset import *
8
+ # from .model import *
9
+ # from .params_optimiser import *
10
+ # from .plot import *
11
+ # from .server import *
12
+ # from .strategy import *
13
+ # from .utils import *
@@ -10,7 +10,7 @@ import optuna
10
10
 
11
11
 
12
12
 
13
- class Strategy:
13
+ class Strategy:
14
14
  """
15
15
  A class representing a strategy for Federated Learning.
16
16
 
@@ -1,9 +1,9 @@
1
- # Medfl/NetworkManager/__init__.py
1
+ # # Medfl/NetworkManager/__init__.py
2
2
 
3
- # Import modules from this package
4
- from .dataset import *
5
- from .flsetup import *
6
- from .net_helper import *
7
- from .net_manager_queries import *
8
- from .network import *
9
- from .node import *
3
+ # # Import modules from this package
4
+ # from .dataset import *
5
+ # from .flsetup import *
6
+ # from .net_helper import *
7
+ # from .net_manager_queries import *
8
+ # from .network import *
9
+ # from .node import *
File without changes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Medfl
3
- Version: 0.1.4
3
+ Version: 0.1.6
4
4
  Summary: Python Open-source package for simulating federated learning and differential privacy
5
5
  Home-page: https://github.com/HaithemLamri/MEDfl
6
6
  Author: MEDomics consortium
@@ -33,6 +33,7 @@ Requires-Dist: sphinx-rtd-dark-mode ==1.2.4
33
33
  Requires-Dist: plotly ==5.19.0
34
34
  Requires-Dist: optuna ==3.5.0
35
35
  Requires-Dist: mysql
36
+ Requires-Dist: mysql-connector-python
36
37
 
37
38
  # MEDfl : Federated Learning and Differential Privacy Simulation Tool for Tabular Data
38
39
  ![Python Versions](https://img.shields.io/badge/python-3.9-blue)
@@ -1,5 +1,5 @@
1
1
  Medfl/__init__.py,sha256=iJB4XxXxnyh_pnLFKAz3USENmFuMIuEwbLTKDiZqL3M,56
2
- Medfl/LearningManager/__init__.py,sha256=ZLYv8hF2Jz0JEwdlrvgwsOC_67x-mQ_cJ7aCdrtW-ow,321
2
+ Medfl/LearningManager/__init__.py,sha256=iW5z0BKFCW8ctIwFxmdTBDK2SIM0chTO39j4Tmf69KE,345
3
3
  Medfl/LearningManager/client.py,sha256=t3fQ8SugGSYJ1cqN9vfB-KWj-wzHiqPLuCFkJVl0RY8,5933
4
4
  Medfl/LearningManager/dynamicModal.py,sha256=q8u7xPpj_TdZnSr8kYj0Xx7Sdz-diXsKBAfVce8-qSU,10534
5
5
  Medfl/LearningManager/federated_dataset.py,sha256=4ZnZA1YDx1JG51qE7CdlhwNQdKPxYX54iiMBRgp02dI,1925
@@ -8,22 +8,23 @@ Medfl/LearningManager/model.py,sha256=vp8FIMxBdz3FTF5wJaea2IO_WGeANLZgBxTKVe3gW3
8
8
  Medfl/LearningManager/params_optimiser.py,sha256=4uiR2ly9dsgJXjcsvX8hoxoUdTPaAvxI4k8MRgbHdgA,17618
9
9
  Medfl/LearningManager/plot.py,sha256=A6Z8wC8J-H-OmWBPKqwK5eiTB9vzOBGMaFv1SaNA9Js,7698
10
10
  Medfl/LearningManager/server.py,sha256=8AKBGYLC0PXa7jAoy29orixhgB9bF3q0TEQjxssDvow,7026
11
- Medfl/LearningManager/strategy.py,sha256=pPqhqMtv_ycPxyGbeH9UpvrTY7H5lOfeQckqiYTKHdM,3434
11
+ Medfl/LearningManager/strategy.py,sha256=BHXpwmt7jx07y45YLUs8FZry2gYQbpiV4vNbHhsksQ4,3435
12
12
  Medfl/LearningManager/utils.py,sha256=nZDelVsuyctrzjQIbIo057FwBaEpNrnUimMtZkw--wY,7389
13
- Medfl/NetManager/__init__.py,sha256=-1Ox7WSmMT1RAqjfbqT85GUqt3Bqq-iRvkNVCE9gmDc,221
13
+ Medfl/NetManager/__init__.py,sha256=sMmONAOCn9sEYnaeokXxfiBhTlkkivwo1frOiwzIY74,237
14
+ Medfl/NetManager/database_connector.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
15
  Medfl/NetManager/dataset.py,sha256=X5zzlWT7uWdsHkrTcSfJa_R6Z_uZwgjb1wQkpuog2z4,2691
15
16
  Medfl/NetManager/flsetup.py,sha256=eoJbQHV9RKvEog3jq8NlT-IsAoQli0EOFKpr7sZV0QE,11001
16
17
  Medfl/NetManager/net_helper.py,sha256=r4I3ZwhjEHweV5DaYc4lamucCe_OdB-gevteVeTiuiA,6108
17
18
  Medfl/NetManager/net_manager_queries.py,sha256=2jEIJ6qWLJv8AgusqTnRjJwq_keU6M3V0v09Azwf9fs,4190
18
19
  Medfl/NetManager/network.py,sha256=nRvdrNheE5gi84wNbVS09T1jMEq9YADYbV9M_DryP3A,5091
19
20
  Medfl/NetManager/node.py,sha256=c3DxcOXGfVmQvz-tzT2GKFWW7V2rcFuuw44uKOvdm_k,6153
20
- Medfl-0.1.4.data/scripts/setup_mysql.sh,sha256=r4ygRl7zdasUSZT-ccC1Tjtt6GKDS5Puza9hCec2Cns,538
21
+ Medfl-0.1.6.data/scripts/setup_mysql.sh,sha256=r4ygRl7zdasUSZT-ccC1Tjtt6GKDS5Puza9hCec2Cns,538
21
22
  alembic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
23
  alembic/env.py,sha256=-aSZ6SlJeK1ZeqHgM-54hOi9LhJRFP0SZGjut-JnY-4,1588
23
24
  scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
- scripts/base.py,sha256=xyiLkJ46nVrs3rNHP39LIH_03bmn5FU_gqpSTGJ_nVE,923
25
+ scripts/base.py,sha256=y9yQNC6PkqoEpdrzAW9Qgbc7EAW8yxIOPH2_hQiCdI0,749
25
26
  scripts/create_db.py,sha256=NYysjkiMWNjEawpOJL8iLAwNGUk4YITUMudiJgLQIGA,3364
26
- Medfl-0.1.4.dist-info/METADATA,sha256=eSK0g_9_z0TJYQsBURopolN1JijwgHJOdxsuPziOzak,5411
27
- Medfl-0.1.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
28
- Medfl-0.1.4.dist-info/top_level.txt,sha256=CmLt1TC7PJj-V55rhffMZ9LSOiuSaaEbz9FJm_zOw_E,22
29
- Medfl-0.1.4.dist-info/RECORD,,
27
+ Medfl-0.1.6.dist-info/METADATA,sha256=QN8i6QGLbB_Yq6eIfMYqz6j4C4q54-s3JFPP4DLEyXU,5449
28
+ Medfl-0.1.6.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
29
+ Medfl-0.1.6.dist-info/top_level.txt,sha256=CmLt1TC7PJj-V55rhffMZ9LSOiuSaaEbz9FJm_zOw_E,22
30
+ Medfl-0.1.6.dist-info/RECORD,,
scripts/base.py CHANGED
@@ -5,17 +5,14 @@ import yaml
5
5
  import pkg_resources
6
6
  import os
7
7
 
8
- # Load base_url from global_params.yaml
9
- parent_directory = os.path.abspath(os.path.join(pkg_resources.resource_filename(__name__, ''), '..'))
10
- global_params_path = os.path.join(parent_directory, 'global_params.yaml')
11
-
12
- with open(global_params_path, 'r') as file:
13
- params = yaml.safe_load(file)
14
- base_url = params['base_url']
8
+ # Get the directory of the current script
9
+ current_directory = os.path.dirname(os.path.abspath(__file__))
15
10
 
16
11
  # Load configuration from the config file
12
+ config_file_path = os.path.join(current_directory, 'config.ini')
13
+
17
14
  config = ConfigParser()
18
- config.read(base_url + '/scripts/config.ini')
15
+ config.read(config_file_path)
19
16
  mysql_config = config['mysql']
20
17
 
21
18
 
File without changes