def download_cifar_100(new_dir=os.getcwd()):
    """

    Main function

    """
    # %%
    # IMPORTS

    os.chdir(new_dir)

    # code repository sub-package imports
    from artificial_neural_networks.utils.data_utils import download_dataset

    # %%

    file_url = 'https://www.cs.toronto.edu/~kriz/cifar-100-python.tar.gz'
    file_name = 'cifar-100-python.tar.gz'

    file_path = download_dataset(file_url, file_name)

    # %%

    return file_path
Exemplo n.º 2
0
def download_imdb(new_dir=os.getcwd()):
    """

    Main function

    """
    # %%
    # IMPORTS

    os.chdir(new_dir)

    # code repository sub-package imports
    from artificial_neural_networks.utils.data_utils import download_dataset

    # %%

    file_url = 'https://s3.amazonaws.com/text-datasets/imdb.npz'
    file_name = 'imdb.npz'

    file_path = download_dataset(file_url, file_name)

    # %%

    return file_path
def download_monthly_sunspots(new_dir=os.getcwd()):
    """

    Main function

    """
    # %%
    # IMPORTS

    os.chdir(new_dir)

    # code repository sub-package imports
    from artificial_neural_networks.utils.data_utils import download_dataset

    # %%

    file_url = 'https://raw.githubusercontent.com/jbrownlee/Datasets/master/monthly-sunspots.csv'
    file_name = 'monthly-sunspots.csv'

    file_path = download_dataset(file_url, file_name)

    # %%

    return file_path