MEDfl 0.1.19__py3-none-any.whl → 0.1.20__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/network.py +1 -1
- Medfl/NetManager/node.py +5 -8
- {Medfl-0.1.19.dist-info → Medfl-0.1.20.dist-info}/METADATA +1 -1
- {Medfl-0.1.19.dist-info → Medfl-0.1.20.dist-info}/RECORD +7 -7
- {Medfl-0.1.19.data → Medfl-0.1.20.data}/scripts/setup_mysql.sh +0 -0
- {Medfl-0.1.19.dist-info → Medfl-0.1.20.dist-info}/WHEEL +0 -0
- {Medfl-0.1.19.dist-info → Medfl-0.1.20.dist-info}/top_level.txt +0 -0
Medfl/NetManager/network.py
CHANGED
Medfl/NetManager/node.py
CHANGED
@@ -3,7 +3,7 @@ import pandas as pd
|
|
3
3
|
from .net_helper import *
|
4
4
|
from .net_manager_queries import *
|
5
5
|
from Medfl.LearningManager.utils import params
|
6
|
-
|
6
|
+
from Medfl.NetManager.database_connector import DatabaseManager
|
7
7
|
|
8
8
|
class Node:
|
9
9
|
"""
|
@@ -29,9 +29,10 @@ class Node:
|
|
29
29
|
self.name = name
|
30
30
|
self.train = train
|
31
31
|
self.test_fraction = 1.0 if self.train == 0 else test_fraction
|
32
|
+
|
32
33
|
|
33
|
-
db_manager = DatabaseManager()
|
34
|
-
db_manager.connect()
|
34
|
+
db_manager = DatabaseManager() ;
|
35
|
+
db_manager.connect() ;
|
35
36
|
self.engine = db_manager.get_connection()
|
36
37
|
|
37
38
|
def validate(self):
|
@@ -168,7 +169,7 @@ class Node:
|
|
168
169
|
|
169
170
|
"""
|
170
171
|
return pd.read_sql(
|
171
|
-
text(SELECT_ALL_DATASETS_QUERY.format(self.name)),
|
172
|
+
text(SELECT_ALL_DATASETS_QUERY.format(self.name)), my_eng
|
172
173
|
)
|
173
174
|
|
174
175
|
@staticmethod
|
@@ -178,10 +179,6 @@ class Node:
|
|
178
179
|
DataFrame: A DataFrame containing information about all nodes in the database.
|
179
180
|
|
180
181
|
"""
|
181
|
-
db_manager = DatabaseManager() ;
|
182
|
-
db_manager.connect() ;
|
183
|
-
my_eng = db_manager.get_connection()
|
184
|
-
|
185
182
|
query = text(SELECT_ALL_NODES_QUERY)
|
186
183
|
res = pd.read_sql(query, my_eng)
|
187
184
|
return res
|
@@ -17,16 +17,16 @@ Medfl/NetManager/dataset.py,sha256=NpbmfSKJdtqIsShvjsb_z8W1vqlpYoFyZp8Wzsx_aEc,2
|
|
17
17
|
Medfl/NetManager/flsetup.py,sha256=IPWdZcz13PZic5OQyCiMyJ34cQPegKwkKEJSAqjjnqg,11754
|
18
18
|
Medfl/NetManager/net_helper.py,sha256=VYJPVI65wo34X9GO9t1joNGPr3TutZdxfva-X6P3MSU,7017
|
19
19
|
Medfl/NetManager/net_manager_queries.py,sha256=2dfhba0iuh40kVoC7am-vC4Hlrvr-zfJ5ESymsI1Kps,4327
|
20
|
-
Medfl/NetManager/network.py,sha256=
|
21
|
-
Medfl/NetManager/node.py,sha256=
|
22
|
-
Medfl-0.1.
|
20
|
+
Medfl/NetManager/network.py,sha256=m6TOnzVCWOJME6fUUZ25ZpQedDeRn4O-tdE5HPVqOvw,5519
|
21
|
+
Medfl/NetManager/node.py,sha256=Mua63zKs865bSu3QKfLJx7pxYdEXpPxDSCMRhDYNhms,6475
|
22
|
+
Medfl-0.1.20.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
26
|
scripts/base.py,sha256=B0KKbl9Czh4HhExmO41tdbI2-g1OyiW2ArYhLYgKNEw,778
|
27
27
|
scripts/config.ini,sha256=tDQQlpwZbCFQuSS017yjEiLglLihp6wETbWtNrSWeAA,82
|
28
28
|
scripts/create_db.py,sha256=ZoQeXIPRBxpcMX6wgQSUKCHzxg3kixzBz0ysTGpAejs,4461
|
29
|
-
Medfl-0.1.
|
30
|
-
Medfl-0.1.
|
31
|
-
Medfl-0.1.
|
32
|
-
Medfl-0.1.
|
29
|
+
Medfl-0.1.20.dist-info/METADATA,sha256=e0jhrYrYjBRjs_cGwlnbE_gjcEkhfPUAqutdXzkKldc,5577
|
30
|
+
Medfl-0.1.20.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
31
|
+
Medfl-0.1.20.dist-info/top_level.txt,sha256=CmLt1TC7PJj-V55rhffMZ9LSOiuSaaEbz9FJm_zOw_E,22
|
32
|
+
Medfl-0.1.20.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|