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

Migrate schema Tags to merlin.schema.Tags #632

Merged
merged 11 commits into from
Mar 9, 2023
Merged

Migrate schema Tags to merlin.schema.Tags #632

merged 11 commits into from
Mar 9, 2023

Conversation

nv-alaiacano
Copy link
Contributor

Addresses NVIDIA-Merlin/Merlin#844

Current status is that all tests pass except the getting-started notebooks.

Fixes # (issue)

Goals ⚽

Implementation Details 🚧

Testing Details 🔍

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@nv-alaiacano nv-alaiacano added the chore Maintenance for the repository label Mar 8, 2023
@nv-alaiacano nv-alaiacano linked an issue Mar 8, 2023 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Mar 8, 2023

@nv-alaiacano nv-alaiacano marked this pull request as ready for review March 8, 2023 16:07
tests/data/test_synthetic.py Outdated Show resolved Hide resolved
tests/data/test_synthetic.py Outdated Show resolved Hide resolved
@@ -103,7 +102,7 @@ def create_continuous(
tags: Optional[TagsType] = None,
**kwargs,
) -> "ColumnSchema":
_tags: List[str] = [str(t) for t in tags] if tags else []
_tags: List[str] = [t.value for t in TagSet(tags or [])]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is something I don't love - _tags is a List[str] not a TagsType. We convert actual Tags to their string value, but I don't think we convert them back anywhere. I need to understand it a little more now that the tests are passing (hopefully)

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree. I think we converted to strings everywhere to make it easier for users to provide custom tags as strings. Not completely sure how we handle that currently across Merlin.

@nv-alaiacano nv-alaiacano merged commit 8dfee74 into main Mar 9, 2023
@nv-alaiacano nv-alaiacano deleted the laiacano/tags branch March 9, 2023 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance for the repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate T4Rec tags to merlin.schema.Tags
2 participants