Aug. 16, 2022, 9:26 a.m. | /u/Conchylicultor

Machine Learning www.reddit.com

Available at: [https://github.com/google-research/dataclass\_array](https://github.com/google-research/dataclass_array)

\`dataclass\_array\` allow to have structured data that can be of arbitrary batch shape. For example:

Defining a dataclass array:

@dataclasses.dataclass(frozen=True)
class Ray(dca.DataclassArray):
pos: FloatArray['*batch_shape 3']
dir: FloatArray['*batch_shape 3']

Dataclass array can then be manipulated as if they were ndarray, while keeping the internal semantic structure

rays = camera.rays() # Returns `Ray` with shape `(h, w)`

rays.shape == (h, w)
rays.pos.shape == (h, w, 3) # Individual ndarray fields accessible

rays = rays.reshape('h w -> w h') # …

arrays jax machinelearning numpy

Data Scientist (m/f/x/d)

@ Symanto Research GmbH & Co. KG | Spain, Germany

Automated Greenhouse Expert - Phenotyping & Data Analysis (all genders)

@ Bayer | Frankfurt a.M., Hessen, DE

Machine Learning Scientist II

@ Expedia Group | India - Bengaluru

Data Engineer/Senior Data Engineer, Bioinformatics

@ Flagship Pioneering, Inc. | Cambridge, MA USA

Intern (AI lab)

@ UL Solutions | Dublin, Co. Dublin, Ireland

Senior Operations Research Analyst / Predictive Modeler

@ LinQuest | Colorado Springs, Colorado, United States