pydata / pydata/xarray

Aesara as an array backend in Xarray

Open
#7,515 11 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement topic-arrays
Dominant language
Python
Stars
4.2k
Forks
1.4k
Avg merge
2d 15h
Merged PRs (30d)
14

Description

Is your feature request related to a problem?

I recently learned about a meta-tensor library called Aesara which got me wondering if it would be a good array backend for Xarray.

Aesara is a Python library that allows you to define, optimize/rewrite, and evaluate mathematical expressions involving multi-dimensional arrays efficiently. It is composed of different parts:

  • Symbolic representation of mathematical operations on arrays
  • Speed and stability optimization
  • Efficient symbolic differentiation
  • Powerful rewrite system to programmatically modify your models
  • Extendable backends. Aesara currently compiles to C, Jax and Numba.

image

xref: https://github.com/aesara-devs/aesara/issues/352, @OriolAbril, @twiecki

Has anyone looked into this yet?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue proposes evaluating Aesara as an array backend for Xarray and links to the related Aesara issue 352. Start by reviewing Xarray's existing array-backend interfaces and the linked discussion; done would require a decided compatibility and implementation scope, which the issue does not yet define.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.