f10c60eb403c8256c7bdde1a8b3df3a33e070070,tests/attacks/utils.py,,backend_test_classifier_type_check_fail,#Any#Any#Any#,130
Before Change
if classifier is None:
if (
LossGradientsMixin in classifier_expected_list
or ClassGradientsMixin in classifier_expected_list
or NeuralNetworkMixin in classifier_expected_list
):
// Use a test classifier not providing gradients required by white-box attack
classifier = ScikitlearnDecisionTreeClassifier(model=DecisionTreeClassifier())
After Change
classifier = ClassifierNoAPI
with pytest.raises(EstimatorError) as exception:
_ = attack(classifier)
for classifier_expected in classifier_expected_list:
assert classifier_expected in exception.value.class_expected_list
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: IBM/adversarial-robustness-toolbox
Commit Name: f10c60eb403c8256c7bdde1a8b3df3a33e070070
Time: 2020-04-11
Author: beat.buesser@ie.ibm.com
File Name: tests/attacks/utils.py
Class Name:
Method Name: backend_test_classifier_type_check_fail
Project Name: pandas-dev/pandas
Commit Name: 891b16f0476a4604a33d192d4494c37b7f981795
Time: 2020-11-02
Author: jbrockmendel@gmail.com
File Name: pandas/tests/frame/methods/test_between_time.py
Class Name: TestBetweenTime
Method Name: test_between_time_axis
Project Name: mne-tools/mne-python
Commit Name: 91473147e57464173dedb00ce20f3d5aefd883bd
Time: 2020-10-12
Author: larson.eric.d@gmail.com
File Name: mne/preprocessing/tests/test_ica.py
Class Name:
Method Name: test_ica_noop