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

created extra class and method for the issue in dp_engine.py #534

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

prasanna7codes
Copy link

@prasanna7codes prasanna7codes commented Jan 28, 2025

Description

Summary of Changes:
1)Dimensions Class:
Allows users to define partitions using dimensions.
Includes a method to compute the Cartesian product of the dimensions.

2)Integration with aggregate Method:
Checks if public_partitions is a Dimensions object.
Computes the Cartesian product of the dimensions before processing.

3)Helper Method:
_generate_cartesian_product generates the Cartesian product of the Dimensions object.

Affected Dependencies

import functools
from typing import Any, Callable, Optional, Sequence, Tuple, Union

import pipeline_dp
from pipeline_dp import budget_accounting
from pipeline_dp import combiners
from pipeline_dp import contribution_bounders
from pipeline_dp import dp_computations
from pipeline_dp import partition_selection
from pipeline_dp import pipeline_functions
from pipeline_dp import report_generator
from pipeline_dp import sampling_utils
from pipeline_dp.dataset_histograms import computing_histograms
from pipeline_dp.pipeline_backend import PipelineBackend
from pipeline_dp.private_contribution_bounds import PrivateL0Calculator

import itertools
import dataclasses
from typing import Any, Callable, Tuple
import numpy as np

import pipeline_dp
from pipeline_dp import combiners
import pipeline_dp.report_generator as report_generator

import pydp.algorithms.partition_selection as partition_selection # type: ignore

How has this been tested?

  • Describe the tests that you ran to verify your changes.
  • Provide instructions so we can reproduce.
  • List any relevant details for your test configuration.

Checklist

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.

1 participant