Fix TensorFlow Privacy g-importing-member lint error.

PiperOrigin-RevId: 424356142
This commit is contained in:
Michael Reneer 2022-01-26 08:40:29 -08:00 committed by A. Unique TensorFlower
parent 4b76e882bc
commit b309916927

View file

@ -15,7 +15,8 @@
# Lint as: python3 # Lint as: python3
"""Trained models for membership inference attacks.""" """Trained models for membership inference attacks."""
from dataclasses import dataclass import dataclasses
import numpy as np import numpy as np
from sklearn import ensemble from sklearn import ensemble
from sklearn import linear_model from sklearn import linear_model
@ -27,7 +28,7 @@ from tensorflow_privacy.privacy.privacy_tests.membership_inference_attack.data_s
from tensorflow_privacy.privacy.privacy_tests.membership_inference_attack.data_structures import DataSize from tensorflow_privacy.privacy.privacy_tests.membership_inference_attack.data_structures import DataSize
@dataclass @dataclasses.dataclass
class AttackerData: class AttackerData:
"""Input data for an ML classifier attack. """Input data for an ML classifier attack.