SheffieldML/GPy

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

Open

#922 aberto em 27 de mai. de 2021

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)Python (579 forks)batch import
good first issue

Métricas do repositório

Stars
 (1.927 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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

Guia do colaborador