Giter Site home page Giter Site logo

gjjvdburg / pygensvm Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 3.0 426 KB

Python package for the GenSVM classifier

License: GNU General Public License v3.0

Makefile 1.64% Python 97.83% Shell 0.53%
svm svm-classifier machine-learning machine-learning-algorithms python scikitlearn-machine-learning scikit-learn multiclass-classification multiclass-support-vector-machine multiclass-svm nonlinear-support-vector-machine nonlinear-svm

pygensvm's Issues

Specification of class misclassification weights

Currently, incorrectly classification an object from class A to class C is as bad as incorrectly classifying an object from class B to class C. Depending on the application, this may not be the desired effect. Adding class misclassification weights can solve this issue.

If you would like to see this feature added to the Python package sooner, vote on this issue by leaving a ๐Ÿ‘ reaction below,

Support for sparse matrices

NumPy supports sparse matrices, as does the GenSVM C library. Getting them to work together requires some effort. In the meantime, if you really want to use sparse data with GenSVM (this can lead to significant speedups!), check out the GenSVM C library.

If you would like to see this feature added to the Python package sooner, vote on this issue by leaving a ๐Ÿ‘ reaction below,

Error installing GenSVM

I tried to install the package, but encountered the following error (the error is larger, this is only a section. I can attach the entire error if needed). I tried to install the package across different laptops, but the same issue occurs. I tried $ pip install numpy && pip install gensvm as well as $ pip install gensvm.

Thank you!

Collecting gensvm
ERROR: Command errored out with exit status 1:
command: 'C:\Users\USER\Anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\USER\AppData\Local\Temp\2\pip-install-k2yboajk\gensvm_1fc99d4f45454cd9a08d64a952191cb9\setup.py'"'"'; file='"'"'C:\Users\USER\AppData\Local\Temp\2\pip-install-k2yboajk\gensvm_1fc99d4f45454cd9a08d64a952191cb9\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\USER\AppData\Local\Temp\2\pip-pip-egg-info-d1ys9viq'
cwd: C:\Users\USER\AppData\Local\Temp\2\pip-install-k2yboajk\gensvm_1fc99d4f45454cd9a08d64a952191cb9
Complete output (49 lines):
Could not locate executable g77
Could not locate executable f77
Could not locate executable ifort
Could not locate executable ifl
Could not locate executable f90
Could not locate executable DF
Could not locate executable efl
Could not locate executable gfortran
Could not locate executable f95
Could not locate executable g95
Could not locate executable efort
Could not locate executable efc
Could not locate executable flang
don't know how to compile Fortran code on platform 'nt'
C:\Users\USER\Anaconda3\lib\site-packages\numpy\distutils\system_info.py:1989: UserWarning:
Optimized (vendor) Blas libraries are not found.
Falls back to netlib Blas library which has worse performance.
A better performance should be easily gained by switching
Blas library.
if self._calc_info(blas):
C:\Users\USER\Anaconda3\lib\site-packages\numpy\distutils\system_info.py:1989: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
if self._calc_info(blas):
C:\Users\USER\Anaconda3\lib\site-packages\numpy\distutils\system_info.py:1989: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
if self._calc_info(blas):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\USER\AppData\Local\Temp\2\pip-install-k2yboajk\gensvm_1fc99d4f45454cd9a08d64a952191cb9\setup.py", line 348, in
attr = configuration().todict()
File "C:\Users\USER\AppData\Local\Temp\2\pip-install-k2yboajk\gensvm_1fc99d4f45454cd9a08d64a952191cb9\setup.py", line 253, in configuration
cblas_libs, blas_info = _skl_get_blas_info()
File "C:\Users\USER\AppData\Local\Temp\2\pip-install-k2yboajk\gensvm_1fc99d4f45454cd9a08d64a952191cb9\setup.py", line 164, in _skl_get_blas_info
blas_info = get_info("blas_opt", notfound_action=2)
File "C:\Users\USER\Anaconda3\lib\site-packages\numpy\distutils\system_info.py", line 584, in get_info
return cl().get_info(notfound_action)
File "C:\Users\USER\Anaconda3\lib\site-packages\numpy\distutils\system_info.py", line 850, in get_info
raise self.notfounderror(self.notfounderror.doc)
numpy.distutils.system_info.BlasNotFoundError:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.

Specification of instance weights

Currently the package allows for two modes of instance weights: unit weights where each instance gets weight 1 and group weights where instances get weights inversely proportional to the size of their class. In the future, we want to allow the user to specify a vector of weights as well.

If you would like to see this feature added to the Python package sooner, vote on this issue by leaving a ๐Ÿ‘ reaction below,

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.