Ejemplo n.º 1
0
def test_adult():
    benchmark(synthesizer.fit_sample, repeat=1, datasets=['adult'])
Ejemplo n.º 2
0
def test_adult():
    benchmark(IdentitySynthesizer, iterations=1, datasets=['adult'])
Ejemplo n.º 3
0
def test_intrusion():
    benchmark(IdentitySynthesizer, iterations=1, datasets=['intrusion'])
Ejemplo n.º 4
0
def test_news():
    benchmark(IdentitySynthesizer, iterations=1, datasets=['news'])
Ejemplo n.º 5
0
def test_covtype():
    benchmark(IdentitySynthesizer, iterations=1, datasets=['covtype'])
Ejemplo n.º 6
0
def test_gridr():
    benchmark(IdentitySynthesizer, iterations=1, datasets=['gridr'])
Ejemplo n.º 7
0
def test_credit():
    benchmark(synthesizer.fit_sample, repeat=1, datasets=['credit'])
Ejemplo n.º 8
0
def test_census():
    benchmark(IdentitySynthesizer, iterations=1, datasets=['census'])
Ejemplo n.º 9
0
def test_child():
    benchmark(synthesizer.fit_sample, repeat=1, datasets=['child'])
Ejemplo n.º 10
0
def test_covtype():
    benchmark(synthesizer.fit_sample, repeat=1, datasets=['covtype'])
Ejemplo n.º 11
0
def test_census():
    benchmark(synthesizer.fit_sample, repeat=1, datasets=['census'])
Ejemplo n.º 12
0
def test_asia():
    benchmark(synthesizer.fit_sample, repeat=1, datasets=['asia'])
Ejemplo n.º 13
0
def test_alarm():
    benchmark(synthesizer.fit_sample, repeat=1, datasets=['alarm'])
Ejemplo n.º 14
0
def test_alarm():
    benchmark(IdentitySynthesizer, iterations=1, datasets=['alarm'])
Ejemplo n.º 15
0
def test_gridr():
    benchmark(synthesizer.fit_sample, repeat=1, datasets=['gridr'])
Ejemplo n.º 16
0
def test_asia():
    benchmark(IdentitySynthesizer, iterations=1, datasets=['asia'])
Ejemplo n.º 17
0
def test_insurance():
    benchmark(synthesizer.fit_sample, repeat=1, datasets=['insurance'])
Ejemplo n.º 18
0
def test_child():
    benchmark(IdentitySynthesizer, iterations=1, datasets=['child'])
Ejemplo n.º 19
0
def test_intrusion():
    benchmark(synthesizer.fit_sample, repeat=1, datasets=['intrusion'])
Ejemplo n.º 20
0
def test_credit():
    benchmark(IdentitySynthesizer, iterations=1, datasets=['credit'])
Ejemplo n.º 21
0
def test_mnist28():
    benchmark(synthesizer.fit_sample, repeat=1, datasets=['mnist28'])
Ejemplo n.º 22
0
def test_insurance():
    benchmark(IdentitySynthesizer, iterations=1, datasets=['insurance'])
Ejemplo n.º 23
0
def test_news():
    benchmark(synthesizer.fit_sample, repeat=1, datasets=['news'])
Ejemplo n.º 24
0
def test_mnist28():
    benchmark(IdentitySynthesizer, iterations=1, datasets=['mnist28'])
Ejemplo n.º 25
0
    VEEGANSynthesizer,
)

NO_INIT = (
    CLBNSynthesizer,
    IndependentSynthesizer,
    IdentitySynthesizer,
    UniformSynthesizer,
    PrivBNSynthesizer,
)

if __name__ == '__main__':
    # This is to be run locally by hand, as some synthesizers take
    # a long time and might fail in travis
    #
    # Run as:
    #
    #     $ python tests/test_synthesizers.py

    logging.basicConfig(level=logging.INFO)

    for synthesizer_class in EPOCHS_SYNTHS:
        synthesizer = synthesizer_class(epochs=1)
        benchmark(synthesizer.fit_sample, datasets=['adult'], repeat=1)

    for synthesizer_class in NO_INIT:
        synthesizer = synthesizer_class()
        benchmark(synthesizer.fit_sample, datasets=['adult'], repeat=1)

    logging.info('All the synthesizers were executed successfully')
Ejemplo n.º 26
0
def test_ring():
    benchmark(IdentitySynthesizer, iterations=1, datasets=['ring'])
Ejemplo n.º 27
0
def test_ring():
    benchmark(synthesizer.fit_sample, repeat=1, datasets=['ring'])