Beispiel #1
0
def test_private_min(example_private_table: PrivateTable):
    """check private min implementation."""
    noisy_min = example_private_table.min('Age', PrivacyBudget(10000.))
    check_absolute_error(noisy_min, 28., 1.)
    del noisy_min
def test_private_min_petal_width(example_private_table: PrivateTable):
    """check private min implementation using Petal Width in iris dataset."""
    noisy_min = example_private_table.min('Petal Width', PrivacyBudget(10000.))
    check_absolute_error(noisy_min, 0.1, 1.)
    del noisy_min
Beispiel #3
0
def test_private_min(example_private_table: PrivateTable):
    """check private min implementation using Age in adult dataset."""
    noisy_min = example_private_table.min('Age', PrivacyBudget(10000.))
    check_absolute_error(noisy_min, 17., 1.)
    del noisy_min
def test_private_min_sepal_length(example_private_table: PrivateTable):
    """check private min implementation using Sepal Length in iris dataset."""
    noisy_min = example_private_table.min('Sepal Length', PrivacyBudget(10000.))
    check_absolute_error(noisy_min, 4.3, 1.)
    del noisy_min