How to adapt to breaking change in `fit` and `predict` for DecisionTree.jl models
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Documentación
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- julia
- Área
- documentation
Línea de trabajo
Empieza revisando los ejemplos de migración del cuerpo del issue para MMI.fit, MMI.predict, reformat y selectrows. Se considera hecho documentar las formas de llamada compatibles con versiones anteriores y la regla de submuestreo; el payload no menciona ningún archivo del repositorio, prueba ni punto de entrada.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Version 0.3.1 (to be yanked) and version 0.4 introduced a breaking change to MLJModelInterface.fit and MLJModelInterface.predict for all 5 models. This change only effects developers who directly call those functions. Regular MLJ users who interact through the usual "machine" interface are not affected.
What changed is that the models mentioned now implement the MLJModelInterface data-front end. The most likely reason for breakage is that fit and predict are not being called with the model-specific form of data generated by the reformat method. This post describes a backwards-compatible fix.
Adding the model-specific pre-processor reformat to your fit/predict calls
If you are not already using reformat in your fit and predict calls then, where you previously made a call
MMI.fit(model, verbosity, data...) # MMI = MLJModelInterface
you instead want
MMI.fit(model, verbosity, MMI.reformat(model, data...)...)
And instead of
MMI.predict(model, fitresult, Xnew)
you want
MMI.predict(model, fitresult, MMI.reformat(model, Xnew)...)
You have backwards compatibility because the fallback for reformat just slurps the data. This also means you can change these calls for all models (not just the DecisionTree ones).
Subsampling
If you subsample reformatted data before passing to fit or predict, you should always use subsampled_data = selectrows(model, I, reformatted_data...) where I is the indices for subsampling.
- Lenguaje dominante
- Julia
- Estrellas
- 9
- Forks
- 3
- Métricas de merge de PR
- Sin PR fusionados en 30 d
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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de JuliaAI/MLJDecisionTreeInterface.jl
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
JuliaAI/MLJDecisionTreeInterface.jl#59 · 1 comentario ·
-
Plotting trees with TreeRecipe.jlQuizá libre de nuevo @adarshpalaskar1 la tomó hace 995 días y no hay ningún pull request abierto. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
JuliaAI/MLJDecisionTreeInterface.jl#56 · 3 comentarios ·
Todos los issues de JuliaAI/MLJDecisionTreeInterface.jl
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Sienna-Platform/PowerSimulations.jl#1737 ·
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
FluxML/Optimisers.jl#254 ·
-
Minor: floodplain warning percentage, scalar output error message and a never-true identity checkAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
JuliaAI/MLJTransforms.jl#101 ·
Los mantenedores suelen responder en 1 día
-
@contents blocks fail to render on Julia 1.14Posiblemente ocupada @sbfnk la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
LuxDL/DocumenterVitepress.jl#410 ·