MEDfl 0.1.23__py3-none-any.whl → 0.1.24__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/LearningManager/utils.py +1 -1
- {Medfl-0.1.23.dist-info → Medfl-0.1.24.dist-info}/METADATA +2 -2
- {Medfl-0.1.23.dist-info → Medfl-0.1.24.dist-info}/RECORD +8 -8
- scripts/base.py +1 -1
- scripts/create_db.py +8 -9
- {Medfl-0.1.23.data → Medfl-0.1.24.data}/scripts/setup_mysql.sh +0 -0
- {Medfl-0.1.23.dist-info → Medfl-0.1.24.dist-info}/WHEEL +0 -0
- {Medfl-0.1.23.dist-info → Medfl-0.1.24.dist-info}/top_level.txt +0 -0
Medfl/LearningManager/utils.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: Medfl
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.24
|
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
|
@@ -75,7 +75,7 @@ cd MEDfl
|
|
75
75
|
pip install -e .
|
76
76
|
```
|
77
77
|
### MySQL DB configuration
|
78
|
-
MEDfl requires a MySQL DB connection, and this is in order to allow users to work with their own tabular datasets, we have created a bash script to install and configure A MySQL DB with phpmyadmin monitoring system, run the following command then change your credential on the MEDfl/scripts/base.py and MEDfl/scripts/
|
78
|
+
MEDfl requires a MySQL DB connection, and this is in order to allow users to work with their own tabular datasets, we have created a bash script to install and configure A MySQL DB with phpmyadmin monitoring system, run the following command then change your credential on the MEDfl/scripts/base.py and MEDfl/scripts/db_config.ini files
|
79
79
|
```
|
80
80
|
sudo bash MEDfl/scripts/setup_mysql.sh
|
81
81
|
```
|
@@ -10,7 +10,7 @@ Medfl/LearningManager/params_optimiser.py,sha256=Pg_I5n_sPz-7ZqOsJGmnVM9ye7c5aPp
|
|
10
10
|
Medfl/LearningManager/plot.py,sha256=iPqMV9rVd7hquoFixDL20OzXI5bMpBW41bkVmTKIWtE,7927
|
11
11
|
Medfl/LearningManager/server.py,sha256=iQYiWFWMh9FdyQfNoAGYZ7l67fY4lB0dwICgnDXPOlA,7205
|
12
12
|
Medfl/LearningManager/strategy.py,sha256=n0asQajkHfGLDX3QbbV5qntQA-xuJZU8Z92XccZENsA,3517
|
13
|
-
Medfl/LearningManager/utils.py,sha256=
|
13
|
+
Medfl/LearningManager/utils.py,sha256=7iJiA-v7mM4SuvvwxA9oAP8i15MvNpkMyCv6uC6lLoQ,9342
|
14
14
|
Medfl/NetManager/__init__.py,sha256=htCEy8g7lrKKeZJ-cH9-YCTyWfIOLwKtoj_dlNasOuM,246
|
15
15
|
Medfl/NetManager/database_connector.py,sha256=rooasWBSNtZZmqQvLPS0IimHQqWeCMyyGFRFzNM8Dlw,1538
|
16
16
|
Medfl/NetManager/dataset.py,sha256=NpbmfSKJdtqIsShvjsb_z8W1vqlpYoFyZp8Wzsx_aEc,2869
|
@@ -19,14 +19,14 @@ Medfl/NetManager/net_helper.py,sha256=VYJPVI65wo34X9GO9t1joNGPr3TutZdxfva-X6P3MS
|
|
19
19
|
Medfl/NetManager/net_manager_queries.py,sha256=2dfhba0iuh40kVoC7am-vC4Hlrvr-zfJ5ESymsI1Kps,4327
|
20
20
|
Medfl/NetManager/network.py,sha256=m6TOnzVCWOJME6fUUZ25ZpQedDeRn4O-tdE5HPVqOvw,5519
|
21
21
|
Medfl/NetManager/node.py,sha256=Mua63zKs865bSu3QKfLJx7pxYdEXpPxDSCMRhDYNhms,6475
|
22
|
-
Medfl-0.1.
|
22
|
+
Medfl-0.1.24.data/scripts/setup_mysql.sh,sha256=PXl271yvYBrXwrZ7P0tsYHnGkOubKvRaFee4MnzsSko,560
|
23
23
|
alembic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
24
|
alembic/env.py,sha256=a4zJAzPNLHnIrUlXCqf_8vuAlFu0pceFJJKM1PQaOI4,1649
|
25
25
|
scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
26
|
-
scripts/base.py,sha256=
|
26
|
+
scripts/base.py,sha256=pR7StIt3PpX30aoh53gMkpeNJMHytAPhdc7N09tCITA,781
|
27
27
|
scripts/config.ini,sha256=tDQQlpwZbCFQuSS017yjEiLglLihp6wETbWtNrSWeAA,82
|
28
|
-
scripts/create_db.py,sha256=
|
29
|
-
Medfl-0.1.
|
30
|
-
Medfl-0.1.
|
31
|
-
Medfl-0.1.
|
32
|
-
Medfl-0.1.
|
28
|
+
scripts/create_db.py,sha256=0bn5bBOl6FOKKKX0FPb6jwcbbWX9ScaOtL_HlpXHOME,4464
|
29
|
+
Medfl-0.1.24.dist-info/METADATA,sha256=KtN26Rxa1kwsDLpVbxYXkt_yoBnlJ1nJmpNjMV6agcg,5580
|
30
|
+
Medfl-0.1.24.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
31
|
+
Medfl-0.1.24.dist-info/top_level.txt,sha256=CmLt1TC7PJj-V55rhffMZ9LSOiuSaaEbz9FJm_zOw_E,22
|
32
|
+
Medfl-0.1.24.dist-info/RECORD,,
|
scripts/base.py
CHANGED
@@ -9,7 +9,7 @@ import os
|
|
9
9
|
current_directory = os.path.dirname(os.path.abspath(__file__))
|
10
10
|
|
11
11
|
# Load configuration from the config file
|
12
|
-
config_file_path = os.path.join(current_directory, '
|
12
|
+
config_file_path = os.path.join(current_directory, 'db_config.ini')
|
13
13
|
|
14
14
|
config = ConfigParser()
|
15
15
|
config.read(config_file_path)
|
scripts/create_db.py
CHANGED
@@ -6,22 +6,21 @@ from mysql.connector import Error
|
|
6
6
|
from configparser import ConfigParser
|
7
7
|
import os
|
8
8
|
|
9
|
-
from Medfl.LearningManager.utils import load_db_config
|
10
|
-
|
11
9
|
def main(csv_file_path):
|
12
10
|
try:
|
13
|
-
|
14
|
-
|
15
|
-
|
11
|
+
# Get the directory of the current script
|
12
|
+
current_directory = os.path.dirname(os.path.abspath(__file__))
|
13
|
+
|
14
|
+
# Load configuration from the config file
|
15
|
+
config_file_path = os.path.join(current_directory, 'db_config.ini')
|
16
16
|
|
17
|
-
|
17
|
+
config = ConfigParser()
|
18
|
+
config.read(config_file_path)
|
19
|
+
mysql_config = config['mysql']
|
18
20
|
|
19
21
|
mydb = mysql.connector.connect(host=mysql_config['host'], user=mysql_config['user'], password=mysql_config['password'])
|
20
22
|
mycursor = mydb.cursor()
|
21
23
|
|
22
|
-
print('Step 2')
|
23
|
-
|
24
|
-
|
25
24
|
# Create the 'MEDfl' database if it doesn't exist
|
26
25
|
mycursor.execute("CREATE DATABASE IF NOT EXISTS MEDfl")
|
27
26
|
|
File without changes
|
File without changes
|
File without changes
|