Skip to content
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

Adjust tests to new formulaic behavior #421

Merged
merged 2 commits into from
Dec 3, 2024
Merged

Adjust tests to new formulaic behavior #421

merged 2 commits into from
Dec 3, 2024

Conversation

stanmart
Copy link
Collaborator

@stanmart stanmart commented Dec 2, 2024

Fixes #418.

Formulaic #220 introduced a change in the names for categorical columns: instead of a common {column}[T.{category}] format, formulaic now only uses the latter for treatment-encoded variables (i.e., ensure_full_rank=True), and uses our default ({column}[{category}]) for the rest.

As we have a different default behavior anyways, I don't think we want to follow this change, so I just removed the test (otherwise either the nightlies or the non-nightlies will fail). Furthermore, our implementation does not currently allow for different categorical variables having different formats, so there is one test case which would be impossible to satisfy anyways. We already have a number of other test to make sure that the categorical names we create match our expectations, IMO those should suffice.

Checklist

  • Added a CHANGELOG.rst entry

@stanmart stanmart merged commit 8a56828 into main Dec 3, 2024
24 checks passed
@stanmart stanmart deleted the fix-418 branch December 3, 2024 08:10
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.

Daily run failure: Unit tests
2 participants