gjjvdburg / pygensvm Goto Github PK
View Code? Open in Web Editor NEWPython package for the GenSVM classifier
License: GNU General Public License v3.0
Python package for the GenSVM classifier
License: GNU General Public License v3.0
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,
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,
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.
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,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.