Internal change.

PiperOrigin-RevId: 372339098
This commit is contained in:
David Marn 2021-05-06 07:30:10 -07:00 committed by A. Unique TensorFlower
parent bd69c70965
commit eb5c99d484

View file

@ -82,9 +82,7 @@ def create_attacker_data(attack_input_data: AttackInputData,
labels_all = np.concatenate(((np.zeros(ntrain)), (np.ones(ntest))))
# Perform a train-test split
features_train, features_test, \
is_training_labels_train, is_training_labels_test = \
model_selection.train_test_split(
features_train, features_test, is_training_labels_train, is_training_labels_test = model_selection.train_test_split(
features_all, labels_all, test_size=test_fraction, stratify=labels_all)
return AttackerData(features_train, is_training_labels_train, features_test,
is_training_labels_test,