Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SMART
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UNI-KLU
SMART
Commits
3928da1c
Commit
3928da1c
authored
Oct 07, 2021
by
Bogdan Mihai (ARTICONF student)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Redeploying Fed Learning MS
parent
3bcce6dc
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
133 additions
and
6 deletions
+133
-6
swagger_local.yml
...rated-learning-microservice/app/configs/swagger_local.yml
+1
-1
main.py
...icipation-hub/federated-learning-microservice/app/main.py
+1
-1
owners.py
...-hub/federated-learning-microservice/app/routes/owners.py
+2
-2
users.py
...n-hub/federated-learning-microservice/app/routes/users.py
+1
-1
log.txt
tools/federated-training/app/log.txt
+0
-0
last_model
...erated-training/app/processing/text_processing/last_model
+0
-0
ledger.csv
...erated-training/app/processing/text_processing/ledger.csv
+4
-0
requirements.txt
tools/federated-training/app/requirements.txt
+2
-0
requirements2.txt
tools/federated-training/app/requirements2.txt
+121
-0
startup.py
tools/federated-training/app/startup.py
+1
-1
No files found.
src/participation-hub/federated-learning-microservice/app/configs/swagger_local.yml
View file @
3928da1c
swagger
:
"
2.0"
info
:
title
:
Business Logic m
icroservice
title
:
Federated Learning M
icroservice
description
:
This is the documentation for the business logic microservice.
version
:
"
1.0.0"
...
...
src/participation-hub/federated-learning-microservice/app/main.py
View file @
3928da1c
...
...
@@ -35,4 +35,4 @@ else:
# start app
if
__name__
==
'__main__'
:
app
.
run
(
host
=
'0.0.0.0'
,
port
=
5000
,
debug
=
False
)
#
, ssl_context=context) #<-- IF running locally comment ss_context
app
.
run
(
host
=
'0.0.0.0'
,
port
=
5000
,
debug
=
False
,
ssl_context
=
context
)
#<-- IF running locally comment ss_context
src/participation-hub/federated-learning-microservice/app/routes/owners.py
View file @
3928da1c
...
...
@@ -9,7 +9,7 @@ import network_constants
def
last
(
use_case
:
str
):
#FORWARD TO GPU SERVER WITH IP AND POR
url
=
f
'http
s
://{network_constants.FEDERATED_TRAINING_HOSTNAME}:{network_constants.FEDERATED_TRAINING_REST_PORT}/api/Owners/use_case/{use_case}/last_train:'
url
=
f
'http://{network_constants.FEDERATED_TRAINING_HOSTNAME}:{network_constants.FEDERATED_TRAINING_REST_PORT}/api/Owners/use_case/{use_case}/last_train:'
response
=
requests
.
get
(
url
,
verify
=
False
,
...
...
@@ -24,7 +24,7 @@ def upload_and_train(use_case: str):
#TODO FORWARD FILES, for some reason the files are received in this microservice (Federated-LEARNING), but after forwarding they are empty in Federated-TRAINING
file_dict
=
request
.
files
url
=
f
'http
s
://{network_constants.FEDERATED_TRAINING_HOSTNAME}:{network_constants.FEDERATED_TRAINING_REST_PORT}/api/Owners/use_cases/{use_case}/upload_and_train:'
url
=
f
'http://{network_constants.FEDERATED_TRAINING_HOSTNAME}:{network_constants.FEDERATED_TRAINING_REST_PORT}/api/Owners/use_cases/{use_case}/upload_and_train:'
response
=
requests
.
post
(
url
,
verify
=
False
,
...
...
src/participation-hub/federated-learning-microservice/app/routes/users.py
View file @
3928da1c
...
...
@@ -9,7 +9,7 @@ import json
def
check_article
(
use_case
:
str
,
data_entry
:
str
):
#FORWARD TO GPU SERVER WITH IP AND PORT
url
=
f
'http
s
://{network_constants.FEDERATED_TRAINING_HOSTNAME}:{network_constants.FEDERATED_TRAINING_REST_PORT}/api/Users/use_case/{use_case}/data_entry/{data_entry}/check_article:'
url
=
f
'http://{network_constants.FEDERATED_TRAINING_HOSTNAME}:{network_constants.FEDERATED_TRAINING_REST_PORT}/api/Users/use_case/{use_case}/data_entry/{data_entry}/check_article:'
#url = "google.com"#API ENDPOINT WITH IP AND PORT OF GPU SERVER
response
=
requests
.
get
(
url
,
...
...
tools/federated-training/app/log.txt
0 → 100644
View file @
3928da1c
File added
tools/federated-training/app/processing/text_processing/last_model
View file @
3928da1c
No preview for this file type
tools/federated-training/app/processing/text_processing/ledger.csv
View file @
3928da1c
...
...
@@ -17,3 +17,7 @@ Trainer_id,Model_id,Dataset_id,Accuracy,Loss
3,1624889350,1624889350,0.5,nan
3,1624890858,1624890858,0.75,nan
3,1624891629,1624891629,0.75,nan
3,1633515464,1633515464,0.75,nan
3,1633518451,1633518451,0.25,nan
4,1633525163,1633525163,0.75,nan
4,1633528455,1633528455,0.5,nan
tools/federated-training/app/requirements.txt
View file @
3928da1c
...
...
@@ -21,6 +21,7 @@ jsonschema==3.2.0
lazy-object-proxy==1.4.3
MarkupSafe==1.1.1
mccabe==0.6.1
numpy==1.18.5
openapi-spec-validator==0.2.9
pandas==1.2.4
prance==0.19.0
...
...
@@ -34,6 +35,7 @@ requests==2.24.0
rope==0.17.0
semver==2.10.2
six==1.15.0
sklearn==0.0
swagger-ui-bundle==0.0.8
tensorflow==2.3.0
tensorflow-federated==0.17.0
...
...
tools/federated-training/app/requirements2.txt
0 → 100644
View file @
3928da1c
absl-py==0.9.0
astroid==2.4.2
astunparse==1.6.3
attrs==19.3.0
autopep8==1.5.4
beautifulsoup4==4.9.3
blinker==1.4
brotlipy==0.7.0
bs4==0.0.1
cachetools==3.1.1
certifi==2020.6.20
cffi @ file:///tmp/build/80754af9/cffi_1598370769933/work
chardet==3.0.4
click==7.1.2
clickclick==1.2.2
colorama==0.4.3
connexion==2.7.0
coverage==5.3.1
cryptography @ file:///tmp/build/80754af9/cryptography_1598892038851/work
cycler==0.10.0
dm-tree==0.1.6
Flask==1.1.2
gast==0.3.3
google-auth @ file:///tmp/build/80754af9/google-auth_1598987460909/work
google-auth-oauthlib==0.4.1
google-pasta==0.2.0
grpcio==1.29.0
h5py @ file:///tmp/build/80754af9/h5py_1593454122442/work
idna @ file:///tmp/build/80754af9/idna_1593446292537/work
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1593446406207/work
inflection==0.5.0
isodate==0.6.0
isort==4.3.21
itsdangerous==1.1.0
jedi==0.17.0
Jinja2==2.11.2
joblib==1.0.1
jsonschema==3.2.0
Keras==2.4.3
Keras-Preprocessing==1.1.2
kiwisolver==1.3.1
lazy-object-proxy==1.4.3
Markdown @ file:///tmp/build/80754af9/markdown_1597433240441/work
MarkupSafe==1.1.1
matplotlib==3.4.1
mccabe==0.6.1
mkl-fft==1.3.0
mkl-random==1.2.2
mkl-service==2.4.0
mpmath==1.2.1
nest-asyncio==1.5.1
nltk==3.6.2
numpy==1.18.5
oauthlib==3.1.0
olefile==0.46
openapi-schema-validator==0.1.5
openapi-spec-validator==0.2.9
opt-einsum==3.1.0
pandas==1.2.4
pickleshare==0.7.5
Pillow==8.3.2
portpicker==1.3.1
prance==0.19.0
prompt-toolkit==3.0.20
protobuf==3.12.4
ptyprocess==0.7.0
pyasn1==0.4.8
pyasn1-modules==0.2.7
pycodestyle==2.6.0
pycparser==2.20
Pygments==2.10.0
PyJWT==1.7.1
pylint==2.5.3
pymongo==3.11.0
pyOpenSSL==19.1.0
pyparsing==2.4.7
pyrsistent==0.16.0
PySocks==1.7.1
python-dateutil @ file:///home/ktietz/src/ci/python-dateutil_1611928101742/work
pytz==2021.1
PyYAML==5.3.1
pyzmq==20.0.0
regex==2021.4.4
requests @ file:///tmp/build/80754af9/requests_1592841827918/work
requests-oauthlib==1.3.0
retrying==1.3.3
rope==0.17.0
rsa @ file:///tmp/build/80754af9/rsa_1596998415516/work
scikit-learn==0.24.2
scipy==1.4.1
seaborn==0.11.1
semantic-version==2.8.5
semver==2.10.2
six==1.15.0
sklearn==0.0
soupsieve==2.2.1
swagger-ui-bundle==0.0.8
tensorboard==2.4.1
tensorboard-plugin-wit==1.6.0.post2
tensorflow==2.3.0
tensorflow-addons==0.11.2
tensorflow-estimator==2.3.0
tensorflow-federated==0.17.0
tensorflow-model-optimization==0.4.1
tensorflow-privacy==0.5.2
termcolor==1.1.0
threadpoolctl==2.1.0
toml==0.10.1
torch==1.6.0
torchvision==0.7.0
tornado==6.1
tqdm==4.60.0
traitlets==5.1.0
typed-ast==1.4.1
typeguard==2.12.0
urllib3==1.21.1
wcwidth==0.2.5
Werkzeug==1.0.1
wordcloud==1.8.1
wrapt==1.12.1
zipp==3.1.0
tools/federated-training/app/startup.py
View file @
3928da1c
/
home
/
itec
/
bogdan
/
Articonf
/
smart
/
tools
/
federated
-
training
/
app
/
venv
/
bin
/
python3
/
home
/
itec
/
bogdan
/
Articonf
/
smart
/
tools
/
federated
-
training
/
app
/
print_test
.
py
\ No newline at end of file
/
home
/
itec
/
bogdan
/
Articonf
/
smart
/
tools
/
federated
-
training
/
app
/
venv
/
bin
/
python3
/
home
/
itec
/
bogdan
/
Articonf
/
smart
/
tools
/
federated
-
training
/
app
/
main
.
py
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment