Questions tagged [scikits]

Scientific Python toolkits

Scikits is the collective name of a number of Python libraries for various scientific tasks, such as statistics, machine learning and image and audio processing. These scikits build on Numpy and Scipy.

An overview of available scikits is given at http://scikits.appspot.com/scikits

218 questions
4
votes
1 answer

scikits.statsmodels can not be installed with pip python 3.5

The official documentation https://scikits.appspot.com/statsmodels says that "scikits.statsmodels has been ported and tested for Python 3.2." but I get: $ pip install scikits.statsmodels Collecting scikits.statsmodels Using cached…
4
votes
4 answers

Installing scikits.samplerate fails

I'd like to use "scikits.samplerate", but installation fails. I'm using Windows10 (64 Bits) for Python 3.51 with Anaconda. Firstly, I followed this instruction: https://scikits.appspot.com/samplerate >pip install scikits.samplerate Collecting…
IanHacker
  • 541
  • 9
  • 27
4
votes
1 answer

Plot density using observation weights

Is there a way to plot densities using data that has observation weights? I have a vector of observations x and a vector of integer weights y, such that y1 indicates how many observations we have of x1. That is, the density of x y 1 …
FooBar
  • 15,724
  • 19
  • 82
  • 171
4
votes
1 answer

Merging image regions (bboxes) in linear time

I have a set of regions (bounding boxes) for some image, example python code: im = Image.open("single.png") pix = np.array(im) gray = rgb2grey(pix) thresh = threshold_otsu(gray) bw = closing(gray > thresh, square(1)) cleared =…
mnowotka
  • 16,430
  • 18
  • 88
  • 134
4
votes
2 answers

Simultaneous record audio from mic and play it back with effect in python

My goal is to record my voice through the laptop mic and simultaneously adding an effect to it, in python. What I need is similar to a music effects pedal where you connect a guitar or mic and it adds reverb or echo or distortion, etc. I am using…
Leonardo Lopez
  • 1,113
  • 6
  • 20
  • 39
4
votes
2 answers

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

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,…
Lucy
  • 43
  • 1
  • 5
3
votes
3 answers

Naive Bayes classifier using python

I'm using scikit-learn for finding the Tf-idf weight of a document and then using the Naive Bayesian classifier to classify the text. But the Tf-idf weight of all words in a documents are negative except a few. But as far as I know, negative values…
jvc
  • 604
  • 2
  • 12
  • 33
3
votes
2 answers

Python machine learning, feature selection

I am working on a classification task related to written text and I wonder how important it is to perform some kind of "feature selection" procedure in order to improve the classification results. I am using a number of features (around 40) related…
andreSmol
  • 1,028
  • 2
  • 18
  • 30
3
votes
1 answer

Python scikits - Buffer has wrong number of dimensions (expected 1, got 2)

I am trying this code snippet. I am using scikits.learn 0.8.1 from scikits.learn import linear_model import numpy as np num_rows = 10000 X = np.zeros([num_rows,2]) y = np.zeros([num_rows,1]) # assume here I have filled in X and y appropriately with…
zubinmehta
  • 4,368
  • 7
  • 33
  • 51
3
votes
1 answer

Write video in Python at 60 frames per second

I would like to use Python to create a video file with 60 frames per second. I try to make a two-minute video (DURATION_SECONDS = 120) as follows, but I get a video that lasts for 4 minutes and 48 seconds instead of 2 minutes. So the frame rate…
root
  • 1,812
  • 1
  • 12
  • 26
3
votes
1 answer

Cannot pip install scikits.talkbox on MacOS

I'm trying to pip install scikits.talkbox on my MacOS. I use Python 3.7.3 If I run pip install scikits.talkbox or pip3 install scikits.talkbox I get the following errors (I hope I did include…
Phys
  • 508
  • 3
  • 11
  • 22
3
votes
1 answer

Python module audiolab returns error when function is called

I need to install the Python module audiolab for a research project, and while I have managed to install it and get the module to import in the Python shell, it returns an error in calling one of the most basic functions in the module, wavread(). …
3
votes
0 answers

Choosing LBP sampling points and radius for good facial features

I am trying to do some feature engineering on facial images using Python and OpenCV. The idea is to use those features for unsupervised learning to group images of the same person together. The pipeline is as follows: Choose one of several OpenCV…
3
votes
1 answer

Finding edge from 2d points Python

I have several 2d sets of scattered data that I would like to find the edges of. Some edges may be open lines, others may be polygons. For example, here is one plot that has an open edge that I would like to be able to keep. I would actually like to…
Chris
  • 431
  • 5
  • 16
3
votes
1 answer

Is there a way to select top 100 or 1000 bag of words based on Tfidfvectorizer output in scikit

I am trying to find top 100/1000 words based on tfidfVectorizer output of Python's scikit-learn library. Is there a way to do it using a function from the scikit libraries? Thanks for help
Harshit
  • 1,207
  • 1
  • 20
  • 40