95e0418c52263c41c4a7f88a1dd2c8464be14710,art/attacks/extraction/functionally_equivalent_extraction.py,,,#,327

Before Change


    y_test_predicted_extracted = fee.predict(x_test)

    print("Target model - Test accuracy:", score_target[1])
    print("Extracted model - Test accuracy:", score_target[1])

After Change


    fee.extract(x_test[0:100])

    y_test_predicted_extracted = fee.predict(x_test)
    y_test_predicted_target = classifier.predict(x_test)

    print("Target model - Test accuracy:", score_target[1])
    print("Extracted model - Test accuracy:",
          np.sum(np.argmax(y_test_predicted_extracted, axis=1) == np.argmax(y_test, axis=1)) / y_test.shape[0])
    print("Extracted model - Test Fidelity:",
          np.sum(np.argmax(y_test_predicted_extracted, axis=1) == np.argmax(y_test_predicted_target, axis=1)) /
          y_test_predicted_target.shape[0])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 95e0418c52263c41c4a7f88a1dd2c8464be14710
Time: 2019-12-05
Author: beat.buesser@ie.ibm.com
File Name: art/attacks/extraction/functionally_equivalent_extraction.py
Class Name:
Method Name:


Project Name: data61/python-paillier
Commit Name: eb4ffb6cdaf6f04f978fc57e32c95c8b4a33bcb6
Time: 2017-06-20
Author: giorgio.patrini@anu.edu.au
File Name: examples/federated_learning_with_encryption.py
Class Name:
Method Name:


Project Name: data61/python-paillier
Commit Name: 8184b9fdf51e3f75835fe1f2d56c294d16686241
Time: 2017-06-20
Author: giorgio.patrini@anu.edu.au
File Name: examples/federated_learning_with_encryption.py
Class Name:
Method Name: