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

💾 🔍 Use class resolver for datasets #473

Merged
merged 3 commits into from
Jun 1, 2021
Merged

Conversation

cthoyt
Copy link
Member

@cthoyt cthoyt commented Jun 1, 2021

Closes #410

@cthoyt cthoyt added the 💾 Dataset Related to datasets label Jun 1, 2021
@cthoyt cthoyt changed the title Use class resolver for datasets 💾 🔍 Use class resolver for datasets Jun 1, 2021
cthoyt added 2 commits May 31, 2021 21:04
Trigger CI
Trigger CI
@cthoyt cthoyt added the enhancement New feature or request label Jun 1, 2021
@cthoyt cthoyt requested a review from mberr June 1, 2021 02:07
@@ -184,4 +158,4 @@ def get_dataset(

def has_dataset(key: str) -> bool:
"""Return if the dataset is registered in PyKEEN."""
return normalize_string(key) in datasets
return dataset_resolver.lookup(key) is not None
Copy link
Member

Choose a reason for hiding this comment

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

This could be added as a functionality to class_resolver 🙂

@cthoyt cthoyt merged commit 7914625 into master Jun 1, 2021
@cthoyt cthoyt deleted the dataset-resolver branch June 1, 2021 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💾 Dataset Related to datasets enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update dataset resolution to class-resolver
2 participants