-
Notifications
You must be signed in to change notification settings - Fork 285
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
chore: move fixtures, expose them via load func #353
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might also be preferable in case we want to support fixtures with only a primary dataset down the line. |
src/phoenix/datasets/fixtures.py
Outdated
|
||
def load_datasets(fixture_name: str) -> Tuple[Dataset, Dataset]: | ||
""" | ||
Loads the primary and reference datasets for a fixture. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: I'd remove the terminology "fixture" from everything user-facing. I think this term is more likely to be familiar to a software engineer than a data scientist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah no doubt.
|
||
Parameters | ||
---------- | ||
use_case: str |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@axiomofjoy switched to use_case
@dataclass(frozen=True) | ||
class DatasetDict(Dict[str, Dataset]): | ||
"""A dictionary of datasets, split out by dataset type (primary, reference).""" | ||
|
||
primary: Dataset | ||
reference: Dataset |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mimic hugging face "split"
resolves #287