Is it possible to specify the number of classes when coercing into `Multiclass`?
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- julia
- Domain
- machine-learning
Research direction
Start by reviewing the coerce API for Multiclass and how its class count is determined. Use the d1/d2 scenario in the issue to define how a target class count and class assignment should work, then verify that the resulting scitype remains compatible with downstream MLJ.Pipeline functionality.
Written by the indexing model from the issue text.
Description
As per title: let's say I have a dataset d1 with a variable X which is Multiclass{10}, but now I get another smaller dataset d2 in which X only has 7 of the 10 classes present in d1. If I just coerce(d2, :X => Multiclass) in then it will be a Multiclass{7} and then downstream transformations/functionality in things like the MLJ.Pipeline will break. Can I specify the number of classes in Multiclass when coercing, along with how to assign a class, such that X in d2 could be coerced to the same scitype as X in d1?
- Dominant language
- Julia
- Stars
- 99
- Forks
- 7
- 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/ScientificTypes.jl
-
next breaking release
Difficulty 5/5 Over a week Newbie friendliness 20/100
JuliaAI/ScientificTypes.jl#195 ·
-
next breaking release
Difficulty 5/5 Over a week Newbie friendliness 25/100
JuliaAI/ScientificTypes.jl#194 · 4 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
JuliaAI/ScientificTypes.jl#192 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
JuliaAI/ScientificTypes.jl#182 · 3 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
JuliaAI/ScientificTypes.jl#180 · 21 comments ·
All issues in JuliaAI/ScientificTypes.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 ·