MCPcopy Index your code
hub / github.com/pydata/xarray / least_squares

Function least_squares

xarray/core/duck_array_ops.py:855–860  ·  view source on GitHub ↗

Return the coefficients and residuals of a least-squares fit.

(lhs, rhs, rcond=None, skipna=False)

Source from the content-addressed store, hash-verified

853
854
855def least_squares(lhs, rhs, rcond=None, skipna=False):
856 """Return the coefficients and residuals of a least-squares fit."""
857 if is_duck_dask_array(rhs):
858 return dask_array_ops.least_squares(lhs, rhs, rcond=rcond, skipna=skipna)
859 else:
860 return nputils.least_squares(lhs, rhs, rcond=rcond, skipna=skipna)
861
862
863def _push(array, n: int | None = None, axis: int = -1):

Callers 2

polyfitFunction · 0.90
test_least_squaresFunction · 0.90

Calls 1

is_duck_dask_arrayFunction · 0.90

Tested by 1

test_least_squaresFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…