TensorFlowV2Classifier and SaliencyMapMethod #1928
Unanswered
fatimah-aloraini
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi @fatimah-aloraini What is the shape of the model's pedictions? What is the accuracy of the model on its training data? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, thank you for ART. It is a great help!
I am working on adversarial attacks against IDS project (binary classification: normal and malicious samples); I faced "slice index 1 of dimension 1 out of bounds. [Op:StridedSlice] name: strided_slice/" error, and the traceback is attached. I did not understand why the line:
prediction=predictions[:unique_label]
in TensorFlowV2Classifier causes an error
`
from art.estimators.classification import TensorFlowV2Classifier
from art.attacks.evasion import SaliencyMapMethod
classifier = TensorFlowV2Classifier(
model=model,
loss_object=tf.keras.losses.BinaryCrossentropy(),
nb_classes=2,
input_shape=x_train[0].shape,
)
JSMA= SaliencyMapMethod(classifier=classifier, theta=0.1, gamma=0.5 )
x_test_adv = JSMA.generate(np.array(x_test))`
Beta Was this translation helpful? Give feedback.
All reactions