def download_mnist(new_dir=os.getcwd()):

    os.chdir(new_dir)

    from artificial_neural_networks.code.utils.data_utils import download_dataset

    file_url = 'https://s3.amazonaws.com/img-datasets/mnist.npz'
    file_name = 'mnist.npz'

    file_path = download_dataset(file_url, file_name)

    return file_path
예제 #2
0
def download_cifar_100(new_dir=os.getcwd()):

    os.chdir(new_dir)

    from artificial_neural_networks.code.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
def download_monthly_sunspots(new_dir=os.getcwd()):

    os.chdir(new_dir)

    from artificial_neural_networks.code.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
def download_cifar_100(new_dir=os.getcwd()):
    """

    Main function

    """
    # %%
    # IMPORTS

    os.chdir(new_dir)

    # code repository sub-package imports
    from artificial_neural_networks.code.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
예제 #5
0
def download_mnist(new_dir=os.getcwd()):
    """

    Main function

    """
    # %%
    # IMPORTS

    os.chdir(new_dir)

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

    # %%

    file_url = 'https://s3.amazonaws.com/img-datasets/mnist.npz'
    file_name = 'mnist.npz'

    file_path = download_dataset(file_url, file_name)

    # %%

    return file_path
예제 #6
0
def download_monthly_sunspots(new_dir=os.getcwd()):
    """

    Main function

    """
    # %%
    # IMPORTS

    os.chdir(new_dir)

    # code repository sub-package imports
    from artificial_neural_networks.code.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