Skip to content

Conversation

@ablaom
Copy link
Member

@ablaom ablaom commented Oct 21, 2025

Recall that CategoricalArrays 1.0 introduces new behaviour for levels. The return value is a CategoricalArray instead of raw levels.

As I am not familiar with the codebase for the newer encoders, I have simply replaced all calls levels with rawlevels, where rawlevels mimics the old behaviour: rawlevels(A) = unwrap.(levels(A)).

This PR is needed before important rollout of the CategoricalArrays="1.0" update can happen elsewhere in the MLJ ecosystem. In particular, MLJModels, needs this PR merged before it can do the update.

@EssamWisam
Copy link
Collaborator

@ablaom in the ci tests we see ERROR: LoadError: Unsatisfiable requirements detected for package CategoricalArrays [324d7699] it's unexpected for me since you also uped categorical arrays package in project.toml, right?

@ablaom
Copy link
Member Author

ablaom commented Oct 21, 2025

Sorry, my bad. This PR needs:

  • MLJBase CategoricalArrrays 1.0 update

@EssamWisam Let me ping you when this ready.

@ablaom ablaom marked this pull request as draft October 21, 2025 19:24
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.

3 participants