Skip to content

Commit 1467c1c

Browse files
[pre-commit.ci] Add auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7edc69b commit 1467c1c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

examples/nnunet_example/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
from fl4health.utils.msd_dataset_sources import get_msd_dataset_enum, msd_num_labels
2929
from fl4health.utils.nnunet_utils import get_segs_from_probs, set_nnunet_env
3030

31-
3231
personalized_client_classes = {"ditto": make_it_personal(NnunetClient, "ditto")}
3332

3433

fl4health/mixins/personalized/ditto.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
"""Ditto Personalized Mixin"""
22

3+
import warnings
34
from logging import DEBUG, INFO
45
from typing import cast, runtime_checkable
56

67
import torch
78
import torch.nn as nn
8-
import warnings
99
from flwr.common.logger import log
1010
from flwr.common.typing import Config, NDArrays, Scalar
1111
from torch.optim import Optimizer
1212

13+
from fl4health.clients.basic_client import BasicClientProtocol
1314
from fl4health.mixins.adaptive_drift_contrained import AdaptiveDriftConstrainedMixin, AdaptiveProtocol
1415
from fl4health.mixins.personalized.base import BasePersonalizedMixin
1516
from fl4health.parameter_exchange.full_exchanger import FullParameterExchanger
1617
from fl4health.utils.config import narrow_dict_type
1718
from fl4health.utils.losses import EvaluationLosses, TrainingLosses
1819
from fl4health.utils.typing import TorchFeatureType, TorchInputType, TorchPredType, TorchTargetType
19-
from fl4health.clients.basic_client import BasicClientProtocol
2020

2121

2222
@runtime_checkable

0 commit comments

Comments
 (0)