scikits

Error while importing scikits.talkbox

别说谁变了你拦得住时间么 提交于 2020-01-04 09:07:10
问题 I want to use scikits.talkbox, but i get the following error while import scikits.talkbox. Traceback (most recent call last): File "/home/seref/Desktop/machine learning codes/MFCC/main.py", line 3, in from scikits.talkbox.features.mfcc import mfcc File "/usr/local/lib/python3.5/dist-packages/scikits/talkbox/ init .py", line 3, in from tools import * ImportError: No module named 'tools' code sample import scipy.io.wavfile from scikits.talkbox.features.mfcc import mfcc sample_rate, X = scipy.io

How to whiten matrix in PCA

人盡茶涼 提交于 2019-12-31 15:45:22
问题 I'm working with Python and I've implemented the PCA using this tutorial. Everything works great, I got the Covariance I did a successful transform, brought it make to the original dimensions not problem. But how do I perform whitening? I tried dividing the eigenvectors by the eigenvalues: S, V = numpy.linalg.eig(cov) V = V / S[:, numpy.newaxis] and used V to transform the data but this led to weird data values. Could someone please shred some light on this? 回答1: Here's a numpy implementation

Trouble installing scikit-bio on Windows

自作多情 提交于 2019-12-23 09:48:15
问题 When attempting to install the scikit-bio toolkit via pip on Windows XP using Python 2.78 and Visual C++ 2008 Express Edition, the process is interrupted with the following message issued by VC: cl : Command line error D8021 : invalid numeric argument '/Wno-error=declaration -after-statement' Concerning this error, Microsoft Developer Network website just says: invalid numeric argument 'number' A number greater than 65,534 was specified as a numeric argument. I did not (yet) attempted to

text classification with SciKit-learn and a large dataset

£可爱£侵袭症+ 提交于 2019-12-21 05:56:14
问题 First of all I started with python yesterday. I'm trying to do text classification with SciKit and a large dataset (250.000 tweets). For the algorithm, every tweet will be represented as a 4000 x 1 vector, so this means the input is 250.000 rows and 4000 columns. When i try to construct this in python, I run out of memory after 8500 tweets (when working with a list and appending it) and when I preallocate the memory I just get the error: MemoryError (np.zeros(4000,2500000)). Is SciKit not

How to extract info from scikits.learn classifier to then use in C code

断了今生、忘了曾经 提交于 2019-12-21 01:12:41
问题 I have trained a bunch of RBF SVMs using scikits.learn in Python and then Pickled the results. These are for image processing tasks and one thing I want to do for testing is run each classifier on every pixel of some test images. That is, extract the feature vector from a window centered on pixel (i,j), run each classifier on that feature vector, and then move on to the next pixel and repeat. This is far too slow to do with Python. Clarification: When I say "this is far too slow..." I mean

Error installing scikits.audiolab when using python setup.py egg_info

筅森魡賤 提交于 2019-12-19 15:29:45
问题 I am trying to install scikits.audiolab with using the pip tool. Pip appears to run the command python setup.py egg_info from within the scikits.audiolab source directory. When it does so, I get this error: Andrews-MacBook-Pro-2:scikits.audiolab-0.11.0 andrewhannigan$ pip install scikits.audiolab Collecting scikits.audiolab Using cached scikits.audiolab-0.11.0.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 20, in <module>

Error installing scikits.audiolab when using python setup.py egg_info

对着背影说爱祢 提交于 2019-12-19 15:27:59
问题 I am trying to install scikits.audiolab with using the pip tool. Pip appears to run the command python setup.py egg_info from within the scikits.audiolab source directory. When it does so, I get this error: Andrews-MacBook-Pro-2:scikits.audiolab-0.11.0 andrewhannigan$ pip install scikits.audiolab Collecting scikits.audiolab Using cached scikits.audiolab-0.11.0.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 20, in <module>

How to use dummy variable to represent categorical data in python scikit-learn random forest

做~自己de王妃 提交于 2019-12-18 05:15:11
问题 I'm generating feature vector for random forest classifier of scikit-learn . The feature vector represents the name of 9 protein amino acid residues. There are 20 possible residue names. So, I use 20 dummy variables to represent one residue name, for 9 residue, I have 180 dummy variables. For example, if the 9 residues in the sliding window are: ARNDCQEGH (every one letter represent a name of a protein residue),my feature vector will be: "True\tFalse\tFalse\tFalse\tFalse\tFalse\tFalse\tFalse

python machine learning DeprecationWarning

强颜欢笑 提交于 2019-12-12 19:06:48
问题 please could you help me to solve this? C:\Python27\lib\site-packages\sklearn\cross_validation.py:44‌: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also, note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20. "This module will be removed in 0.20.", DeprecationWarning) 回答1: The C:\Python27\lib\site-packages

linking to audiolab in python2.6 on osx

百般思念 提交于 2019-12-11 11:22:29
问题 I've been unable to get scikits.audiolab working on OS X. I've tried easy_install and building from source, but both give me the same error: ----> 1 import scikits.audiolab /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scikits.audiolab-0.11.0-py2.6-macosx-10.3-fat.egg/scikits/audiolab/__init__.py in <module>() 23 __version__ = _version 24 ---> 25 from pysndfile import formatinfo, sndfile 26 from pysndfile import supported_format, supported_endianness, \ 27