UnivariateStandardizer has human_name "single variable discretizer"
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 88/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- julia
- Lĩnh vực
- machine-learning
Hướng nghiên cứu
Mở src/transformers/other_transformers/standardizer.jl tại lệnh gọi metadata_model cho UnivariateStandardizer; issue liên kết đến các dòng liên quan. Đổi tên hiển thị thành “single variable standardizer” và thêm kiểm tra MMI.human_name được đề xuất cho transformer. Hoàn tất khi kiểm tra chạy qua và phần mô tả model được tạo ra có nhắc đến một bộ chuẩn hóa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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)
- Ngôn ngữ chính
- Julia
- Star
- 1
- Fork
- 5
- Merge trung bình
- 6 giờ 44 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của JuliaAI/MLJTransforms.jl
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
JuliaAI/MLJTransforms.jl#120 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
JuliaAI/MLJTransforms.jl#119 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
TargetEncoder: m = :auto uses the inverse of the empirical Bayes ratio and gives NaN for single-row levelsCó thể đã có người làm @EssamWisam đã nhận 4 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
JuliaAI/MLJTransforms.jl#113 · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ContinuousEncoder docstring: wrong `drop_last` default and nonexistent `ordered_factors` optionCó thể đã có người làm @ablaom đã nhận 5 ngày trước. Đang mởdocumentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
JuliaAI/MLJTransforms.jl#109 · 1 bình luận · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
JuliaAI/MLJTransforms.jl#108 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của JuliaAI/MLJTransforms.jl
Issue tương tự
-
Release CorleoneInverse as 0.1.1Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
SciML/Corleone.jl#200 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
exercism/julia#1205 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
SciML/OrdinaryDiffEq.jl#5175 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
SciML/ComponentArrays.jl#439 ·