File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
"""AdaptiveDriftConstrainedMixin"""
2
2
3
+ import warnings
3
4
from collections .abc import Sequence
4
5
from logging import INFO
5
6
from typing import cast
6
7
7
8
import torch
8
- import warnings
9
9
from flwr .common .logger import log
10
10
from flwr .common .typing import Config , NDArrays
11
11
12
+ from fl4health .clients .basic_client import BasicClientProtocol
12
13
from fl4health .losses .weight_drift_loss import WeightDriftLoss
13
14
from fl4health .parameter_exchange .full_exchanger import FullParameterExchanger
14
15
from fl4health .parameter_exchange .packing_exchanger import FullParameterExchangerWithPacking
17
18
from fl4health .utils .losses import TrainingLosses
18
19
from fl4health .utils .typing import TorchFeatureType , TorchPredType , TorchTargetType
19
20
20
- from fl4health .clients .basic_client import BasicClientProtocol
21
-
22
21
23
22
class AdaptiveProtocol (BasicClientProtocol ):
24
23
loss_for_adaptation : float | None
You can’t perform that action at this time.
0 commit comments