UnivariateStandardizer has human_name "single variable discretizer"
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 88/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- julia
- Domain
- machine-learning
Research direction
Open src/transformers/other_transformers/standardizer.jl at the metadata_model call for UnivariateStandardizer; the issue links the relevant lines. Change its human name to “single variable standardizer” and add the suggested MMI.human_name check for the transformer. Done when the check passes and the generated model description names a standardizer.
Written by the indexing model from the issue text.
Description
The metadata_model call for UnivariateStandardizer sets its human_name to "single variable discretizer". It looks like it was copied over from UnivariateDiscretizer and never changed:
metadata_model(UnivariateStandardizer,
input_scitype = AbstractVector{<:Infinite},
output_scitype = AbstractVector{Continuous},
human_name = "single variable discretizer",
load_path = "MLJTransforms.UnivariateStandardizer")
So the standardizer ends up with the same human name as the real discretizer (univariate_discretizer.jl#L96).
Minimal example
using MLJBase, MLJTransforms
@show MLJBase.human_name(UnivariateStandardizer)
@show MLJBase.human_name(UnivariateDiscretizer)
println(MLJBase.MLJModelInterface.doc_header(UnivariateStandardizer))
Output:
MLJBase.human_name(UnivariateStandardizer) = "single variable discretizer"
MLJBase.human_name(UnivariateDiscretizer) = "single variable discretizer"
and the generated doc header for UnivariateStandardizer says:
A model type for constructing a single variable discretizer, based on
[MLJTransforms.jl](https://github.com/JuliaAI/MLJTransforms.jl), and implementing the MLJ
model interface.
The wrong name has also been picked up by the MLJModels registry. On the current MLJModels dev branch, src/registry/Metadata.toml has:
[MLJTransforms.UnivariateStandardizer]
...
":human_name" = "single variable discretizer"
So anything that shows the registry metadata (for example info("UnivariateStandardizer") or docs generated from it) will describe the standardizer as a discretizer.
Expected
Something like human_name = "single variable standardizer". After that, the registry entry would need regenerating the next time MLJModels updates it.
As far as I can tell, no test checks human_name for the transformers, so this went unnoticed. A small check like @test MMI.human_name(UnivariateStandardizer) == "single variable standardizer" would catch it.
Versions
- MLJTransforms 0.2.4,
devat d3e3db3 - MLJBase 1.15.4
- Julia 1.13.4 (Linux x86_64)
- Dominant language
- Julia
- Stars
- 1
- Forks
- 5
- Avg merge
- 6h 44m
- Merged PRs (30d)
- 3
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/MLJTransforms.jl
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
JuliaAI/MLJTransforms.jl#120 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
JuliaAI/MLJTransforms.jl#119 ·
Maintainers usually reply within 1 day
-
TargetEncoder: m = :auto uses the inverse of the empirical Bayes ratio and gives NaN for single-row levelsPossibly taken @EssamWisam claimed this 4 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
JuliaAI/MLJTransforms.jl#113 · 1 reaction · 1 assignee ·
Maintainers usually reply within 1 day
-
ContinuousEncoder docstring: wrong `drop_last` default and nonexistent `ordered_factors` optionPossibly taken @ablaom claimed this 5 days ago. Opendocumentation
Difficulty 1/5 Under an hour Newbie friendliness 88/100
JuliaAI/MLJTransforms.jl#109 · 1 comment · 1 reaction · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
JuliaAI/MLJTransforms.jl#108 · 1 comment ·
Maintainers usually reply within 1 day
All issues in JuliaAI/MLJTransforms.jl
Similar issues
-
Release CorleoneInverse as 0.1.1Possibly taken @ChrisRackauckas-Claude claimed this 1 day ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 78/100
SciML/Corleone.jl#200 · 1 comment ·
Maintainers usually reply within 1 day
-
tagbot-manual
Difficulty 1/5 Under an hour Newbie friendliness 82/100
SciML/MonteCarloIntegration.jl#49 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
jaff-chemistry/jaff#231 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SciML/RecursiveArrayTools.jl#701 ·
-
DPRKN6 docstring: the velocity interpolant is 5th order, not 6thPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
SciML/OrdinaryDiffEq.jl#5175 ·
Maintainers usually reply within 1 day