12h
answered Optimization and speedup of a mathematical function in python
12h
comment Optimization and speedup of a mathematical function in python
Trying out cython is easy and can give quite a speedup (YMMV, of course): jakevdp.github.io/blog/2012/08/08/memoryview-benchmarks
1d
comment Logistic Regression with regularization in python failing to minimize
I'd try using several different optimizers, docs.scipy.org/doc/scipy/reference/optimize.html, and see if, say, bfgs performs better than ncg
1d
revised Python: interpolate.UnivariateSpline package 'error: (m>k) failed for hidden m: fpcurf0:m=0'
added 42 characters in body
1d
answered Python: interpolate.UnivariateSpline package 'error: (m>k) failed for hidden m: fpcurf0:m=0'
Aug
20
comment Linear interpolation with interp1d performance issues with large datasets python (scipy)
and if you replace interp1d with numpy.interp, it's likely going to be faster still.
Aug
20
comment Python Scipy: scipy.stats.spearmanr returning nans
What is thing, does it have nans/infs? A minimal runnable example would help debugging this further
Aug
19
answered Vectorizing root finding in numpy
Aug
17
revised what is meant by rv_frozen object in scipy?
added 11 characters in body
Aug
17
answered what is meant by rv_frozen object in scipy?
Aug
17
comment small differences in scipy spline interpolation vs natural and matlab splines
interp1d (splmake, really) does not produce a "natural" spline --- it does not require that the 2nd derivatives are zero at the edges of the interpolation interval.
Aug
12
awarded numpy
Jul
23
awarded Yearling
Jul
23
awarded Yearling
Jul
17
comment Estimate confidence intervals for parameters of distribution in python
Please use ppf instead of _ppf
Jul
16
comment curve_fit with fix point leads to better results?
for one, f(x, a, b, c) = a*(x - b) + c is overdetermined: curve_fit thinks there are three independent variables, while in fact there are only two, a and c - ab
Jul
16
answered How to apply a function to rows of a SciPy CSR sparse matrix?
Jul
13
answered How to insure spline goes through points
Jul
10
awarded Custodian
Jul
10
reviewed Approve suggested edit on How to create Major and Minor gridlines with different Linestyles in Python
1 2 3 4 5