Fix TensorFlow Privacy g-importing-member
lint error.
PiperOrigin-RevId: 424356142
This commit is contained in:
parent
4b76e882bc
commit
b309916927
1 changed files with 3 additions and 2 deletions
|
@ -15,7 +15,8 @@
|
|||
# Lint as: python3
|
||||
"""Trained models for membership inference attacks."""
|
||||
|
||||
from dataclasses import dataclass
|
||||
import dataclasses
|
||||
|
||||
import numpy as np
|
||||
from sklearn import ensemble
|
||||
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
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclasses.dataclass
|
||||
class AttackerData:
|
||||
"""Input data for an ML classifier attack.
|
||||
|
||||
|
|
Loading…
Reference in a new issue