Skip to content

Commit 06bd01a

Browse files
committed
Formatting
Signed-off-by: abigailt <[email protected]>
1 parent 1478b6d commit 06bd01a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

art/attacks/inference/membership_inference/black_box.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class MembershipInferenceBlackBox(MembershipInferenceAttack):
6060
"scaler_type",
6161
"nn_model_epochs",
6262
"nn_model_batch_size",
63-
"nn_model_learning_rate"
63+
"nn_model_learning_rate",
6464
]
6565
_estimator_requirements = (BaseEstimator, (ClassifierMixin, RegressorMixin))
6666

@@ -256,7 +256,6 @@ def fit( # pylint: disable=W0613
256256
if x_2 is None:
257257
self.use_label = False
258258

259-
scaler: Optional[Any] = None
260259
if self.scaler_type:
261260
if self.scaler_type == "standard":
262261
self.scaler = StandardScaler()
@@ -267,7 +266,6 @@ def fit( # pylint: disable=W0613
267266
else:
268267
raise ValueError("Illegal scaler_type: ", self.scaler_type)
269268

270-
271269
if self.default_model and self.attack_model_type == "nn":
272270
import torch
273271
from torch import nn

0 commit comments

Comments
 (0)