MNIST-3LNN  1.0
A simple 3-layer neural network to recognize handwritten single digit numbers from the MNIST image files.
Functions
main.c File Reference
#include <stdlib.h>
#include <time.h>
#include "util/screen.h"
#include "util/mnist-utils.h"
#include "util/mnist-stats.h"
#include "3lnn.h"

Go to the source code of this file.

Functions

VectorgetVectorFromImage (MNIST_Image *img)
 Returns a Vector holding the image pixels of a given MNIST image. More...
 
void trainNetwork (Network *nn)
 Training the network by processing the MNIST training set and updating the weights. More...
 
void testNetwork (Network *nn)
 Testing the trained network by processing the MNIST testing set WITHOUT updating weights. More...
 
int main (int argc, const char *argv[])
 

Function Documentation

Vector* getVectorFromImage ( MNIST_Image img)

Returns a Vector holding the image pixels of a given MNIST image.

Parameters
imgA pointer to a MNIST image

Definition at line 36 of file main.c.

int main ( int  argc,
const char *  argv[] 
)

Main function to run MNIST-1LNN

Definition at line 153 of file main.c.

void testNetwork ( Network nn)

Testing the trained network by processing the MNIST testing set WITHOUT updating weights.

Parameters
nnA pointer to the NN

Definition at line 106 of file main.c.

void trainNetwork ( Network nn)

Training the network by processing the MNIST training set and updating the weights.

Parameters
nnA pointer to the NN

Definition at line 56 of file main.c.