Compare commits
2 Commits
dbe3638c7a
...
d18896702a
Author | SHA1 | Date |
---|---|---|
|
d18896702a | |
|
3b04f3a27a |
|
@ -1,5 +1,5 @@
|
|||
cmake_minimum_required(VERSION 3.25)
|
||||
project(COSC-4P80-Final-Project VERSION 0.0.24)
|
||||
project(COSC-4P80-Final-Project VERSION 0.0.25)
|
||||
|
||||
option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF)
|
||||
option(ENABLE_UBSAN "Enable the ub sanitizer" OFF)
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
|
@ -0,0 +1,44 @@
|
|||
\relax
|
||||
\providecommand{\transparent@use}[1]{}
|
||||
\providecommand\hyper@newdestlabel[2]{}
|
||||
\@setckpt{chapters/abstract}{
|
||||
\setcounter{page}{2}
|
||||
\setcounter{equation}{0}
|
||||
\setcounter{enumi}{0}
|
||||
\setcounter{enumii}{0}
|
||||
\setcounter{enumiii}{0}
|
||||
\setcounter{enumiv}{0}
|
||||
\setcounter{footnote}{0}
|
||||
\setcounter{mpfootnote}{0}
|
||||
\setcounter{part}{0}
|
||||
\setcounter{chapter}{0}
|
||||
\setcounter{section}{0}
|
||||
\setcounter{subsection}{0}
|
||||
\setcounter{subsubsection}{0}
|
||||
\setcounter{paragraph}{0}
|
||||
\setcounter{subparagraph}{0}
|
||||
\setcounter{figure}{0}
|
||||
\setcounter{table}{0}
|
||||
\setcounter{parentequation}{0}
|
||||
\setcounter{svg@param@lastpage}{0}
|
||||
\setcounter{svg@param@currpage}{-1}
|
||||
\setcounter{caption@flags}{0}
|
||||
\setcounter{continuedfloat}{0}
|
||||
\setcounter{subfigure}{0}
|
||||
\setcounter{subtable}{0}
|
||||
\setcounter{float@type}{8}
|
||||
\setcounter{algorithm}{0}
|
||||
\setcounter{ALG@line}{0}
|
||||
\setcounter{ALG@rem}{0}
|
||||
\setcounter{ALG@nested}{0}
|
||||
\setcounter{ALG@Lnr}{2}
|
||||
\setcounter{ALG@blocknr}{10}
|
||||
\setcounter{ALG@storecount}{0}
|
||||
\setcounter{ALG@tmpcounter}{0}
|
||||
\setcounter{LT@tables}{0}
|
||||
\setcounter{LT@chunks}{0}
|
||||
\setcounter{section@level}{0}
|
||||
\setcounter{Item}{0}
|
||||
\setcounter{Hfootnote}{0}
|
||||
\setcounter{bookmark@seq@number}{0}
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
\chapter*{Abstract}
|
||||
Deep Learning folds feature extraction into the traditional neural network architecture. This paper will use the MNIST handwritten digit dataset to show the benefit in using deep learning techniques.
|
|
@ -0,0 +1,44 @@
|
|||
\relax
|
||||
\providecommand{\transparent@use}[1]{}
|
||||
\providecommand\hyper@newdestlabel[2]{}
|
||||
\@setckpt{chapters/conclusion}{
|
||||
\setcounter{page}{3}
|
||||
\setcounter{equation}{0}
|
||||
\setcounter{enumi}{0}
|
||||
\setcounter{enumii}{0}
|
||||
\setcounter{enumiii}{0}
|
||||
\setcounter{enumiv}{0}
|
||||
\setcounter{footnote}{0}
|
||||
\setcounter{mpfootnote}{0}
|
||||
\setcounter{part}{0}
|
||||
\setcounter{chapter}{2}
|
||||
\setcounter{section}{2}
|
||||
\setcounter{subsection}{0}
|
||||
\setcounter{subsubsection}{0}
|
||||
\setcounter{paragraph}{0}
|
||||
\setcounter{subparagraph}{0}
|
||||
\setcounter{figure}{0}
|
||||
\setcounter{table}{0}
|
||||
\setcounter{parentequation}{0}
|
||||
\setcounter{svg@param@lastpage}{0}
|
||||
\setcounter{svg@param@currpage}{-1}
|
||||
\setcounter{caption@flags}{0}
|
||||
\setcounter{continuedfloat}{0}
|
||||
\setcounter{subfigure}{0}
|
||||
\setcounter{subtable}{0}
|
||||
\setcounter{float@type}{8}
|
||||
\setcounter{algorithm}{0}
|
||||
\setcounter{ALG@line}{0}
|
||||
\setcounter{ALG@rem}{0}
|
||||
\setcounter{ALG@nested}{0}
|
||||
\setcounter{ALG@Lnr}{2}
|
||||
\setcounter{ALG@blocknr}{10}
|
||||
\setcounter{ALG@storecount}{0}
|
||||
\setcounter{ALG@tmpcounter}{0}
|
||||
\setcounter{LT@tables}{0}
|
||||
\setcounter{LT@chunks}{0}
|
||||
\setcounter{section@level}{4}
|
||||
\setcounter{Item}{0}
|
||||
\setcounter{Hfootnote}{0}
|
||||
\setcounter{bookmark@seq@number}{5}
|
||||
}
|
|
@ -0,0 +1,58 @@
|
|||
\relax
|
||||
\providecommand{\transparent@use}[1]{}
|
||||
\providecommand\hyper@newdestlabel[2]{}
|
||||
\@writefile{toc}{\contentsline {chapter}{\numberline {1}Introduction}{1}{chapter.1}\protected@file@percent }
|
||||
\@writefile{lof}{\addvspace {10\p@ }}
|
||||
\@writefile{lot}{\addvspace {10\p@ }}
|
||||
\@writefile{toc}{\contentsline {paragraph}{}{1}{section*.4}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {paragraph}{}{1}{section*.5}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {paragraph}{}{1}{section*.6}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {chapter}{\numberline {2}Experimental Setup}{2}{chapter.2}\protected@file@percent }
|
||||
\@writefile{lof}{\addvspace {10\p@ }}
|
||||
\@writefile{lot}{\addvspace {10\p@ }}
|
||||
\@writefile{toc}{\contentsline {paragraph}{}{2}{section*.7}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {2.1}Experiment 1}{2}{section.2.1}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {paragraph}{}{2}{section*.8}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {2.2}Experiment 2}{2}{section.2.2}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {paragraph}{}{2}{section*.9}\protected@file@percent }
|
||||
\@setckpt{chapters/introduction_and_motivation}{
|
||||
\setcounter{page}{3}
|
||||
\setcounter{equation}{0}
|
||||
\setcounter{enumi}{0}
|
||||
\setcounter{enumii}{0}
|
||||
\setcounter{enumiii}{0}
|
||||
\setcounter{enumiv}{0}
|
||||
\setcounter{footnote}{0}
|
||||
\setcounter{mpfootnote}{0}
|
||||
\setcounter{part}{0}
|
||||
\setcounter{chapter}{2}
|
||||
\setcounter{section}{2}
|
||||
\setcounter{subsection}{0}
|
||||
\setcounter{subsubsection}{0}
|
||||
\setcounter{paragraph}{0}
|
||||
\setcounter{subparagraph}{0}
|
||||
\setcounter{figure}{0}
|
||||
\setcounter{table}{0}
|
||||
\setcounter{parentequation}{0}
|
||||
\setcounter{svg@param@lastpage}{0}
|
||||
\setcounter{svg@param@currpage}{-1}
|
||||
\setcounter{caption@flags}{0}
|
||||
\setcounter{continuedfloat}{0}
|
||||
\setcounter{subfigure}{0}
|
||||
\setcounter{subtable}{0}
|
||||
\setcounter{float@type}{8}
|
||||
\setcounter{algorithm}{0}
|
||||
\setcounter{ALG@line}{0}
|
||||
\setcounter{ALG@rem}{0}
|
||||
\setcounter{ALG@nested}{0}
|
||||
\setcounter{ALG@Lnr}{2}
|
||||
\setcounter{ALG@blocknr}{10}
|
||||
\setcounter{ALG@storecount}{0}
|
||||
\setcounter{ALG@tmpcounter}{0}
|
||||
\setcounter{LT@tables}{0}
|
||||
\setcounter{LT@chunks}{0}
|
||||
\setcounter{section@level}{4}
|
||||
\setcounter{Item}{0}
|
||||
\setcounter{Hfootnote}{0}
|
||||
\setcounter{bookmark@seq@number}{5}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
\chapter{Introduction}
|
||||
\paragraph{}As previously mentioned, deep learning combines feature extraction through convolution and pooling with traditional neural networks, eliminating the need for humans to manually extract features from datasets. Convolution, in essence, is a filtering process where trained filter(s) slides over the input data to extract features and other useful information. Pooling is the subsequent process of taking local samples and selecting either the minimum, maximum, or average of those samples. This step helps identify feature locations and condenses the information produced by the convolution layer.
|
||||
|
||||
\paragraph{}A typical deep learning pipeline consists of several convolution and pooling layers, followed by a few fully connected layers. In this work, we aim to demonstrate that using a deep learning configuration can reduce the size of the feed-forward section without compromising program performance, thereby highlighting the effectiveness of deep learning.
|
||||
|
||||
\paragraph{}The MNIST database is a standard benchmark for image-processing neural networks. For our comparison, we will use a modified version of the DLIB deep learning example. This approach allows us to showcase the differences between standard feed-forward neural networks and deep learning networks without requiring expensive GPUs or AI accelerators. While the MNIST dataset is solvable using feed-forward neural networks, we intend to demonstrate that deep learning can achieve better classification performance, even on smaller networks.
|
||||
|
||||
\chapter{Experimental Setup}
|
||||
\paragraph{}
|
||||
Our experiments are divided into two parts, each testing a deep learning network alongside its corresponding feed-forward network. For a fair comparison, the feed-forward test focuses explicitly on the feed-forward component of the deep learning network. This ensures that variables such as the number of layers or nodes in the feed-forward section remain consistent, minimizing potential biases and maintaining the integrity of our comparisons.
|
||||
|
||||
\section{Experiment 1}
|
||||
\paragraph{}
|
||||
Our first experiment compares using the included example from the DLIB C++ library. Specifically the deep learning test consists of
|
||||
|
||||
\section{Experiment 2}
|
||||
\paragraph{}
|
|
@ -0,0 +1,44 @@
|
|||
\relax
|
||||
\providecommand{\transparent@use}[1]{}
|
||||
\providecommand\hyper@newdestlabel[2]{}
|
||||
\@setckpt{chapters/results}{
|
||||
\setcounter{page}{3}
|
||||
\setcounter{equation}{0}
|
||||
\setcounter{enumi}{0}
|
||||
\setcounter{enumii}{0}
|
||||
\setcounter{enumiii}{0}
|
||||
\setcounter{enumiv}{0}
|
||||
\setcounter{footnote}{0}
|
||||
\setcounter{mpfootnote}{0}
|
||||
\setcounter{part}{0}
|
||||
\setcounter{chapter}{2}
|
||||
\setcounter{section}{2}
|
||||
\setcounter{subsection}{0}
|
||||
\setcounter{subsubsection}{0}
|
||||
\setcounter{paragraph}{0}
|
||||
\setcounter{subparagraph}{0}
|
||||
\setcounter{figure}{0}
|
||||
\setcounter{table}{0}
|
||||
\setcounter{parentequation}{0}
|
||||
\setcounter{svg@param@lastpage}{0}
|
||||
\setcounter{svg@param@currpage}{-1}
|
||||
\setcounter{caption@flags}{0}
|
||||
\setcounter{continuedfloat}{0}
|
||||
\setcounter{subfigure}{0}
|
||||
\setcounter{subtable}{0}
|
||||
\setcounter{float@type}{8}
|
||||
\setcounter{algorithm}{0}
|
||||
\setcounter{ALG@line}{0}
|
||||
\setcounter{ALG@rem}{0}
|
||||
\setcounter{ALG@nested}{0}
|
||||
\setcounter{ALG@Lnr}{2}
|
||||
\setcounter{ALG@blocknr}{10}
|
||||
\setcounter{ALG@storecount}{0}
|
||||
\setcounter{ALG@tmpcounter}{0}
|
||||
\setcounter{LT@tables}{0}
|
||||
\setcounter{LT@chunks}{0}
|
||||
\setcounter{section@level}{4}
|
||||
\setcounter{Item}{0}
|
||||
\setcounter{Hfootnote}{0}
|
||||
\setcounter{bookmark@seq@number}{5}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
|
|
@ -0,0 +1,24 @@
|
|||
\relax
|
||||
\providecommand{\transparent@use}[1]{}
|
||||
\AC@reset@newl@bel
|
||||
\providecommand\hyper@newdestlabel[2]{}
|
||||
\providecommand\HyperFirstAtBeginDocument{\AtBeginDocument}
|
||||
\HyperFirstAtBeginDocument{\ifx\hyper@anchor\@undefined
|
||||
\global\let\oldnewlabel\newlabel
|
||||
\gdef\newlabel#1#2{\newlabelxx{#1}#2}
|
||||
\gdef\newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}}
|
||||
\AtEndDocument{\ifx\hyper@anchor\@undefined
|
||||
\let\newlabel\oldnewlabel
|
||||
\fi}
|
||||
\fi}
|
||||
\global\let\hyper@last\relax
|
||||
\gdef\HyperFirstAtBeginDocument#1{#1}
|
||||
\providecommand\HyField@AuxAddToFields[1]{}
|
||||
\providecommand\HyField@AuxAddToCoFields[2]{}
|
||||
\@input{chapters/abstract.aux}
|
||||
\@writefile{toc}{\contentsline {chapter}{Table of Contents}{II}{section*.2}\protected@file@percent }
|
||||
\@input{chapters/introduction_and_motivation.aux}
|
||||
\@input{chapters/results.aux}
|
||||
\@input{chapters/conclusion.aux}
|
||||
\gdef\svg@ink@ver@settings{{\m@ne }{inkscape}{\m@ne }}
|
||||
\gdef \@abspage@last{5}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,5 @@
|
|||
\BOOKMARK [0][-]{section*.2}{\376\377\000T\000a\000b\000l\000e\000\040\000o\000f\000\040\000C\000o\000n\000t\000e\000n\000t\000s}{}% 1
|
||||
\BOOKMARK [0][-]{chapter.1}{\376\377\000I\000n\000t\000r\000o\000d\000u\000c\000t\000i\000o\000n}{}% 2
|
||||
\BOOKMARK [0][-]{chapter.2}{\376\377\000E\000x\000p\000e\000r\000i\000m\000e\000n\000t\000a\000l\000\040\000S\000e\000t\000u\000p}{}% 3
|
||||
\BOOKMARK [1][-]{section.2.1}{\376\377\000E\000x\000p\000e\000r\000i\000m\000e\000n\000t\000\040\0001}{chapter.2}% 4
|
||||
\BOOKMARK [1][-]{section.2.2}{\376\377\000E\000x\000p\000e\000r\000i\000m\000e\000n\000t\000\040\0002}{chapter.2}% 5
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,111 @@
|
|||
\documentclass[12pt,a4paper]{report}
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{ragged2e}
|
||||
\usepackage{arabtex}
|
||||
\usepackage{utf8}
|
||||
\usepackage{amsmath}
|
||||
\usepackage{amsfonts}
|
||||
\usepackage{svg}
|
||||
\usepackage{subcaption}
|
||||
\usepackage{acronym}
|
||||
\usepackage{algorithm}
|
||||
\usepackage{algpseudocode}
|
||||
\usepackage[noadjust]{cite}
|
||||
\usepackage[section]{placeins}
|
||||
\usepackage{mathtools}
|
||||
\usepackage{xcolor}
|
||||
|
||||
\usepackage{datetime}
|
||||
\usepackage{longtable}
|
||||
\usepackage{tabularx}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{caption}
|
||||
\usepackage{subcaption}
|
||||
\usepackage{float}
|
||||
|
||||
\newcommand{\Var}[1]{\textcolor{blue}{#1}} % Color variables in blue
|
||||
|
||||
\usepackage[hyperfootnotes,hidelinks]{hyperref}
|
||||
\hypersetup{
|
||||
linktoc=all
|
||||
}
|
||||
|
||||
\renewcommand{\contentsname}{Table of Contents}
|
||||
|
||||
%----------EDIT COVER INFO HERE -----------------%
|
||||
|
||||
\def \LOGOPATH {assets/brock.jpg}
|
||||
\def \UNIVERSITY {Brock University}
|
||||
\def \FACULTY {Faculty of Mathematics \& Science}
|
||||
\def \DEPARTEMENT {Department of Computer Science}
|
||||
\def \PROJECTTITLE {COSC 4P80 Final Project}
|
||||
\def \PROJECTSUBTITLE {A Comparative Analysis of Deep Learning and Feed-Forward Neural Networks}
|
||||
\def \STUDENTA {Brett Terpstra}
|
||||
\def \STUDENTB {Steve Mastrokalos}
|
||||
\def \STUDENTNOA {6920201}
|
||||
\def \STUDENTNOB {7276900}
|
||||
\def \STUDENTEMAILA {bt19ex@brocku.ca}
|
||||
\def \STUDENTEMAILB {sm21ks@brocku.ca}
|
||||
\def \SUPERVISOR {Dave Bockus}
|
||||
|
||||
%------------------------------------------------%
|
||||
|
||||
\newdateformat{monthyeardate}{%
|
||||
\monthname[\THEMONTH], \THEYEAR}
|
||||
|
||||
\begin{document}
|
||||
\setlength{\parindent}{0em}
|
||||
\setlength{\parskip}{0.5em}
|
||||
|
||||
\pagenumbering{Roman}
|
||||
|
||||
|
||||
\begin{titlepage}
|
||||
\vfill
|
||||
\begin{center}
|
||||
\includegraphics[width=0.6\textwidth]{\LOGOPATH} \\
|
||||
\fontsize{14pt}{14pt}\selectfont
|
||||
\vfill
|
||||
\UNIVERSITY \\
|
||||
\FACULTY \\
|
||||
\DEPARTEMENT \\
|
||||
\vfill
|
||||
\fontsize{18pt}{18pt}\selectfont
|
||||
\textbf{\PROJECTTITLE}
|
||||
\vfill
|
||||
\fontsize{14pt}{14pt}\selectfont
|
||||
Prepared By: \\
|
||||
\STUDENTA \ \#\STUDENTNOA \\
|
||||
\STUDENTEMAILA \\
|
||||
\vfill
|
||||
\STUDENTB \ \#\STUDENTNOB \\
|
||||
\STUDENTEMAILB \\
|
||||
\vfill
|
||||
Instructor: \\
|
||||
\SUPERVISOR
|
||||
\vfill
|
||||
\vfill
|
||||
\vfill
|
||||
\monthyeardate\today
|
||||
\end{center}
|
||||
\end{titlepage}
|
||||
|
||||
\include{chapters/abstract}
|
||||
|
||||
\cleardoublepage \phantomsection \addcontentsline{toc}{chapter}{Table of Contents}
|
||||
\tableofcontents
|
||||
|
||||
\cleardoublepage
|
||||
|
||||
\setlength{\parindent}{0em}
|
||||
\setlength{\parskip}{0.5em}
|
||||
|
||||
\pagenumbering{arabic}
|
||||
|
||||
\include{chapters/introduction_and_motivation}
|
||||
|
||||
\include{chapters/results}
|
||||
|
||||
\include{chapters/conclusion}
|
||||
\end{document}
|
|
@ -0,0 +1,11 @@
|
|||
\contentsline {chapter}{Table of Contents}{II}{section*.2}%
|
||||
\contentsline {chapter}{\numberline {1}Introduction}{1}{chapter.1}%
|
||||
\contentsline {paragraph}{}{1}{section*.4}%
|
||||
\contentsline {paragraph}{}{1}{section*.5}%
|
||||
\contentsline {paragraph}{}{1}{section*.6}%
|
||||
\contentsline {chapter}{\numberline {2}Experimental Setup}{2}{chapter.2}%
|
||||
\contentsline {paragraph}{}{2}{section*.7}%
|
||||
\contentsline {section}{\numberline {2.1}Experiment 1}{2}{section.2.1}%
|
||||
\contentsline {paragraph}{}{2}{section*.8}%
|
||||
\contentsline {section}{\numberline {2.2}Experiment 2}{2}{section.2.2}%
|
||||
\contentsline {paragraph}{}{2}{section*.9}%
|
|
@ -0,0 +1 @@
|
|||
1000,1000
|
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,101 @@
|
|||
Epoch,Loss
|
||||
0,0.73787
|
||||
1,0.448052
|
||||
2,0.33467
|
||||
3,0.0876439
|
||||
4,0.0816766
|
||||
5,0.0768863
|
||||
6,0.0610655
|
||||
7,0.0585332
|
||||
8,0.0562475
|
||||
9,0.0481311
|
||||
10,0.0465637
|
||||
11,0.0451581
|
||||
12,0.0400062
|
||||
13,0.0389325
|
||||
14,0.037937
|
||||
15,0.0342676
|
||||
16,0.0334845
|
||||
17,0.0327614
|
||||
18,0.0300113
|
||||
19,0.0293943
|
||||
20,0.0288128
|
||||
21,0.0265724
|
||||
22,0.0260745
|
||||
23,0.0255935
|
||||
24,0.0237493
|
||||
25,0.0233304
|
||||
26,0.0229116
|
||||
27,0.0213008
|
||||
28,0.0209253
|
||||
29,0.0205644
|
||||
30,0.0191676
|
||||
31,0.0188609
|
||||
32,0.0185619
|
||||
33,0.0173684
|
||||
34,0.0171256
|
||||
35,0.016868
|
||||
36,0.0158492
|
||||
37,0.0156435
|
||||
38,0.0154406
|
||||
39,0.0145908
|
||||
40,0.0144163
|
||||
41,0.0142341
|
||||
42,0.0135177
|
||||
43,0.0133566
|
||||
44,0.0131927
|
||||
45,0.0125518
|
||||
46,0.0124068
|
||||
47,0.0122552
|
||||
48,0.0117045
|
||||
49,0.0115701
|
||||
50,0.0114366
|
||||
51,0.0109153
|
||||
52,0.0108044
|
||||
53,0.0106944
|
||||
54,0.010273
|
||||
55,0.0101819
|
||||
56,0.0100983
|
||||
57,0.00974691
|
||||
58,0.00965401
|
||||
59,0.00957427
|
||||
60,0.00923357
|
||||
61,0.00915954
|
||||
62,0.00908868
|
||||
63,0.00880138
|
||||
64,0.00875445
|
||||
65,0.00868736
|
||||
66,0.0084282
|
||||
67,0.00836022
|
||||
68,0.00829248
|
||||
69,0.00804268
|
||||
70,0.00797707
|
||||
71,0.00791415
|
||||
72,0.00769194
|
||||
73,0.00763485
|
||||
74,0.00758166
|
||||
75,0.00740506
|
||||
76,0.00733043
|
||||
77,0.00727473
|
||||
78,0.00705562
|
||||
79,0.00699729
|
||||
80,0.00693839
|
||||
81,0.00669204
|
||||
82,0.0066269
|
||||
83,0.00656228
|
||||
84,0.00634856
|
||||
85,0.00629324
|
||||
86,0.00625214
|
||||
87,0.00609108
|
||||
88,0.00604756
|
||||
89,0.00601057
|
||||
90,0.00588366
|
||||
91,0.00584543
|
||||
92,0.00581568
|
||||
93,0.00569871
|
||||
94,0.0056681
|
||||
95,0.00564002
|
||||
96,0.00559551
|
||||
97,0.00553262
|
||||
98,0.00548598
|
||||
99,0.00531278
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,101 @@
|
|||
Epoch,Loss
|
||||
0,0.976437
|
||||
1,0.674343
|
||||
2,0.552924
|
||||
3,0.483993
|
||||
4,0.438136
|
||||
5,0.404714
|
||||
6,0.378856
|
||||
7,0.358012
|
||||
8,0.34071
|
||||
9,0.326037
|
||||
10,0.313377
|
||||
11,0.302307
|
||||
12,0.29252
|
||||
13,0.283781
|
||||
14,0.275915
|
||||
15,0.268783
|
||||
16,0.262278
|
||||
17,0.256309
|
||||
18,0.250806
|
||||
19,0.245709
|
||||
20,0.24097
|
||||
21,0.236551
|
||||
22,0.232416
|
||||
23,0.228539
|
||||
24,0.224892
|
||||
25,0.221455
|
||||
26,0.218207
|
||||
27,0.21513
|
||||
28,0.212211
|
||||
29,0.209437
|
||||
30,0.206795
|
||||
31,0.204276
|
||||
32,0.201869
|
||||
33,0.199568
|
||||
34,0.197364
|
||||
35,0.19525
|
||||
36,0.193223
|
||||
37,0.191274
|
||||
38,0.189399
|
||||
39,0.187593
|
||||
40,0.185851
|
||||
41,0.184171
|
||||
42,0.182548
|
||||
43,0.18098
|
||||
44,0.179462
|
||||
45,0.177994
|
||||
46,0.176573
|
||||
47,0.175195
|
||||
48,0.173859
|
||||
49,0.172563
|
||||
50,0.171305
|
||||
51,0.170083
|
||||
52,0.168896
|
||||
53,0.167741
|
||||
54,0.166618
|
||||
55,0.165524
|
||||
56,0.164459
|
||||
57,0.163422
|
||||
58,0.162411
|
||||
59,0.161425
|
||||
60,0.160463
|
||||
61,0.159525
|
||||
62,0.158609
|
||||
63,0.157714
|
||||
64,0.15684
|
||||
65,0.155986
|
||||
66,0.155151
|
||||
67,0.154335
|
||||
68,0.153536
|
||||
69,0.152755
|
||||
70,0.151991
|
||||
71,0.151243
|
||||
72,0.15051
|
||||
73,0.149792
|
||||
74,0.149089
|
||||
75,0.1484
|
||||
76,0.147725
|
||||
77,0.147062
|
||||
78,0.146412
|
||||
79,0.145775
|
||||
80,0.145149
|
||||
81,0.144535
|
||||
82,0.143933
|
||||
83,0.143341
|
||||
84,0.14276
|
||||
85,0.142189
|
||||
86,0.141627
|
||||
87,0.141075
|
||||
88,0.140532
|
||||
89,0.139999
|
||||
90,0.139474
|
||||
91,0.138958
|
||||
92,0.13845
|
||||
93,0.13795
|
||||
94,0.137458
|
||||
95,0.136973
|
||||
96,0.136496
|
||||
97,0.136027
|
||||
98,0.135564
|
||||
99,0.135109
|
|
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
|
@ -0,0 +1,9 @@
|
|||
\begin{figure}
|
||||
\begin{tabular}{|c|c|c|c|}
|
||||
\hline
|
||||
Test & Correct & Incorrect & Accuracy (\%) \\
|
||||
\hline
|
||||
Feed-Forward & 9588 & 411 & 96\\
|
||||
Deep Learning & 9887 & 112 & 99\\
|
||||
\end{tabular}
|
||||
\end{figure}
|
|
@ -80,35 +80,35 @@ namespace fp
|
|||
|
||||
switch (magic_arr[2])
|
||||
{
|
||||
// unsigned char
|
||||
// unsigned char
|
||||
case 0x08:
|
||||
data = mk_v<blt::u8>{};
|
||||
read_data<blt::u8>(file, total_size);
|
||||
break;
|
||||
// signed char
|
||||
// signed char
|
||||
case 0x09:
|
||||
data = mk_v<blt::i8>{};
|
||||
read_data<blt::i8>(file, total_size);
|
||||
break;
|
||||
// short
|
||||
// short
|
||||
case 0x0B:
|
||||
data = mk_v<blt::u16>{};
|
||||
read_data<blt::u16>(file, total_size);
|
||||
reverse_data<blt::u16>();
|
||||
break;
|
||||
// int
|
||||
// int
|
||||
case 0x0C:
|
||||
data = mk_v<blt::u32>{};
|
||||
read_data<blt::u32>(file, total_size);
|
||||
reverse_data<blt::u32>();
|
||||
break;
|
||||
// float
|
||||
// float
|
||||
case 0x0D:
|
||||
data = mk_v<blt::f32>{};
|
||||
read_data<blt::f32>(file, total_size);
|
||||
reverse_data<blt::f32>();
|
||||
break;
|
||||
// double
|
||||
// double
|
||||
case 0x0E:
|
||||
data = mk_v<blt::f64>{};
|
||||
read_data<blt::f64>(file, total_size);
|
||||
|
@ -598,10 +598,10 @@ namespace fp
|
|||
{
|
||||
network = load_network<NetworkType>(local_ident);
|
||||
}
|
||||
catch (dlib::serialization_error&)
|
||||
{
|
||||
goto train_label;
|
||||
}
|
||||
catch (dlib::serialization_error&)
|
||||
{
|
||||
goto train_label;
|
||||
}
|
||||
else
|
||||
{
|
||||
train_label:
|
||||
|
@ -712,6 +712,34 @@ namespace fp
|
|||
return run_network_tests<net_type_ff>(path, "feed_forward", runs, restore);
|
||||
}
|
||||
|
||||
auto run_deep_learning_tests_v3(const std::string& path, const blt::i32 runs, const bool restore)
|
||||
{
|
||||
using namespace dlib;
|
||||
using net_type_dl = loss_multiclass_log<
|
||||
fc<10,
|
||||
relu<fc<6,
|
||||
relu<fc<6,
|
||||
max_pool<2, 2, 2, 2, relu<con<16, 5, 5, 1, 1,
|
||||
max_pool<2, 2, 2, 2, relu<con<6, 5, 5, 1, 1,
|
||||
input<matrix<blt::u8>>>>>>>>>>>>>>;
|
||||
BLT_TRACE("Running deep learning tests");
|
||||
return run_network_tests<net_type_dl>(path, "deep_learning", runs, restore);
|
||||
}
|
||||
|
||||
auto run_feed_forward_tests_v3(const std::string& path, const blt::i32 runs, const bool restore)
|
||||
{
|
||||
using namespace dlib;
|
||||
|
||||
using net_type_ff = loss_multiclass_log<
|
||||
fc<10,
|
||||
relu<fc<6,
|
||||
relu<fc<6,
|
||||
input<matrix<blt::u8>>>>>>>>;
|
||||
|
||||
BLT_TRACE("Running feed forward tests");
|
||||
return run_network_tests<net_type_ff>(path, "feed_forward", runs, restore);
|
||||
}
|
||||
|
||||
void run_mnist(const int argc, const char** argv)
|
||||
{
|
||||
binary_directory = std::filesystem::current_path();
|
||||
|
@ -785,9 +813,11 @@ namespace fp
|
|||
auto path = binary_directory + args.get<std::string>("network");
|
||||
|
||||
// auto [deep_stats, deep_tests] = run_deep_learning_tests(path, runs, restore);
|
||||
auto [forward_stats, forward_tests] = run_feed_forward_tests_v2(path, runs, restore);
|
||||
auto [deep_stats, deep_tests] = run_deep_learning_tests_v2(path, runs, restore);
|
||||
// auto [deep_stats, deep_tests] = run_deep_learning_tests_v2(path, runs, restore);
|
||||
auto [deep_stats, deep_tests] = run_deep_learning_tests_v3(path, runs, restore);
|
||||
// auto [forward_stats, forward_tests] = run_feed_forward_tests(path, runs, restore);
|
||||
// auto [forward_stats, forward_tests] = run_feed_forward_tests_v2(path, runs, restore);
|
||||
auto [forward_stats, forward_tests] = run_feed_forward_tests_v3(path, runs, restore);
|
||||
|
||||
auto average_forward_size = forward_stats.average_size();
|
||||
auto average_deep_size = deep_stats.average_size();
|
||||
|
|
Loading…
Reference in New Issue