2
votes
1answer
48 views

Finding an unknown point using weighted multilateration

I have a series of points (latitude/longitude coordinates) on the earth and a series of distance estimates from each point to an unknown location. I would like to use multilateration to estimate the ...
1
vote
1answer
15 views

howto emulate 2-sample t-test in scipy

I'm trying to emulate MS Excel's t-probe function in Python. I need to do this because I have to automate some calculations there were previously done in Excel. Here is my test program: import ...
0
votes
0answers
10 views

Python BMP code change and turns to greyscale?

I have created a bmp image from using a function on a jpg, then read that bmp. 2 Questions: Why are bmp numbers for the one i created different than the same one I read? Why is it when I create my ...
0
votes
0answers
7 views

Scipy as dependency on travis-ci and No module named _csr

I am trying to setup a build on travis for my project, which has scipy as a dependency. All is built and installed fine, until nosetests is run. I am getting a No module named _csr error. I can see it ...
0
votes
0answers
24 views

hierarchical clustering python with scipy how to get the right k?

at the moment I'm clustering my data with scipy by using k-means like that. centeroids,dist = kmeans(desc,k) and for the k i'm trying out some values to get a good clustering. I have read that with ...
1
vote
1answer
31 views

Calculate Similarity of Sparse Matrix

I am using Python with numpy, scipy and scikit-learn module. I'd like to classify the arrays in very big sparse matrix. (100,000 * 100,000) The values in the matrix are equal to 0 or 1. The only ...
1
vote
1answer
21 views

scipy: Which distributions have a “fit” function implemented?

scipy has over a hundred distributions in their stats module, but not all them have a "fit" function implemented. Is there a way to check which distributions have it and which don't?
0
votes
2answers
25 views

Python: determining the array of centroids with highest likelihood for k-means clustering (scipy)

I'm using the scipy implementation of k-means and need a way to loop the calculation n times, record the output array of centroids for each loop, and calculate the output with highest likelihood. ...
1
vote
1answer
59 views

bandwidth estimation in gaussian_kde in scipy

In gaussian_kde from scipy library there are two methods to estimate the bandwidth, "scott" and "silverman" The silverman rule of thumb is explained here and the equivalent function in R is provided ...
4
votes
1answer
41 views

Add values to a Scipy sparse matrix with indexes and values

I'm working in a program for Power System analysis and I need to work with sparse matrices. There is a routine where I fill a sparse matrix just with the following call: self.A = bsr_matrix((val, ...
4
votes
1answer
53 views

Why increment an indexed array behave as documented in numpy user documentation?

The example The documentation about assigning value to indexed arrays shows an example with unexpected results for those naive programmers. >>> x = np.arange(0, 50, 10) >>> x ...
0
votes
1answer
48 views

Apply non-linear regression for multi dimension data samples in Python

I have installed Numpy and SciPy, but I'm not quite understand their documentation about polyfit. For exmpale, Here's my three data samples: [-0.042780748663101636, -0.0040771571786609945, ...
2
votes
2answers
53 views

kmeans clustering with limited memory

I am developing an app on App Engine and am using kmeans2 from SciPy. When the cluster runs, I get this error: Exceeded soft private memory limit with 159.852 MB after servicing 1 requests total ...
2
votes
1answer
18 views

Share SciPy Sparse Array Between Process Objects

I've recently been learning Python multiprocessing, and have run into a roadblock. I have a lerge sparse SciPy array (CSC-format), that I need to share in read only format between 5 worker-processes. ...
1
vote
1answer
49 views

scipy.optimize curve_fit returns wrong value (depends on the machine)

I wrote some code with scipy.optimize curve_fit. It works perfectly on my computer: Windows 7 Home Premium with Service Pack 1, 64bit Dell Studio 1558 Intel Core i3 cpu [email protected] 2.13GHz, 3.86 GB ...

1 2 3 4 5 127
15 30 50 per page