Giter VIP home page Giter VIP logo

android-malware-detector's People

Contributors

sp2014 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

android-malware-detector's Issues

Steps

can you suggest step by step? how to start with prerequisites?

feature_selection.py error

PS D:\Android-Malware-Detector-master> python feature_selection.py data.csv
Traceback (most recent call last):
File "feature_selection.py", line 30, in
lsvc = LinearSVC(C=0.01, penalty="l1", dual=False).fit(dataX, dataY)
File "C:\Users\Ali Al-Zaabi\Anaconda2\lib\site-packages\sklearn\svm\classes.py", line 237, in fit
self.loss, sample_weight=sample_weight)
File "C:\Users\Ali Al-Zaabi\Anaconda2\lib\site-packages\sklearn\svm\base.py", line 881, in fit_liblinear
" class: %r" % classes
[0])
ValueError: This solver needs samples of at least 2 classes in the data, but the data contains only one class: 0

I am getting the following error, even after running add_db.py on both malware and goodware samples. Then i use create_data.py to create the data.csv table, finally when i run the feature_selection.py on data.csv I get the error qouted above, which to my understanding means that I only have 1 class (goodware) and it doesnt take into consideration (malware)

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.