Code Monkey home page Code Monkey logo

Comments (3)

zangobot avatar zangobot commented on May 30, 2024 1

Hi once again.
So, for now, use SecML 0.12 (the 0.13 broke many things inside my project)
I'll try to update it as soon as possible.

Thank you for the issue!

from secml_malware.

moritzbrodscholl avatar moritzbrodscholl commented on May 30, 2024

A similar error accounts when trying to execute test_evasion_attack.py :

======================================================================
ERROR: test_kreuk_whitebox_attack (__main__.EvasionEnd2EndTestSuite)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_evasion_attack.py", line 64, in test_kreuk_whitebox_attack
    is_debug=True
TypeError: Can't instantiate abstract class CKreukEvasion with abstract methods f_eval, grad_eval, objective_function, objective_function_gradient

======================================================================
ERROR: test_kreuk_whitebox_attack_p2 (__main__.EvasionEnd2EndTestSuite)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_evasion_attack.py", line 88, in test_kreuk_whitebox_attack_p2
    p_norm=2
TypeError: Can't instantiate abstract class CKreukEvasion with abstract methods f_eval, grad_eval, objective_function, objective_function_gradient

======================================================================
ERROR: test_kreuk_whitebox_no_slack_attack (__main__.EvasionEnd2EndTestSuite)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_evasion_attack.py", line 99, in test_kreuk_whitebox_no_slack_attack
    compute_slack=False
TypeError: Can't instantiate abstract class CKreukEvasion with abstract methods f_eval, grad_eval, objective_function, objective_function_gradient

======================================================================
ERROR: test_kreuk_whitebox_no_slack_attack_p2 (__main__.EvasionEnd2EndTestSuite)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_evasion_attack.py", line 76, in test_kreuk_whitebox_no_slack_attack_p2
    p_norm=2
TypeError: Can't instantiate abstract class CKreukEvasion with abstract methods f_eval, grad_eval, objective_function, objective_function_gradient

======================================================================
ERROR: test_padding_whitebox_ember_model_attack (__main__.EvasionEnd2EndTestSuite)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_evasion_attack.py", line 54, in test_padding_whitebox_ember_model_attack
    is_debug=True
TypeError: Can't instantiate abstract class CPaddingEvasion with abstract methods f_eval, grad_eval, objective_function, objective_function_gradient

======================================================================
ERROR: test_pe_shift_attack (__main__.EvasionEnd2EndTestSuite)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_evasion_attack.py", line 138, in test_pe_shift_attack
    is_debug=True
TypeError: Can't instantiate abstract class CFormatExploitEvasion with abstract methods f_eval, grad_eval, objective_function, objective_function_gradient

======================================================================
ERROR: test_section_shift_attack (__main__.EvasionEnd2EndTestSuite)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_evasion_attack.py", line 128, in test_section_shift_attack
    is_debug=True
TypeError: Can't instantiate abstract class CFormatExploitEvasion with abstract methods f_eval, grad_eval, objective_function, objective_function_gradient

======================================================================
ERROR: test_suciu_appending_whitebox_attack (__main__.EvasionEnd2EndTestSuite)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_evasion_attack.py", line 108, in test_suciu_appending_whitebox_attack
    is_debug=True
TypeError: Can't instantiate abstract class CSuciuEvasion with abstract methods f_eval, grad_eval, objective_function, objective_function_gradient

======================================================================
ERROR: test_suciu_appending_whitebox_no_slack_attack (__main__.EvasionEnd2EndTestSuite)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_evasion_attack.py", line 118, in test_suciu_appending_whitebox_no_slack_attack
    compute_slack=False
TypeError: Can't instantiate abstract class CSuciuEvasion with abstract methods f_eval, grad_eval, objective_function, objective_function_gradient

======================================================================
ERROR: test_whitebox_ember_model_attack_no_random_init (__main__.EvasionEnd2EndTestSuite)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_evasion_attack.py", line 35, in test_whitebox_ember_model_attack_no_random_init
    random_init=False,
TypeError: Can't instantiate abstract class CHeaderEvasion with abstract methods f_eval, grad_eval, objective_function, objective_function_gradient

======================================================================
ERROR: test_whitebox_ember_model_attack_random_init (__main__.EvasionEnd2EndTestSuite)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_evasion_attack.py", line 27, in test_whitebox_ember_model_attack_random_init
    random_init=True,
TypeError: Can't instantiate abstract class CHeaderEvasion with abstract methods f_eval, grad_eval, objective_function, objective_function_gradient

----------------------------------------------------------------------
Ran 11 tests in 43.858s

FAILED (errors=11)

from secml_malware.

zangobot avatar zangobot commented on May 30, 2024

Hi!

Thank you for the issue! I found that secML (the library that I use as base) was updated and things changed under the hood!
I'm fixing it now.

from secml_malware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.