alteryx / alteryx/evalml

Specify data errors in objective scoring

Abierto
#3,546 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
850
Forks
96
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

In [`objective_base.py`](https://github.com/alteryx/evalml/blob/main/evalml/objectives/objective_base.py#L142-L143) we currently have logic to raise an error if `y_true` contains `NaN` or `inf`. However, this logic doesn't allow users to debug properly as there couple be multiple reasons for this error:
- `y_true` contains `NaN`s
- `y_true` contains `inf`
- `y_true` contains `inf` due to float restrictions

AC:
- refactor above logic to specify whether the error is being raised is for `NaNs` or `inf` and output the list/series indices and list/series itself to allow users to debug.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.