home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 885216203

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/5629#issuecomment-885216203 https://api.github.com/repos/pydata/xarray/issues/5629 885216203 IC_kwDOAMm_X840w1PL 39069044 2021-07-22T20:37:04Z 2021-07-22T20:37:04Z CONTRIBUTOR

Potentially a useful comparison: here is the task graph for the same problem posed to da.curvefit, which uses xr.apply_ufunc(scipy.optimize.curvefit, ..., vectorize=True). Looks a lot cleaner, and I think xr.polyfit could be re-implemented this way without much trouble. ```python import xarray as xr import dask.array as dsa

def linear(x, m, b): return m * x + b

da = xr.DataArray(dsa.random.random((4,6, 100), chunks=(1,2,100)), dims=['x','y', 'time']) fit = da.curvefit('time', linear).curvefit_coefficients ```

{
    "total_count": 3,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 3,
    "rocket": 0,
    "eyes": 0
}
  950882492
Powered by Datasette · Queries took 0.619ms · About: xarray-datasette