qfnn.qf_fb.c_mnist module

qfnn.qf_fb.c_mnist.get_int(b)
qfnn.qf_fb.c_mnist.open_maybe_compressed_file(path)

Return a file object that possibly decompresses ‘path’ on the fly. Decompression occurs when argument path is a string and ends with ‘.gz’ or ‘.xz’.

class qfnn.qf_fb.c_mnist.qfMNIST(root, train=True, img_size=4)

Bases: Generic[torch.utils.data.dataset.T_co]

property class_to_idx
classes = ['0 - zero', '1 - one', '2 - two', '3 - three', '4 - four', '5 - five', '6 - six', '7 - seven', '8 - eight', '9 - nine']
extra_repr()
property processed_folder
property raw_folder
property test_data
property test_labels
property train_data
property train_labels
qfnn.qf_fb.c_mnist.read_image_file(path)
qfnn.qf_fb.c_mnist.read_label_file(path)
qfnn.qf_fb.c_mnist.read_sn3_pascalvincent_tensor(path, strict=True)

Read a SN3 file in “Pascal Vincent” format (Lush file ‘libidx/idx-io.lsh’). Argument may be a filename, compressed filename, or file object.