alteryx / alteryx/evalml

Use `ww.init_series(schema=schema)` to retain origin in partial dependence

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

Descripción

- Currently, we explicitly pass along the origin and logical type when initializing woodwork on the updated partial dependence column. This means that if predictions ever become dependent on another woodwork attribute, we have to remember to add it at partial dependence, or we'll get incorrect predictions. To avoid that, we can pass along the original column's woodwork schema, but we have to wait for that ability to be implemented in `ww.init_schema` in [this woodwork issue](https://github.com/alteryx/woodwork/issues/1573).

Once that issue is completed and released, we should be able to do the following in partial dependence:

```python
X_eval.ww[variable] = ww.init_series(
part_dep_column,
schema=X_eval.ww.columns[variable]
)
```

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.