feat: Gradient Boosting Tree predicted leaf as feature

Abierto
#293 4 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python, scikit-learn

Línea de trabajo

The request is for a DecisionTreeLeafEncoder transformer that adds LightGBM's per-tree leaf predictions as features; the payload names no existing files, so begin by finding how the repository's other sklearn-style transformers implement fit and transform. Before writing code, check with the maintainers whether a LightGBM dependency is acceptable, since the thread has been silent for about five years. Done means a transformer that returns leaf indices per tree, with tests covering fit, transform, and sklearn compatibility.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Is your feature request related to a problem? Please describe.

LightGBM has the option to return the predicted decision tree leaf for every model. From the documentation

If pred_leaf=True, the predicted leaf of every tree for each sample.

Reference

Describe the solution you'd like

A DecisionTreeLeafEncoder method that returns the results from the predict method of lightgbm as a new feature.

Lenguaje dominante
Python
Estrellas
2.3k
Forks
391
Merge medio
11 h 34 min
PR fusionados (30 d)
11

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de feature-engine/feature_engine

Todos los issues de feature-engine/feature_engine

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.