SciPy 0.17.0 Release Notes
scipy.optimize.curve_fit
Significant improvements to scipy.stats, providing many functions with
better handing of inputs which have NaNs or are empty, improved
documentation, and consistent behavior between scipy.stats and
scipy.stats.mstats.
scipy.stats.mstats
scipy.stats.binom_test and scipy.stats.mannwhitneyu gained a keyword
alternative, which allows specifying the hypothesis to test for.
Eventually all hypothesis testing functions will get this keyword.
For methods of many continuous distributions, complex input is now accepted.
sparse_distance_matrix
y
(2, 3, 5)
fill_value
()
(1,)
(2, 1)
(1, 3)
(3,)
(2, 3)
#3453: PchipInterpolator sets slopes at edges differently than Matlab’s…
#4106: ndimage._ni_support._normalize_sequence() fails with numpy.int64
#4233: 1D scipy.interpolate.griddata using method=nearest produces nans…
#4375: All tests fail due to bad file permissions
#4580: scipy.ndimage.filters.convolve documenation is incorrect
#4627: logsumexp with sign indicator - enable calculation with negative…
#4702: logsumexp with zero scaling factor
#4834: gammainc should return 1.0 instead of NaN for infinite x
#4838: enh: exprel special function
#4862: the scipy.special.boxcox function is inaccurate for denormal…
#4887: Spherical harmonic incongruences
#4895: some scipy ufuncs have inconsistent output dtypes?
#4923: logm does not aggressively convert complex outputs to float
#4932: BUG: stats: The fit method of the distributions silently ignores…
#4957: Docstring for pbvv_seq is wrong
#4967: block_diag should look at dtypes of all arguments, not only the…
#5037: scipy.optimize.minimize error messages are printed to stdout…
#5039: Cubic interpolation: On entry to DGESDD parameter number 12 had…
#5163: Base case example of Hierarchical Clustering (offer)
#5181: BUG: stats.genextreme.entropy should use the explicit formula
#5184: Some? wheels don’t express a numpy dependency
#5197: mstats: test_kurtosis fails (ULP max is 2)
#5260: Typo causing an error in splrep
#5263: Default epsilon in rbf.py fails for colinear points
#5276: Reading empty (no data) arff file fails
#5280: 1d scipy.signal.convolve much slower than numpy.convolve
#5326: Implementation error in scipy.interpolate.PchipInterpolator
#5370: Test issue with test_quadpack and libm.so as a linker script
#5426: ERROR: test_stats.test_chisquare_masked_arrays
#5427: Automate installing correct numpy versions in numpy-vendor image
#5430: Python3 : Numpy scalar types “not iterable”; specific instance…
#5450: BUG: spatial.ConvexHull triggers a seg. fault when given nans.
#5478: clarify the relation between matrix normal distribution and multivariate_normal
#5539: lstsq related test failures on windows binaries from numpy-vendor
#5560: doc: scipy.stats.burr pdf issue
#5571: lstsq test failure after lapack_driver change
#5577: ordqz segfault on Python 3.4 in Wine
#5578: scipy.linalg test failures on python 3 in Wine
#5607: Overloaded ‘isnan(double&)’ is ambiguous when compiling with…
#5629: Test for lstsq randomly failed
#5630: memory leak with scipy 0.16 spatial cKDEtree
#5689: isnan errors compiling scipy/special/Faddeeva.cc with clang++
#5694: fftpack test failure in test_import
#5719: curve_fit(method!=”lm”) ignores initial guess
#4865: BUG: scipy.io.mmio.write: error with big indices and low precision
#4869: add as_inexact option to _lib._util._asarray_validated
#4884: ENH: Finite difference approximation of Jacobian matrix
#4890: ENH: Port cKDTree query methods to C++, allow pickling on Python…
#4892: how much doctesting is too much?
#4896: MAINT: work around a possible numpy ufunc loop selection bug
#4898: MAINT: A bit of pyflakes-driven cleanup.
#4899: ENH: add ‘alternative’ keyword to hypothesis tests in stats
#4903: BENCH: Benchmarks for interpolate module
#4905: MAINT: prepend underscore to mask_to_limits; delete masked_var.
#4906: MAINT: Benchmarks for optimize.leastsq
#4910: WIP: Trimmed statistics functions have inconsistent API.
#4912: MAINT: fix typo in stats tutorial. Closes gh-4911.
#4914: DEP: deprecate scipy.stats.ss and scipy.stats.square_of_sums.
#4924: MAINT: if the imaginary part of logm of a real matrix is small,…
#4930: BENCH: Benchmarks for signal module
#4941: ENH: update find_repeats.
#4942: MAINT: use np.float64_t instead of np.float_t in cKDTree
#4944: BUG: integer overflow in correlate_nd
#4951: do not ignore invalid kwargs in distributions fit method
#4958: Add some detail to docstrings for special functions
#4961: ENH: stats.describe: add bias kw and empty array handling
#4963: ENH: scipy.sparse.coo.coo_matrix.__init__: less memory needed
#4968: DEP: deprecate stats.f_value* and mstats.f_value* functions.
#4969: ENH: review stats.relfreq and stats.cumfreq; fixes to stats.histogram
#4971: Extend github source links to line ranges
#4972: MAINT: impove the error message in validate_runtests_log
#4976: DEP: deprecate scipy.stats.threshold
#4977: MAINT: more careful dtype treatment in block diagonal matrix…
#4979: ENH: distributions, complex arguments
#4984: clarify dirichlet distribution error handling
#4992: ENH: stats.fligner and stats.bartlett empty input handling.
#4996: DOC: fix stats.spearmanr docs
#4997: Fix up boxcox for underflow / loss of precision
#4998: DOC: improved documentation for stats.ppcc_max
#5000: ENH: added empty input handling scipy.moment; doc enhancements
#5003: ENH: improves rankdata algorithm
#5005: scipy.stats: numerical stability improvement
#5007: ENH: nan handling in functions that use stats._chk_asarray
#5009: remove coveralls.io
#5010: Hypergeometric distribution log survival function
#5014: Patch to compute the volume and area of convex hulls
#5015: DOC: Fix mistaken variable name in sawtooth
#5016: DOC: resample example
#5017: DEP: deprecate stats.betai and stats.chisqprob
#5018: ENH: Add test on random inpu to volume computations
#5026: BUG: Fix return dtype of lil_matrix.getnnz(axis=0)
#5030: DOC: resample slow for prime output too
#5033: MAINT: integrate, special: remove unused R1MACH and Makefile
#5034: MAINT: signal: lift max_len_seq validation out of Cython
#5035: DOC/MAINT: refguide / doctest drudgery
#5041: BUG: fixing some small memory leaks detected by cppcheck
#5044: [GSoC] ENH: New least-squares algorithms
#5050: MAINT: C fixes, trimmed a lot of dead code from Cephes
#5057: ENH: sparse: avoid densifying on sparse/dense elementwise mult
#5058: TST: stats: add a sample distribution to the test loop
#5061: ENH: spatial: faster 2D Voronoi and Convex Hull plotting
#5065: TST: improve test coverage for stats.mvsdist and stats.bayes_mvs
#5066: MAINT: fitpack: remove a noop
#5067: ENH: empty and nan input handling for stats.kstat and stats.kstatvar
#5071: DOC: optimize: Correct paper reference, add doi
#5072: MAINT: scipy.sparse cleanup
#5073: DOC: special: Add an example showing the relation of diric to…
#5075: DOC: clarified parameterization of stats.lognorm
#5076: use int, float, bool instead of np.int, np.float, np.bool
#5078: DOC: Rename fftpack docs to README
#5081: BUG: Correct handling of scalar ‘b’ in lsmr and lsqr
#5082: loadmat variable_names: don’t confuse [] and None.
#5083: Fix integrate.fixed_quad docstring to indicate None return value
#5086: Use solve() instead of inv() for gaussian_kde
#5090: MAINT: stats: add explicit _sf, _isf to gengamma distribution
#5094: ENH: scipy.interpolate.NearestNDInterpolator: cKDTree configurable
#5098: DOC: special: fix typesetting in *_roots quadrature functions
#5099: DOC: make the docstring of stats.moment raw
#5104: DOC/ENH fixes and micro-optimizations for scipy.linalg
#5105: enh: made l-bfgs-b parameter for the maximum number of line search…
#5106: TST: add NIST test cases to stats.f_oneway
#5110: [GSoC]: Bounded linear least squares
#5111: MAINT: special: Cephes cleanup
#5118: BUG: FIR path failed if len(x) < len(b) in lfilter.
#5124: ENH: move the filliben approximation to a publicly visible function
#5126: StatisticsCleanup: stats.kruskal review
#5130: DOC: update PyPi trove classifiers. Beta -> Stable. Add license.
#5131: DOC: differential_evolution, improve docstring for mutation and…
#5132: MAINT: differential_evolution improve init_population_lhs comments…
#5133: MRG: rebased mmio refactoring
#5135: MAINT: stats.mstats consistency with stats.stats
#5139: TST: linalg: add a smoke test for gh-5039
#5140: EHN: Update constants.codata to CODATA 2014
#5145: added ValueError to docstring as possible error raised
#5146: MAINT: Improve implementation details and doc in stats.shapiro
#5147: [GSoC] ENH: Upgrades to curve_fit
#5150: Fix misleading wavelets/cwt example
#5152: BUG: cluster.hierarchy.dendrogram: missing font size doesn’t…
#5153: add keywords to control the summation in discrete distributions…
#5156: DOC: added comments on algorithms used in Legendre function
#5158: ENH: optimize: add the Hungarian algorithm
#5164: MAINT: fix cluster.hierarchy.dendrogram issues and docs
#5166: MAINT: changed stats.pointbiserialr to delegate to stats.pearsonr
#5167: ENH: add nan_policy to stats.kendalltau.
#5168: TST: added nist test case (Norris) to stats.linregress.
#5169: update lpmv docstring
#5171: Clarify metric parameter in linkage docstring
#5172: ENH: add mode keyword to signal.spectrogram
#5177: DOC: graphical example for KDTree.query_ball_point
#5179: MAINT: stats: tweak the formula for ncx2.pdf
#5188: MAINT: linalg: A bit of clean up.
#5189: BUG: stats: Use the explicit formula in stats.genextreme.entropy
#5193: BUG: fix uninitialized use in lartg
#5194: BUG: properly return error to fortran from ode_jacobian_function
#5198: TST: Fix TestCtypesQuad failure on Python 3.5 for Windows
#5201: allow extrapolation in interp1d
#5209: MAINT: Change complex parameter to boolean in Y_()
#5213: BUG: sparse: fix logical comparison dtype conflicts
#5216: BUG: sparse: fixing unbound local error
#5218: DOC and BUG: Bessel function docstring improvements, fix array_like,…
#5222: MAINT: sparse: fix COO ctor
#5224: DOC: optimize: type of OptimizeResult.hess_inv varies
#5228: ENH: Add maskandscale support to netcdf; based on pupynere and…
#5229: DOC: sparse.linalg.svds doc typo fixed
#5234: MAINT: sparse: simplify COO ctor
#5235: MAINT: sparse: warn on todia() with many diagonals
#5236: MAINT: ndimage: simplify thread handling/recursion + constness
#5239: BUG: integrate: Fixed issue 4118
#5241: qr_insert fixes, closes #5149
#5246: Doctest tutorial files
#5247: DOC: optimize: typo/import fix in linear_sum_assignment
#5248: remove inspect.getargspec and test python 3.5 on Travis CI
#5250: BUG: Fix sparse multiply by single-element zero
#5261: Fix bug causing a TypeError in splrep when a runtime warning…
#5262: Follow up to 4489 (Addition LAPACK routines in linalg.lstsq)
#5264: ignore zero-length edges for default epsilon
#5269: DOC: Typos and spell-checking
#5272: MAINT: signal: Convert array syntax to memoryviews
#5273: DOC: raw strings for docstrings with math
#5274: MAINT: sparse: update cython code for MST
#5278: BUG: io: Stop guessing the data delimiter in ARFF files.
#5289: BUG: misc: Fix the Pillow work-around for 1-bit images.
#5291: ENH: call np.correlate for 1d in scipy.signal.correlate
#5294: DOC: special: Remove a potentially misleading example from the…
#5295: Simplify replacement of fftpack by pyfftw
#5296: ENH: Add matrix normal distribution to stats
#5297: Fixed leaf_rotation and leaf_font_size in Python 3
#5303: MAINT: stats: rewrite find_repeats
#5307: MAINT: stats: remove unused Fortran routine
#5313: BUG: sparse: fix diags for nonsquare matrices
#5315: MAINT: special: Cephes cleanup
#5316: fix input check for sparse.linalg.svds
#5319: MAINT: Cython code maintenance
#5328: BUG: Fix place_poles return values
#5329: avoid a spurious divide-by-zero in Student t stats
#5334: MAINT: integrate: miscellaneous cleanup
#5340: MAINT: Printing Error Msg to STDERR and Removing iterate.dat
#5347: ENH: add Py3.5-style matmul operator (e.g. A @ B) to sparse linear…
#5350: FIX error, when reading 32-bit float wav files
#5351: refactor the PCHIP interpolant’s algorithm
#5354: MAINT: construct csr and csc matrices from integer lists
#5359: add a fast path to interp1d
#5364: Add two fill_values to interp1d.
#5366: Fixed typo in the documentation for scipy.signal.cwt() per #5290.
#5367: DOC updated scipy.spatial.Delaunay example
#5368: ENH: Do not create a throwaway class at every function call
#5372: DOC: spectral: fix reference formatting
#5375: PEP8 amendments to ffpack_basic.py
#5377: BUG: integrate: builtin name no longer shadowed
#5381: PEP8ified fftpack_pseudo_diffs.py
#5385: BLD: fix Bento build for changes to optimize and spatial
#5386: STY: PEP8 amendments to interpolate.py
#5387: DEP: deprecate stats.histogram
#5388: REL: add “make upload” command to doc/Makefile.
#5389: DOC: updated origin param of scipy.ndimage.filters.convolve
#5395: BUG: special: fix a number of edge cases related to x = np.inf.
#5398: MAINT: stats: avoid spurious warnings in lognorm.pdf(0, s)
#5407: ENH: stats: Handle mu=0 in stats.poisson
#5409: Fix the behavior of discrete distributions at the right-hand…
#5412: TST: stats: skip a test to avoid a spurious log(0) warning
#5413: BUG: linalg: work around LAPACK single-precision lwork computation…
#5414: MAINT: stats: move creation of namedtuples outside of function…
#5415: DOC: fix up sections in ToC in the pdf reference guide
#5416: TST: fix issue with a ctypes test for integrate on Fedora.
#5418: DOC: fix bugs in signal.TransferFunction docstring. Closes gh-5287.
#5419: MAINT: sparse: fix usage of NotImplementedError
#5420: Raise proper error if maxiter < 1
#5422: DOC: changed documentation of brent to be consistent with bracket
#5444: BUG: gaussian_filter, BPoly.from_derivatives fail on numpy int…
#5445: MAINT: stats: fix incorrect deprecation warnings and test noise
#5446: DOC: add note about PyFFTW in fftpack tutorial.
#5459: DOC: integrate: Some improvements to the differential equation…
#5465: BUG: Relax mstats kurtosis test tolerance by a few ulp
#5471: ConvexHull should raise ValueError for NaNs.
#5473: MAINT: update decorators.py module to version 4.0.5
#5476: BUG: imsave searches for wrong channel axis if image has 3 or…
#5477: BLD: add numpy to setup/install_requires for OS X wheels
#5479: ENH: return Jacobian/Hessian from BasinHopping
#5484: BUG: fix ttest zero division handling
#5486: Fix crash on kmeans2
#5491: MAINT: Expose parallel build option to runtests.py
#5494: Sort OptimizeResult.__repr__ by key
#5496: DOC: update the author name mapping
#5497: Enhancement to binned_statistic: option to unraveled returned…
#5498: BUG: sparse: fix a bug in sparsetools input dtype resolution
#5500: DOC: detect unprintable characters in docstrings
#5505: BUG: misc: Ensure fromimage converts mode ‘P’ to ‘RGB’ or ‘RGBA’.
#5514: DOC: further update the release notes
#5515: ENH: optionally disable fixed-point acceleration
#5517: DOC: Improvements and additions to the matrix_normal doc
#5518: Remove wrappers for LAPACK deprecated routines
#5521: TST: skip a linalg.orth memory test on 32-bit platforms.
#5523: DOC: change a few floats to integers in docstring examples
#5524: DOC: more updates to 0.17.0 release notes.
#5525: Fix to minor typo in documentation for scipy.integrate.ode
#5527: TST: bump arccosh tolerance to allow for inaccurate numpy or…
#5535: DOC: signal: minor clarification to docstring of TransferFunction.
#5538: DOC: signal: fix find_peaks_cwt documentation
#5545: MAINT: Fix typo in linalg/basic.py
#5547: TST: mark TestEig.test_singular as knownfail in master.
#5550: MAINT: work around lstsq driver selection issue
#5556: BUG: Fixed broken dogbox trust-region radius update
#5561: BUG: eliminate warnings, exception (on Win) in test_maskandscale;…
#5567: TST: a few cleanups in the test suite; run_module_suite and clearer…
#5568: MAINT: simplify poisson’s _argcheck
#5569: TST: bump GMean test tolerance to make it pass on Wine
#5572: TST: lstsq: bump test tolerance for TravisCI
#5573: TST: remove use of np.fromfile from cluster.vq tests
#5576: Lapack deprecations
#5579: TST: skip tests of linalg.norm axis keyword on numpy <= 1.7.x
#5582: Clarify language of survival function documentation
#5583: MAINT: stats/tests: A bit of clean up.
#5588: DOC: stats: Add a note that stats.burr is the Type III Burr distribution.
#5595: TST: fix test_lamch failures on Python 3
#5600: MAINT: Ignore spatial/ckdtree.cxx and .h
#5602: Explicitly numbered replacement fields for maintainability
#5605: MAINT: collection of small fixes to test suite
#5624: FIX: Fix interpolate
#5625: BUG: msvc9 binaries crash when indexing std::vector of size 0
#5635: BUG: misspelled __dealloc__ in cKDTree.
#5642: STY: minor fixup of formatting of 0.17.0 release notes.
#5643: BLD: fix a build issue in special/Faddeeva.cc with isnan.
#5661: TST: linalg tests used stdlib random instead of numpy.random.
#5682: backports for 0.17.0
#5696: Minor improvements to least_squares’ docstring.
#5697: BLD: fix for isnan/isinf issues in special/Faddeeva.cc
#5720: TST: fix for file opening error in fftpack test_import.py
#5722: BUG: Make curve_fit respect an initial guess with bounds
#5726: Backports for v0.17.0rc2
#5727: API: Changes to least_squares API