Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alternatives for running SciPy on Google App Engine?

I need to run some statistical tests in my app, which needs functions from scipy.stats. However I found Google App Engine doesn't trust SciPy. So is there any GAE supported libraries which can do some stats calculations e.g. generate random numbers, estimate CDF, run T-tests, check normality, etc. Thanks!

like image 238
TTT Avatar asked Oct 05 '22 09:10

TTT


1 Answers

The Python 2.7 runtime includes NumPy. It's a scientific library that can help you in what you want to do.

Numpy is a language extension that defines the numerical array and matrix type and basic operations on them.

More info for NumPy here

Btw:

However I found Google App Engine doesn't trust SciPy.

I think should be:

GAE only supports native python code

Edit

For random numbers you can use Python's Random

For CDF http://pysclint.sourceforge.net/pycdf/ or http://code.google.com/p/netcdf4-python/ but I am not sure if they just contain native code. You can try if you like.

Also take a look here http://www.astro.cornell.edu/staff/loredo/statpy/

Another approach could be to have a home server running any python module you might please. Then use a PULL QUEUE TO communicate via REST with your "home" server and process the calculations there.

like image 124
Jimmy Kane Avatar answered Oct 12 '22 19:10

Jimmy Kane