Missing Categorical feature supports for HistgradientBoost
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- julia, scikit-learn
- Domain
- machine-learning
Research direction
Start with the HistGradientBoostingClassifier meta declaration shown in the issue and compare it with Scikit-learn's categorical-support documentation. Determine which MLJ table scitypes allow categorical columns while preserving the existing target and weights constraints, then verify that categorical features can be passed without preprocessing.
Written by the indexing model from the issue text.
Description
HistgradientBoost methods from Scikit-learn support native categorical features, meaning no preprocessing is needed, as shown here:
https://scikit-learn.org/stable/modules/ensemble.html#categorical-support-gbdt
However, the MLJ interface seems to enforce the input to be continuous tables, as seen in the source code:
meta(HistGradientBoostingClassifier,
input = Table(Continuous),
target = AbstractVector{<:Finite},
weights = false
)
Since MLJ enforces the scitype schema, the categorical feature columns should be auto-inferred. I hope this can be addressed, thanks.
On second thoughts, since scikit-learn will auto-infer categorical features based on dtype, maybe relaxing the Table type to some union type would suffice.
- Dominant language
- Julia
- Stars
- 14
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from JuliaAI/MLJScikitLearnInterface.jl
-
enhancement next breaking release
Difficulty 5/5 Over a week Newbie friendliness 25/100
JuliaAI/MLJScikitLearnInterface.jl#47 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
JuliaAI/MLJScikitLearnInterface.jl#46 · 3 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
All issues in JuliaAI/MLJScikitLearnInterface.jl
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Sienna-Platform/PowerSimulations.jl#1737 ·
Maintainers usually reply within 4 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
FluxML/Optimisers.jl#254 ·
-
Minor: floodplain warning percentage, scalar output error message and a never-true identity checkOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
JuliaAI/MLJTransforms.jl#101 ·
Maintainers usually reply within 1 day
-
@contents blocks fail to render on Julia 1.14Possibly taken @sbfnk claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
LuxDL/DocumenterVitepress.jl#410 ·