def test_sda():

    skip.skip_if_no_data()

    yaml_file_path = os.path.abspath(os.path.join(os.path.dirname(__file__),
                                                  '..'))
    save_path = os.path.dirname(os.path.realpath(__file__))

    train_layer1(yaml_file_path, save_path)
    train_layer2(yaml_file_path, save_path)
    train_mlp(yaml_file_path, save_path)

    try:
        os.remove("{}/dae_l1.pkl".format(save_path))
        os.remove("{}/dae_l2.pkl".format(save_path))
    except __HOLE__:
        pass
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/scripts/tutorials/stacked_autoencoders/tests/test_dae.py/test_sda