Applying KNN To MNIST Dataset Posted on Sep 28, 2014
MNIST is a set of handwritten digits images. The k-Nearest Neighbors algorithm can be used to recognize the handwritten digits.

The MNIST is a set of handwritten digits images. You can download it by using Makefile: %.gz: wget$*.gz %.idx: %.gz gzip -d $*.gz mv $* $*.idx prepare: t10k-images-idx3-ubyte.idx t10k-labels-idx1-ubyte.idx train-images-idx3-ubyte.idx train-labels-idx1-ubyte.idx The size of each image is 28x28 pixels. The IDX File Format The MNIST dataset are stored in IDX file format. The basic format is: magic number size in dimension 0 size in dimension 1 size in dimension 2 .....

Read More

Removing ^M Characters In Vim Posted on Jun 28, 2013
Removing ^M Characters In Vim

If you edit files in gedit or notepad and ^M characters would be inserted. After that you could not simply remove ^M in VIM with the following command: %s/^M//g %s/\^M//g %s/^V^M//g %s/C-vC-m//g As pattern was not found. ^M in VIM can be manipulated as it is an \r character, which is read as carriage return. Doing a replace for \r characters will remove the ^M: %s/\r//g Your file would also contain \0, which is null-byte.

Read More

Connect. Socialize.

Jian Zhou
Computer Engineering Ph.D Student of University of Central Florida.