awslabs/gluonts

`softplus` can return negative values

Open

#1894 aperta il 17 feb 2022

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Python (753 fork)batch import
buggood first issuemxnet

Metriche repository

Star
 (3888 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor