Skip to content

Commit dcf507a

Browse files
committed
adaptive protocols
1 parent 8c1331e commit dcf507a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fl4health/mixins/adaptive_drift_contrained.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
"""AdaptiveDriftConstrainedMixin"""
22

3+
import warnings
34
from collections.abc import Sequence
45
from logging import INFO
56
from typing import cast
67

78
import torch
8-
import warnings
99
from flwr.common.logger import log
1010
from flwr.common.typing import Config, NDArrays
1111

12+
from fl4health.clients.basic_client import BasicClientProtocol
1213
from fl4health.losses.weight_drift_loss import WeightDriftLoss
1314
from fl4health.parameter_exchange.full_exchanger import FullParameterExchanger
1415
from fl4health.parameter_exchange.packing_exchanger import FullParameterExchangerWithPacking
@@ -17,8 +18,6 @@
1718
from fl4health.utils.losses import TrainingLosses
1819
from fl4health.utils.typing import TorchFeatureType, TorchPredType, TorchTargetType
1920

20-
from fl4health.clients.basic_client import BasicClientProtocol
21-
2221

2322
class AdaptiveProtocol(BasicClientProtocol):
2423
loss_for_adaptation: float | None

0 commit comments

Comments
 (0)