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

Automatically determine parquet workload record_count #50

Open
daverigby opened this issue May 13, 2024 · 0 comments
Open

Automatically determine parquet workload record_count #50

daverigby opened this issue May 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@daverigby
Copy link
Collaborator

For parquet file workloads we can determine the number of records from the actual parquet files, it is not necessary to manually specify it as we currently do:

class Mnist(MnistBase):
    def __init__(self, name: str, cache_dir: str):
        super().__init__(name, "mnist", cache_dir=cache_dir)

    @property
    def record_count(self) -> int:
        return 60000

Similarly for any workload which limits the count such as *-test variants, we also know the limit:

class MnistTest(MnistBase):
    """Reduced, "test" variant of mnist; with 1% of the full dataset (600
    passages and 20 queries)."""

    def __init__(self, name: str, cache_dir: str):
        super().__init__(name, "mnist", cache_dir=cache_dir, limit=600, query_limit=20)

    @property
    def record_count(self) -> int:
        return 600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant