puncc icon indicating copy to clipboard operation
puncc copied to clipboard

Multivariate quantile

Open M-Mouhcine opened this issue 2 years ago • 0 comments

The method deel.puncc.api.utils.quantile is to be updated to compute the $\boldsymbol{x}$-th quantile of a matrix-shaped input $\boldsymbol{a}$ $\in \mathbb{R} ^{n \times m}$, $n$ being the number of examples and $m$ the number of attributes in the output space. The expected result is a vector $\boldsymbol{q}$ $\in \mathbb{R}^m$, where the $i$-th element is the $x_i$-th quantile of the $i$-th column of $a$.

  1. $\boldsymbol{x}$ can either be a vector $\in (0,1)^{m}$ or a scalar. In the latter case, it is duplicated $m$ times to be $\in (0,1)^{m}$.
  2. The weights $\boldsymbol{w}$ should either be $\in (0,1)^{n \times m}$ or $\in \mathbb{R} ^{n}$. In the latter case, it is duplicate $m$ times to be $\in (0,1)^{n \times m}$.
  3. Update NotImplementedError raised when $a$ is not unidimensional.
  4. The implementation should ensure backwards compatibility. All previous code must run with the previously provided function signature.
  5. Update documentation.
  6. Add tests.

M-Mouhcine avatar Aug 31 '23 16:08 M-Mouhcine