This repository has been archived by the owner on Aug 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
2,054 additions
and
850 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Package release | ||
|
||
on: | ||
push: | ||
tags: | ||
- v[0-9]+.[0-9]+.[0-9]+ | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Python 3.6 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.6 | ||
|
||
- name: Cache pip packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pip | ||
key: pip-master-${{ hashFiles('setup.py') }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade setuptools | ||
pip install wheel twine | ||
- name: Create packages | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
- name: Output tag name | ||
id: get_tag_name | ||
run: echo ::set-output name=TAG_NAME::${GITHUB_REF/refs\/tags\//} | ||
|
||
- name: Upload packages | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: ${{ steps.get_tag_name.outputs.TAG_NAME }}-release | ||
path: dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
[settings] | ||
combine_as_imports=True | ||
force_grid_wrap=0 | ||
force_sort_within_sections=True | ||
include_trailing_comma=True | ||
indent=4 | ||
known_third_party=xain_proto,xain_sdk | ||
line_length=100 | ||
line_length=88 | ||
multi_line_output=3 | ||
use_parentheses=True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# An example configfiguration file. | ||
# The values that are used for the optional keys correspond to their default values. | ||
|
||
# (Optional) | ||
[server] | ||
# (Optional) Address to listen on for incoming gRPC connections | ||
host = "localhost" | ||
# (Optional) Port to listen on for incoming gRPC connections | ||
port = 50051 | ||
|
||
# (Optional) | ||
[server.grpc_options] | ||
# More information about all available gRPC options can be found here: | ||
# https://grpc.github.io/grpc/cpp/group__grpc__arg__keys.html#ga813f94f9ac3174571dd712c96cdbbdc1 | ||
|
||
# Example | ||
# Maximum message length that the channel can receive. -1 means unlimited. | ||
# "grpc.max_receive_message_length" = -1 | ||
|
||
# (Required) | ||
[ai] | ||
# (Required) Number of global rounds the model is going to be trained for. This | ||
# must be a positive integer. | ||
rounds = 2 | ||
# (Required) Number of local epochs per round | ||
epochs = 1 | ||
# (Optional) Minimum number of participants to be selected for a round. | ||
min_participants = 1 | ||
# (Optional) Fraction of total clients that participate in a training round. This | ||
# must be a float between 0 and 1. | ||
fraction_participants = 1.0 | ||
|
||
# (Required) | ||
[storage] | ||
# (Required) URL to the storage service to use | ||
endpoint = "http://minio-dev:9000" | ||
# (Required) Name of the bucket for storing the aggregated models | ||
bucket = "xain-fl-aggregated-weights" | ||
# (Required) AWS access key ID to use to authenticate to the storage service | ||
access_key_id = "minio" | ||
# (Required) AWS secret access to use to authenticate to the storage service | ||
secret_access_key = "minio123" | ||
|
||
# (Optional) | ||
[logging] | ||
# (Optional) The log level can be one of "notset", "debug", "info", "warning", | ||
# "error" and "critical". | ||
level = "info" | ||
|
||
# (Optional) | ||
[metrics] | ||
# (Optional) If `true`, store metrics in InfluxDB, otherwise not. | ||
enable = false | ||
# (Optional) The hostname to connect to InfluxDB. | ||
host = "localhost" | ||
# (Optional) The port of InfluxDB. | ||
port = 8086 | ||
# (Optional) The name of the InfluxDB user. | ||
user = "root" | ||
# (Optional) The password of the InfluxDB user. | ||
password = "root" | ||
# (Optional) The name of the database. | ||
db_name = "metrics" |
Oops, something went wrong.