MNIST-3LNN  1.0
A simple 3-layer neural network to recognize handwritten single digit numbers from the MNIST image files.
mnist-stats.h
Go to the documentation of this file.
1 /**
2  * @file mnist-stats.h
3  * @brief Utitlies for displaying processing details in the terminal
4  * @author Matt Lind
5  * @date July 2015
6  */
7 
8 
9 
10 
11 
12 /**
13  * @brief Outputs a 28x28 text frame at a defined screen position
14  * @param row Row of terminal screen
15  * @param col Column of terminal screen
16  */
17 
18 void displayImageFrame(int y, int x);
19 
20 
21 
22 
23 /**
24  * @brief Outputs a 28x28 MNIST image as charachters ("."s and "X"s)
25  * @param img Pointer to a MNIST image
26  * @param lbl Target classification
27  * @param cls Actual classification
28  * @param row Row of terminal screen
29  * @param col Column of terminal screen
30  */
31 
32 void displayImage(MNIST_Image *img, int lbl, int cls, int row, int col);
33 
34 
35 
36 
37 /**
38  * @brief Outputs reading progress while processing MNIST training images
39  * @param imgCount Number of images already read from the MNIST file
40  * @param errCount Number of errors (images incorrectly classified)
41  * @param y Row of terminal screen
42  * @param x Column of terminal screen
43  */
44 
45 void displayTrainingProgress(int imgCount, int errCount, int y, int x);
46 
47 
48 
49 void displayTestingProgress(int imgCount, int errCount, int y, int x);
50 
51 
void displayTestingProgress(int imgCount, int errCount, int y, int x)
Definition: mnist-stats.c:91
void displayImageFrame(int y, int x)
Outputs a 28x28 text frame at a defined screen position.
Definition: mnist-stats.c:21
void displayTrainingProgress(int imgCount, int errCount, int y, int x)
Outputs reading progress while processing MNIST training images.
Definition: mnist-stats.c:74
void displayImage(MNIST_Image *img, int lbl, int cls, int row, int col)
Outputs a 28x28 MNIST image as charachters ("."s and "X"s)
Definition: mnist-stats.c:44
Data block defining a MNIST image.
Definition: mnist-utils.h:40