aai-institute / aai-institute/pyDVL

Include shape in array types

Abierto
#541 1 comentario 0 reacciones 0 asignados Ver en GitHub
enhancement good first issue
Lenguaje dominante
Python
Estrellas
146
Forks
10
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Using [nptyping and beartype](https://github.com/ramonhagenaars/nptyping/blob/master/USERDOCS.md#Quickstart) we can pin down the dimensions that we accept. For instance, the constructor of `ValuationResult` can only accept 1D arrays but we don't enforce that.

Alternatively, [jaxtyping](https://github.com/patrick-kidger/jaxtyping) supports jax, torch and numpy in one go. But python 3.9 is required so we'd have to wait until EOL for 3.8 at the very least.

Are there any other libraries?

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.