SheffieldML/GPy

There are `assert`s where we need `ValueError`s

Open

#922 aperta il 27 mag 2021

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Python (579 fork)batch import
good first issue

Metriche repository

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

Descrizione

We should not use assert to address bad user input, but there are such uses of assert in the GPy codebase. Instead, we should use ValueError. For more details, see https://github.com/SheffieldML/GPy/pull/917#discussion_r639520080

Guida contributor