Code Monkey home page Code Monkey logo

Comments (3)

zangobot avatar zangobot commented on June 8, 2024

Hello!

Thank you for using SecML Malware!
So, there are two methods: plot_code_segment and plot_contribution_header_histogram.

The first one produces the heatmap with the single contributions, while the second produces the histogram.

I removed from this release the computations of integrated gradients, as it was difficult to generalise to other models that were not MalConv, but I could add that in the future.
To replicate it, you can use the code from the original repo of Integrated Grandients!
Remember that MalConv is differentiable up to the embedding layer, so you need to compute them only up to that.
Then, you sum up th contributions of each embedding, and then you have your vector of contribution to pass to the functions mentioned above!

from secml_malware.

PowerLZY avatar PowerLZY commented on June 8, 2024

Hello!

Thank you very much for your answer!
I know how to achieve it through your detailed description. I'll try it right away.The SecML Malware is a great tool for my follow-up research.I hope I can seriously learn the implementation of it, which helps me a lot!

Let me thank you again!

from secml_malware.

zangobot avatar zangobot commented on June 8, 2024

Thank you for using my library 👍

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.