Arrange for feature importances of a wrapped model to pass through the `BalancedModel` wrapper
@OkonSamuel is already working on this.
Since Apr 5, 2026.
Assessment
This issue has not been assessed yet.
Description
using MLJ
X, y = make_moons()
# this works:
model = (@load EvoTreeClassifier)()
mach = machine(model, X, y) |> fit!
feature_importances(mach)
# 2-element Vector{Pair{Symbol, Float64}}:
# :x2 => 0.8189696086438946
# :x1 => 0.18103039135610546
# this doesn't work as expected:
balancer = (@load SMOTE)()
balanced_model = BalancedModel(model; balancer)
mach = machine(balanced_model, X, y) |> fit!
feature_importances(mach) |> isnothing
# true
This commit at MLJIteration shows how feature importance support was added for the IteratedModel wrapper.
- Dominant language
- Julia
- Stars
- 6
- Forks
- 1
- 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/MLJBalancing.jl
-
Tests fail on Julia 1.11May be free again @EssamWisam claimed this 496 days ago, and no pull request is open. Open
JuliaAI/MLJBalancing.jl#29 · 2 comments · 1 assignee ·
All issues in JuliaAI/MLJBalancing.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 ·