Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lishenghui committed Jun 25, 2024
1 parent d3d8c7f commit cffe636
Show file tree
Hide file tree
Showing 67 changed files with 116,616 additions and 58,367 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ scripts/data
*.meta
*.html
*.whl
docs/source/_examples
*.egg
*.pkl
*test_batch*
Expand Down
23 changes: 12 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ repos:
rev: 23.9.1
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
# - repo: https://github.com/PyCQA/flake8
# rev: 6.1.0
# hooks:
# - id: flake8
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
Expand All @@ -18,8 +18,9 @@ repos:
- id: check-merge-conflict
- id: fix-encoding-pragma
args: [ "--remove" ]
- id: mixed-line-ending
args: [ "--fix=lf" ]
# - id: mixed-line-ending
# args: [ "--fix=lf" ]

- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
hooks:
Expand All @@ -33,8 +34,8 @@ repos:
- mdformat-openmmlab
- mdformat_frontmatter
- linkify-it-py
- repo: https://github.com/PyCQA/docformatter
rev: v1.5.0
hooks:
- id: docformatter
args: [ "--in-place", "--wrap-descriptions", "88" ]
# - repo: https://github.com/PyCQA/docformatter
# rev: v1.5.0
# hooks:
# - id: docformatter
# args: [ "--in-place", "--wrap-descriptions", "88" ]
2 changes: 1 addition & 1 deletion blades/adversaries/alie_adversary.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from fedlib.constants import CLIENT_UPDATE, CLIENT_ID
from fedlib.trainers import Trainer as Algorithm
from fedlib.trainers import Trainer
from fedlib.aggregators import Signguard

from blades.aggregators import Signguard
from .adversary import Adversary


Expand Down
3 changes: 1 addition & 2 deletions blades/adversaries/attackclippedclustering_adversary.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
from sklearn.cluster import AgglomerativeClustering

from fedlib.trainers import Trainer
from fedlib.aggregators import Clippedclustering
from fedlib.constants import CLIENT_UPDATE, CLIENT_ID

from blades.aggregators import Clippedclustering

from .adversary import Adversary


Expand Down
2 changes: 1 addition & 1 deletion blades/adversaries/minmax_adversary.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import torch

from blades.aggregators import Signguard
from fedlib.aggregators import Signguard
from fedlib.trainers import Trainer as Algorithm
from fedlib.constants import CLIENT_UPDATE, CLIENT_ID
from .adversary import Adversary
Expand Down
17 changes: 0 additions & 17 deletions blades/aggregators/__init__.py

This file was deleted.

180 changes: 0 additions & 180 deletions blades/aggregators/aggregators.py

This file was deleted.

38 changes: 0 additions & 38 deletions blades/aggregators/centeredclipping.py

This file was deleted.

Loading

0 comments on commit cffe636

Please sign in to comment.