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

Categorical search space tweaks #869

Merged
merged 4 commits into from
Sep 10, 2024
Merged

Categorical search space tweaks #869

merged 4 commits into from
Sep 10, 2024

Conversation

uri-granta
Copy link
Collaborator

@uri-granta uri-granta commented Sep 9, 2024

Related issue(s)/PRs:

Summary

Don't one-hot-encode binary (2-value) categories.

Define cast_encoder.

Fully backwards compatible: yes

PR checklist

  • The quality checks are all passing
  • The bug case / new feature is covered by tests
  • Any new features are well-documented (in docstrings or notebooks)

Copy link
Collaborator

@avullo avullo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@@ -1824,6 +1830,12 @@ def test_categorical_search_space_one_hot_encoding(
pytest.param(
CategoricalSearchSpace(["Y", "N"]),
tf.constant([[0], [2], [1]]),
ValueError,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps check error message at line 660?

@uri-granta uri-granta marked this pull request as ready for review September 10, 2024 11:22
Copy link
Collaborator

@khurram-ghani khurram-ghani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@uri-granta uri-granta merged commit aa06d67 into develop Sep 10, 2024
12 checks passed
@uri-granta uri-granta deleted the uri/categorical_tweaks branch September 10, 2024 14:57
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