Giter Club home page Giter Club logo

cssvm's People

Contributors

airanmehr avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

cssvm's Issues

Segmentation Fault Error

I am trying to train a SVM model for binary classification using example dependent cost sensitive learning but every time I am getting an error of segmentation fault. The format of the cost matrix csv file I gave is as follows:
FP

FN

TP

TN

i.e. all 4 params are in new line. I want to know is this correct format? If correct, can you suggest why I am getting an error of segmentation fault. The command I am using for model training is as follows:

svm-train -C 2 -W cost_matrix.csv feature_matrix.csv

One more question I would like to add here is that I didn't fine the proper documentation for python interface of cost-sensitive SVM (cssvm) model. The reason behind using its python interface (instead of its pre-compiled package) is that I want to get detailed performance measure such as weighted accuracy, f1-score, weighted f1-wcore, ROC, AUC, precision, recall etc. I tried running the python interface of cssvm from file cssvm.py using the following command

python2 -c "from cssvm import *"

I get an error of no module named libsvm. Then I installed python2.7 version of libsvm using the following command

sudo apt-get install -y python2.7-libsvm

then I get an error of

AttributeError: /usr/lib/libsvm.so.3: undefined symbol: svm_get_sv_indices

Kindly suggest how to use the python interface of cssvm with proper examples. Thanks.

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.