int main(int argc, const char * argv[]) { // remember the time in order to calculate processing time at the end time_t startTime = time(NULL); // clear screen of terminal window clearScreen(); printf(" MNIST-3LNN: a simple 3-layer neural network processing the MNIST handwritten digit images\n\n"); // Create neural network using a manually allocated memory space Network *nn = createNetwork(MNIST_IMG_HEIGHT*MNIST_IMG_WIDTH, 20, 10); // displayNetworkWeightsForDebugging(nn); // exit(1); // Training the network by adjusting the weights based on error using the TRAINING dataset trainNetwork(nn); // Testing the during training derived network using the TESTING dataset testNetwork(nn); // Free the manually allocated memory for this network free(nn); locateCursor(36, 5); // Calculate and print the program's total execution time time_t endTime = time(NULL); double executionTime = difftime(endTime, startTime); printf("\n DONE! Total execution time: %.1f sec\n\n",executionTime); return 0; }
/** * Removes the connections from the given viewport. * * * @param cvp */ void TrackTool::removeConnections(MdiCubeViewport *cvp) { disconnect(cubeViewport(), SIGNAL(viewportUpdated()), this, SLOT(locateCursor())); }