\hypertarget{class_network}{}\doxysection{Network Class Reference} \label{class_network}\index{Network@{Network}} {\ttfamily \#include $<$network.\+hpp$>$} \doxysubsection*{Public Member Functions} \begin{DoxyCompactItemize} \item void \mbox{\hyperlink{class_network_a7256dd4fca14fcf9373591ea1a1b42d6}{compute\+\_\+last\+\_\+delta}} (\mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}} y) \item \mbox{\hyperlink{class_network_a3cc2fb4f8fa4d507077e8da85ce5a1c8}{Network}} () \item void \mbox{\hyperlink{class_network_a790c6368ae5d69fbdb550ed7306543e5}{set\+\_\+cost}} (\mbox{\hyperlink{network_8hpp_a0c3a80fe878325a4a277470fdc7b3eb3}{Cost\+Function}}) \item void \mbox{\hyperlink{class_network_ade63dfedd3ffa5c0b9ef3e03aa58bc11}{push\+\_\+layer}} (\mbox{\hyperlink{class_layer_1_1_layer}{Layer\+::\+Layer}} \&l) \item void \mbox{\hyperlink{class_network_a33b17ec8563577be73c109bfbb267c52}{is\+\_\+done}} () \item \mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}} \mbox{\hyperlink{class_network_ab4a53f3e2d5c1033e9b2314826acf821}{feed\+\_\+forward}} (\mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}} x\+\_\+in) \item \mbox{\hyperlink{vector_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}} \mbox{\hyperlink{class_network_a08f9864a68e23b74c1c212c67ca70ed4}{eval}} (\mbox{\hyperlink{class_dataset}{Dataset}} $\ast$dataset) \item void \mbox{\hyperlink{class_network_a7bfcf0b5c1ed41fc14771d256789a042}{train}} (\mbox{\hyperlink{class_dataset}{Dataset}} $\ast$dataset, size\+\_\+t nb\+\_\+epochs, size\+\_\+t batch\+\_\+size, \mbox{\hyperlink{vector_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}} eta) \end{DoxyCompactItemize} \doxysubsection*{Public Attributes} \begin{DoxyCompactItemize} \item list$<$ \mbox{\hyperlink{class_layer_1_1_layer}{Layer\+::\+Layer}} $\ast$ $>$ \mbox{\hyperlink{class_network_a4bb79b836cfd07172c7ed37dade8cefd}{layers}} \item size\+\_\+t \mbox{\hyperlink{class_network_a912e19f5f19a486459cb8dac0bba7b7e}{n\+\_\+in}} \item size\+\_\+t \mbox{\hyperlink{class_network_a4b6a975d8042d27ac5a7a026db5fc1f0}{n\+\_\+out}} \item \mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}} \mbox{\hyperlink{class_network_ad71ea0a71fa28c4510e42fb809846404}{a}} \item \mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}} \mbox{\hyperlink{class_network_a7d23ea49f6f1c5c0524210f658390cbc}{last\+\_\+delta}} \item \mbox{\hyperlink{network_8hpp_a0c3a80fe878325a4a277470fdc7b3eb3}{Cost\+Function}} \mbox{\hyperlink{class_network_abf80a2387544fb826f11ab922b857d50}{C}} \end{DoxyCompactItemize} \doxysubsection*{Protected Member Functions} \begin{DoxyCompactItemize} \item void \mbox{\hyperlink{class_network_aa515f8e09f5d2c989abdf68d97e79e26}{shuffle}} (size\+\_\+t $\ast$tab, size\+\_\+t size) \item void \mbox{\hyperlink{class_network_a2bb9069ed59682d142860215ed970e06}{update\+\_\+batch}} (\mbox{\hyperlink{class_dataset}{Dataset}} $\ast$dataset, size\+\_\+t $\ast$indices, size\+\_\+t begin, size\+\_\+t end, \mbox{\hyperlink{vector_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}} eta) \item void \mbox{\hyperlink{class_network_a6c324cab761fdff1c614305a6544a311}{back\+\_\+propagation}} (\mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}} x, \mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}} y, \mbox{\hyperlink{vector_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}} eta) \end{DoxyCompactItemize} \doxysubsection{Constructor \& Destructor Documentation} \mbox{\Hypertarget{class_network_a3cc2fb4f8fa4d507077e8da85ce5a1c8}\label{class_network_a3cc2fb4f8fa4d507077e8da85ce5a1c8}} \index{Network@{Network}!Network@{Network}} \index{Network@{Network}!Network@{Network}} \doxysubsubsection{\texorpdfstring{Network()}{Network()}} {\footnotesize\ttfamily Network\+::\+Network (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})} \doxysubsection{Member Function Documentation} \mbox{\Hypertarget{class_network_a6c324cab761fdff1c614305a6544a311}\label{class_network_a6c324cab761fdff1c614305a6544a311}} \index{Network@{Network}!back\_propagation@{back\_propagation}} \index{back\_propagation@{back\_propagation}!Network@{Network}} \doxysubsubsection{\texorpdfstring{back\_propagation()}{back\_propagation()}} {\footnotesize\ttfamily void Network\+::back\+\_\+propagation (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}}}]{x, }\item[{\mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}}}]{y, }\item[{\mbox{\hyperlink{vector_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}}}]{eta }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [protected]}} \mbox{\Hypertarget{class_network_a7256dd4fca14fcf9373591ea1a1b42d6}\label{class_network_a7256dd4fca14fcf9373591ea1a1b42d6}} \index{Network@{Network}!compute\_last\_delta@{compute\_last\_delta}} \index{compute\_last\_delta@{compute\_last\_delta}!Network@{Network}} \doxysubsubsection{\texorpdfstring{compute\_last\_delta()}{compute\_last\_delta()}} {\footnotesize\ttfamily void Network\+::compute\+\_\+last\+\_\+delta (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}}}]{y }\end{DoxyParamCaption})} \mbox{\Hypertarget{class_network_a08f9864a68e23b74c1c212c67ca70ed4}\label{class_network_a08f9864a68e23b74c1c212c67ca70ed4}} \index{Network@{Network}!eval@{eval}} \index{eval@{eval}!Network@{Network}} \doxysubsubsection{\texorpdfstring{eval()}{eval()}} {\footnotesize\ttfamily \mbox{\hyperlink{vector_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}} Network\+::eval (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_dataset}{Dataset}} $\ast$}]{dataset }\end{DoxyParamCaption})} \mbox{\Hypertarget{class_network_ab4a53f3e2d5c1033e9b2314826acf821}\label{class_network_ab4a53f3e2d5c1033e9b2314826acf821}} \index{Network@{Network}!feed\_forward@{feed\_forward}} \index{feed\_forward@{feed\_forward}!Network@{Network}} \doxysubsubsection{\texorpdfstring{feed\_forward()}{feed\_forward()}} {\footnotesize\ttfamily \mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}} Network\+::feed\+\_\+forward (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}}}]{x\+\_\+in }\end{DoxyParamCaption})} \mbox{\Hypertarget{class_network_a33b17ec8563577be73c109bfbb267c52}\label{class_network_a33b17ec8563577be73c109bfbb267c52}} \index{Network@{Network}!is\_done@{is\_done}} \index{is\_done@{is\_done}!Network@{Network}} \doxysubsubsection{\texorpdfstring{is\_done()}{is\_done()}} {\footnotesize\ttfamily void Network\+::is\+\_\+done (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})} \mbox{\Hypertarget{class_network_ade63dfedd3ffa5c0b9ef3e03aa58bc11}\label{class_network_ade63dfedd3ffa5c0b9ef3e03aa58bc11}} \index{Network@{Network}!push\_layer@{push\_layer}} \index{push\_layer@{push\_layer}!Network@{Network}} \doxysubsubsection{\texorpdfstring{push\_layer()}{push\_layer()}} {\footnotesize\ttfamily void Network\+::push\+\_\+layer (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_layer_1_1_layer}{Layer\+::\+Layer}} \&}]{l }\end{DoxyParamCaption})} \mbox{\Hypertarget{class_network_a790c6368ae5d69fbdb550ed7306543e5}\label{class_network_a790c6368ae5d69fbdb550ed7306543e5}} \index{Network@{Network}!set\_cost@{set\_cost}} \index{set\_cost@{set\_cost}!Network@{Network}} \doxysubsubsection{\texorpdfstring{set\_cost()}{set\_cost()}} {\footnotesize\ttfamily void Network\+::set\+\_\+cost (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{network_8hpp_a0c3a80fe878325a4a277470fdc7b3eb3}{Cost\+Function}}}]{C\+\_\+ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}} \mbox{\Hypertarget{class_network_aa515f8e09f5d2c989abdf68d97e79e26}\label{class_network_aa515f8e09f5d2c989abdf68d97e79e26}} \index{Network@{Network}!shuffle@{shuffle}} \index{shuffle@{shuffle}!Network@{Network}} \doxysubsubsection{\texorpdfstring{shuffle()}{shuffle()}} {\footnotesize\ttfamily void Network\+::shuffle (\begin{DoxyParamCaption}\item[{size\+\_\+t $\ast$}]{tab, }\item[{size\+\_\+t}]{size }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [protected]}} \mbox{\Hypertarget{class_network_a7bfcf0b5c1ed41fc14771d256789a042}\label{class_network_a7bfcf0b5c1ed41fc14771d256789a042}} \index{Network@{Network}!train@{train}} \index{train@{train}!Network@{Network}} \doxysubsubsection{\texorpdfstring{train()}{train()}} {\footnotesize\ttfamily void Network\+::train (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_dataset}{Dataset}} $\ast$}]{dataset, }\item[{size\+\_\+t}]{nb\+\_\+epochs, }\item[{size\+\_\+t}]{batch\+\_\+size, }\item[{\mbox{\hyperlink{vector_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}}}]{eta }\end{DoxyParamCaption})} \mbox{\Hypertarget{class_network_a2bb9069ed59682d142860215ed970e06}\label{class_network_a2bb9069ed59682d142860215ed970e06}} \index{Network@{Network}!update\_batch@{update\_batch}} \index{update\_batch@{update\_batch}!Network@{Network}} \doxysubsubsection{\texorpdfstring{update\_batch()}{update\_batch()}} {\footnotesize\ttfamily void Network\+::update\+\_\+batch (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_dataset}{Dataset}} $\ast$}]{dataset, }\item[{size\+\_\+t $\ast$}]{indices, }\item[{size\+\_\+t}]{begin, }\item[{size\+\_\+t}]{end, }\item[{\mbox{\hyperlink{vector_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}}}]{eta }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [protected]}} \doxysubsection{Member Data Documentation} \mbox{\Hypertarget{class_network_ad71ea0a71fa28c4510e42fb809846404}\label{class_network_ad71ea0a71fa28c4510e42fb809846404}} \index{Network@{Network}!a@{a}} \index{a@{a}!Network@{Network}} \doxysubsubsection{\texorpdfstring{a}{a}} {\footnotesize\ttfamily \mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}} Network\+::a} \mbox{\Hypertarget{class_network_abf80a2387544fb826f11ab922b857d50}\label{class_network_abf80a2387544fb826f11ab922b857d50}} \index{Network@{Network}!C@{C}} \index{C@{C}!Network@{Network}} \doxysubsubsection{\texorpdfstring{C}{C}} {\footnotesize\ttfamily \mbox{\hyperlink{network_8hpp_a0c3a80fe878325a4a277470fdc7b3eb3}{Cost\+Function}} Network\+::C} \mbox{\Hypertarget{class_network_a7d23ea49f6f1c5c0524210f658390cbc}\label{class_network_a7d23ea49f6f1c5c0524210f658390cbc}} \index{Network@{Network}!last\_delta@{last\_delta}} \index{last\_delta@{last\_delta}!Network@{Network}} \doxysubsubsection{\texorpdfstring{last\_delta}{last\_delta}} {\footnotesize\ttfamily \mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}} Network\+::last\+\_\+delta} \mbox{\Hypertarget{class_network_a4bb79b836cfd07172c7ed37dade8cefd}\label{class_network_a4bb79b836cfd07172c7ed37dade8cefd}} \index{Network@{Network}!layers@{layers}} \index{layers@{layers}!Network@{Network}} \doxysubsubsection{\texorpdfstring{layers}{layers}} {\footnotesize\ttfamily list$<$\mbox{\hyperlink{class_layer_1_1_layer}{Layer\+::\+Layer}}$\ast$$>$ Network\+::layers} \mbox{\Hypertarget{class_network_a912e19f5f19a486459cb8dac0bba7b7e}\label{class_network_a912e19f5f19a486459cb8dac0bba7b7e}} \index{Network@{Network}!n\_in@{n\_in}} \index{n\_in@{n\_in}!Network@{Network}} \doxysubsubsection{\texorpdfstring{n\_in}{n\_in}} {\footnotesize\ttfamily size\+\_\+t Network\+::n\+\_\+in} \mbox{\Hypertarget{class_network_a4b6a975d8042d27ac5a7a026db5fc1f0}\label{class_network_a4b6a975d8042d27ac5a7a026db5fc1f0}} \index{Network@{Network}!n\_out@{n\_out}} \index{n\_out@{n\_out}!Network@{Network}} \doxysubsubsection{\texorpdfstring{n\_out}{n\_out}} {\footnotesize\ttfamily size\+\_\+t Network\+::n\+\_\+out} The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize} \item src/\mbox{\hyperlink{network_8hpp}{network.\+hpp}}\item src/\mbox{\hyperlink{network_8cpp}{network.\+cpp}}\end{DoxyCompactItemize}