Redeploying Fed Learning MS

parent 3bcce6dc
swagger: "2.0"
info:
title: Business Logic microservice
title: Federated Learning Microservice
description: This is the documentation for the business logic microservice.
version: "1.0.0"
......
......@@ -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
......@@ -9,7 +9,7 @@ import network_constants
def last(use_case: str):
#FORWARD TO GPU SERVER WITH IP AND POR
url = f'https://{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'https://{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,
......
......@@ -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'https://{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,
......
......@@ -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
......@@ -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
......
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
/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment