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

Adds pipeline script for speed testing #29

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

wpfl-dbt
Copy link
Collaborator

@wpfl-dbt wpfl-dbt commented Dec 17, 2024

Context

We want to know to_hierarchical_clusters() can work at scale. This adds a pipeline script so we can easily test it.

  • Download data to data/* from S3 or generate it withtest.fixtures.factories.generate_dummy_probabilities()
  • Make sure the script references your data and run with uv run test/pipeline.py

My settings for small, medium, large:

hierarchical_cc2k = generate_dummy_probabilities(
    left_values=list(range(int(2e5))),
    right_values=list(range(int(2e5), int(4e5))),
    prob_range=(0.7, 1.0),
    num_components=2_000,
    total_rows=int(1e6)
)

hierarchical_cc20k = generate_dummy_probabilities(
    left_values=list(range(int(2e6))),
    right_values=list(range(int(2e6), int(4e6))),
    prob_range=(0.7, 1.0),
    num_components=20_000,
    total_rows=int(1e7)
)

hierarchical_cc200k = generate_dummy_probabilities(
    left_values=list(range(int(2e7))),
    right_values=list(range(int(2e7), int(4e7))),
    prob_range=(0.7, 1.0),
    num_components=200_000,
    total_rows=int(1e8)
)

Changes proposed in this pull request

  • Adds test/pipeline.py to speed test stuff
  • Adds rich for lovely progress bars

Guidance to review

  • Read it
  • Run it

Checklist:

  • My code follows the style guidelines of this project
  • New and existing unit tests pass locally with my changes

Copy link
Collaborator

@leo-mazzone leo-mazzone left a comment

Choose a reason for hiding this comment

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

LGTM

@wpfl-dbt wpfl-dbt merged commit 6a4e93e into feature/new-ingest-process Dec 17, 2024
3 checks passed
@wpfl-dbt wpfl-dbt deleted the test/pipeline branch December 17, 2024 15:29
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.

2 participants