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

Make function to estimate number of columns HMA produces. #1572

Closed
amontanez24 opened this issue Sep 8, 2023 · 0 comments · Fixed by #1577
Closed

Make function to estimate number of columns HMA produces. #1572

amontanez24 opened this issue Sep 8, 2023 · 0 comments · Fixed by #1577
Assignees
Labels
feature request Request for a new feature internal The issue doesn't change the API or functionality
Milestone

Comments

@amontanez24
Copy link
Contributor

Problem Description

As a user, I'd like to know as soon as possible if HMA will be slow so that I can properly decide whether or not to use it.

Expected behavior

  • Inside HMASynthesizer, add a function that can estimate the number or columns that will be modeled for each root table. We will use this later to give alerts.

It is understood that the exact number of rows varies depending on the transformers, constraints etc. For this reason, we only need an estimate. You can make the following assumptions:

  • Assume the default transformers are being used
  • Assume no constraints

Requirements

  • The estimate should be the same order of magnitude as the actual answer.
  • It should be performant (don't go overboard on trying to make calculations more precise at the cost of performance).

Additional context

The following tips may help:

  • If a parent has a child with n columns
    • A covariance matrix with O(n^2) columns will be added to it
    • A column for the mean and standard deviation of the parent row will be added to it
    • At least n columns will be added for the marginal distribution parameters
    • At least one column will be added for the cardinality
@amontanez24 amontanez24 added feature request Request for a new feature internal The issue doesn't change the API or functionality labels Sep 8, 2023
@amontanez24 amontanez24 added this to the 1.5.0 milestone Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request for a new feature internal The issue doesn't change the API or functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants