awslabs/gluonts

`softplus` can return negative values

Aberta

#1.894 aberto em 17 de fev. de 2022

 (1 comentário) (0 reação) (0 responsável)Python (753 forks)batch import
buggood first issuemxnet

Métricas do repositório

Stars
 (3.888 estrelas)
Métricas de merge de PR
 (Mesclagem média 26d 17h) (4 fundiu PRs em 30d)

Description

See also fixes needed in #1893 because of this, and issue referenced therein.

To Reproduce

import mxnet as mx
from gluonts.mx.distribution.distribution import softplus
softplus(mx.nd, mx.nd.array([-20]))

Error message or code output

[-1.9073486e-06]
<NDArray 1 @cpu(0)>

Environment

  • Operating system: macos
  • Python version: 3.7.8
  • GluonTS version: a75acdb
  • MXNet version: 1.8.0

Guia do colaborador