IndexError on pre-fitted SVC on FastGradientMethod #1237
-
Hello, However I get "IndexError: arrays used as indices must be of integer (or boolean) type" when I try calling FastGradientMethod. I would appreciate any help. code snippet: (I can share more if needed) classifier = SklearnClassifier(model=svc) Error: /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/art/attacks/attack.py in replacement_function(self, *args, **kwargs) /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/art/attacks/evasion/fast_gradient.py in generate(self, x, y, **kwargs) /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/art/estimators/classification/classifier.py in replacement_function(self, *args, **kwargs) /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/art/estimators/classification/scikitlearn.py in predict(self, x, **kwargs) IndexError: arrays used as indices must be of integer (or boolean) type |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @melikedem Thank you very much for using ART! |
Beta Was this translation helpful? Give feedback.
Hi @melikedem Thank you very much for using ART!
Could you please describe the shape of your input and label data? Is it binary or multi-class classification?