Skip to content

Commit cffe636

Browse files
committed
update
1 parent d3d8c7f commit cffe636

File tree

67 files changed

+116616
-58367
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+116616
-58367
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ scripts/data
1111
*.meta
1212
*.html
1313
*.whl
14+
docs/source/_examples
1415
*.egg
1516
*.pkl
1617
*test_batch*

.pre-commit-config.yaml

+12-11
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ repos:
33
rev: 23.9.1
44
hooks:
55
- id: black
6-
- repo: https://github.com/PyCQA/flake8
7-
rev: 6.1.0
8-
hooks:
9-
- id: flake8
6+
# - repo: https://github.com/PyCQA/flake8
7+
# rev: 6.1.0
8+
# hooks:
9+
# - id: flake8
1010
- repo: https://github.com/pre-commit/pre-commit-hooks
1111
rev: v4.4.0
1212
hooks:
@@ -18,8 +18,9 @@ repos:
1818
- id: check-merge-conflict
1919
- id: fix-encoding-pragma
2020
args: [ "--remove" ]
21-
- id: mixed-line-ending
22-
args: [ "--fix=lf" ]
21+
# - id: mixed-line-ending
22+
# args: [ "--fix=lf" ]
23+
2324
- repo: https://github.com/codespell-project/codespell
2425
rev: v2.2.2
2526
hooks:
@@ -33,8 +34,8 @@ repos:
3334
- mdformat-openmmlab
3435
- mdformat_frontmatter
3536
- linkify-it-py
36-
- repo: https://github.com/PyCQA/docformatter
37-
rev: v1.5.0
38-
hooks:
39-
- id: docformatter
40-
args: [ "--in-place", "--wrap-descriptions", "88" ]
37+
# - repo: https://github.com/PyCQA/docformatter
38+
# rev: v1.5.0
39+
# hooks:
40+
# - id: docformatter
41+
# args: [ "--in-place", "--wrap-descriptions", "88" ]

blades/adversaries/alie_adversary.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from fedlib.constants import CLIENT_UPDATE, CLIENT_ID
66
from fedlib.trainers import Trainer as Algorithm
77
from fedlib.trainers import Trainer
8+
from fedlib.aggregators import Signguard
89

9-
from blades.aggregators import Signguard
1010
from .adversary import Adversary
1111

1212

blades/adversaries/attackclippedclustering_adversary.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
from sklearn.cluster import AgglomerativeClustering
77

88
from fedlib.trainers import Trainer
9+
from fedlib.aggregators import Clippedclustering
910
from fedlib.constants import CLIENT_UPDATE, CLIENT_ID
1011

11-
from blades.aggregators import Clippedclustering
12-
1312
from .adversary import Adversary
1413

1514

blades/adversaries/minmax_adversary.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import torch
44

5-
from blades.aggregators import Signguard
5+
from fedlib.aggregators import Signguard
66
from fedlib.trainers import Trainer as Algorithm
77
from fedlib.constants import CLIENT_UPDATE, CLIENT_ID
88
from .adversary import Adversary

blades/aggregators/__init__.py

-17
This file was deleted.

blades/aggregators/aggregators.py

-180
This file was deleted.

blades/aggregators/centeredclipping.py

-38
This file was deleted.

0 commit comments

Comments
 (0)