Skip to content

Make levels return a CategoricalArray #425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Make levels return a CategoricalArray #425

wants to merge 2 commits into from

Conversation

nalimilan
Copy link
Member

Having levels preserve the eltype of the input is sometimes useful to write generic code. This is only slightly breaking as the result still compares equal to the previous behvior returning unwrapped values.

Fixes #390.

Having `levels` preserve the eltype of the input is sometimes useful
to write generic code. This is only slightly breaking as the result
still compares equal to the previous behvior returning unwrapped values.
@ablaom
Copy link

ablaom commented May 29, 2025

Further to my posts at #390, I have run MLJ integration tests against this branch of CategoricalArrays.jl.

Only two models fail, both provided by the package BetaML.jl:

"PegasosClassifier (BetaML)", "PerceptronClassifier (BetaML)"

I will investigate further shortly and report back here. cc @sylvaticus

I have separately tested CategoricalDistributions, MLJModelInterface, and MLJBase, against this branch, with no fails.

@sylvaticus
Copy link

I'll too have a look, but I need a few days....

@nalimilan
Copy link
Member Author

Thanks. In parallel, let's try whether Nanosoldier can check all direct dependencies:

@nanosoldier `runtests(ALL)`

@nanosoldier
Copy link

Update on PkgEvalJob 87b50fc vs. 11d43c1: Accepted

@nalimilan
Copy link
Member Author

Better check against current release:

@nanosoldier `runtests(ALL, vs = "#v0.10.8")`

@nanosoldier
Copy link

Update on PkgEvalJob 87b50fc vs. 99faa56: Accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make levels return a CategoricalArray
5 participants