MNIST-1LNN  1.0
A simple 1-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 #include <stdio.h>
9 
10 
11 
12 
13 /**
14  * @brief Outputs a 28x28 text frame at a defined screen position
15  * @param row Row of terminal screen
16  * @param col Column of terminal screen
17  */
18 
19 void displayImageFrame(int y, int x);
20 
21 
22 
23 
24 /**
25  * @brief Outputs a 28x28 MNIST image as charachters ("."s and "X"s)
26  * @param img Pointer to a MNIST image
27  * @param row Row of terminal screen
28  * @param col Column of terminal screen
29  */
30 
31 void displayImage(MNIST_Image *img, int y, int x);
32 
33 
34 
35 
36 /**
37  * @brief Outputs reading progress while processing MNIST training images
38  * @param imgCount Number of images already read from the MNIST file
39  * @param y Row of terminal screen
40  * @param x Column of terminal screen
41  */
42 
43 void displayLoadingProgressTraining(int imgCount, int y, int x);
44 
45 
46 
47 
48 /**
49  * @brief Outputs reading progress while processing MNIST testing images
50  * @param imgCount Number of images already read from the MNIST file
51  * @param y Row of terminal screen
52  * @param x Column of terminal screen
53  */
54 
55 void displayLoadingProgressTesting(int imgCount, int y, int x);
56 
57 
58 
59 
60 /**
61  * @brief Outputs image recognition progress and error count
62  * @param imgCount Number of images already processed
63  * @param errCount Number of images that were NOT correctly identified
64  * @param y Row of terminal screen
65  * @param x Column of terminal screen
66  */
67 
68 void displayProgress(int imgCount, int errCount, int y, int x);
void displayLoadingProgressTraining(int imgCount, int y, int x)
Outputs reading progress while processing MNIST training images.
Definition: mnist-stats.c:71
void displayImageFrame(int y, int x)
Outputs a 28x28 text frame at a defined screen position.
Definition: mnist-stats.c:21
void displayLoadingProgressTesting(int imgCount, int y, int x)
Outputs reading progress while processing MNIST testing images.
Definition: mnist-stats.c:88
void displayImage(MNIST_Image *img, int y, int x)
Outputs a 28x28 MNIST image as charachters ("."s and "X"s)
Definition: mnist-stats.c:44
void displayProgress(int imgCount, int errCount, int y, int x)
Outputs image recognition progress and error count.
Definition: mnist-stats.c:105
Data block defining a MNIST image.
Definition: mnist-utils.h:40