cupydle.test.mnist package

Submodules

cupydle.test.mnist.imagenes_mnist module

cupydle.test.mnist.mnist module

mnist

Download and draw/plot images based on the MNIST data. asa Ponzoni Nelson

class cupydle.test.mnist.mnist.MNIST(path='.')[fuente][fuente]

Clases base: object

classmethod display(img, width=28, threshold=200)[fuente][fuente]
get_all()[fuente][fuente]

devuelve todos los datos en una lista de tuplas, [(img,lbl)..]

get_testing()[fuente][fuente]
get_training()[fuente][fuente]
get_validation()[fuente][fuente]
info[fuente]

imprime por pantalla informacion relativa a la cantidad de cada tipo de datos en la bd

classmethod load(path_img, path_lbl)[fuente][fuente]
load_data()[fuente][fuente]

carga los datos en los arrays

load_testing(numpy_array=True)[fuente][fuente]

si numpy_array es False se devuelve una lista, sino un tipo numpy array

load_training(numpy_array=True)[fuente][fuente]

si numpy_array es False se devuelve una lista, sino un tipo numpy array

static plot_one_digit(image, label=None, save=None)[fuente][fuente]

Plot a single MNIST image.

static plot_ten_digits(images, save=None, crop=0)[fuente][fuente]

Plot a single image containing all six MNIST images, one after the other. if crop is true, Note that we crop the sides of the images so that they appear reasonably close together.

static plot_ten_digits2(images, save=None, crop=0)[fuente][fuente]

Plot a single image containing all six MNIST images, one after the other. if crop is true, Note that we crop the sides of the images so that they appear reasonably close together.

static prepare(directorio, nombre='mnist', compresion='bzip2')[fuente][fuente]
Parámetros:path – ruta donde se encuentran los archivos desde internet
cupydle.test.mnist.mnist.find(pattern, path)[fuente][fuente]
cupydle.test.mnist.mnist.open4disk(filename='mnist', compression='gzip')[fuente][fuente]
cupydle.test.mnist.mnist.save2disk(mnist, filename='mnist', compression='gzip')[fuente][fuente]

cupydle.test.mnist.mnist_loader module

class cupydle.test.mnist.mnist_loader.MNIST(path='.')[fuente][fuente]

Clases base: object

classmethod display(img, width=28, threshold=200)[fuente][fuente]
classmethod load(path_img, path_lbl)[fuente][fuente]
load_testing()[fuente][fuente]
load_training()[fuente][fuente]

cupydle.test.mnist.mnist_prueba module

cupydle.test.mnist.preview module

Module contents