mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-11 11:07:27 +08:00
Documentation for 53a6c16730
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C++: machine_learning::neural_network::layers::DenseLayer Class Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -30,8 +30,8 @@ MathJax.Hub.Config({
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Algorithms_in_C++<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C++.</div>
|
||||
@@ -41,7 +41,7 @@ MathJax.Hub.Config({
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
@@ -100,7 +100,7 @@ $(document).ready(function(){initNavTree('dc/d93/classmachine__learning_1_1neura
|
||||
<div class="dynheader">
|
||||
Collaboration diagram for machine_learning::neural_network::layers::DenseLayer:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d3/d65/classmachine__learning_1_1neural__network_1_1layers_1_1_dense_layer__coll__graph.svg" width="207" height="232"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d3/d65/classmachine__learning_1_1neural__network_1_1layers_1_1_dense_layer__coll__graph.svg" width="320" height="260"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
|
||||
<table class="memberdecls">
|
||||
@@ -196,40 +196,40 @@ int </td><td class="memItemRight" valign="bottom"><b>neurons</b></td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="fragment"><div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> {</div>
|
||||
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="comment">// Choosing activation (and it's derivative)</span></div>
|
||||
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="keywordflow">if</span> (activation == <span class="stringliteral">"sigmoid"</span>) {</div>
|
||||
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> activation_function = neural_network::activations::sigmoid;</div>
|
||||
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> dactivation_function = neural_network::activations::sigmoid;</div>
|
||||
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (activation == <span class="stringliteral">"relu"</span>) {</div>
|
||||
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> activation_function = neural_network::activations::relu;</div>
|
||||
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> dactivation_function = neural_network::activations::drelu;</div>
|
||||
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (activation == <span class="stringliteral">"tanh"</span>) {</div>
|
||||
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> activation_function = neural_network::activations::tanh;</div>
|
||||
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> dactivation_function = neural_network::activations::dtanh;</div>
|
||||
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (activation == <span class="stringliteral">"none"</span>) {</div>
|
||||
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <span class="comment">// Set identity function in casse of none is supplied</span></div>
|
||||
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> activation_function =</div>
|
||||
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> neural_network::util_functions::identity_function;</div>
|
||||
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> dactivation_function =</div>
|
||||
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> neural_network::util_functions::identity_function;</div>
|
||||
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> <span class="comment">// If supplied activation is invalid</span></div>
|
||||
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cerr</a> << <span class="stringliteral">"ERROR ("</span> << __func__ << <span class="stringliteral">") : "</span>;</div>
|
||||
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cerr</a> << <span class="stringliteral">"Invalid argument. Expected {none, sigmoid, relu, "</span></div>
|
||||
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <span class="stringliteral">"tanh} got "</span>;</div>
|
||||
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cerr</a> << activation << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/program/exit.html">std::exit</a>(EXIT_FAILURE);</div>
|
||||
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> }</div>
|
||||
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> this->activation = activation; <span class="comment">// Setting activation name</span></div>
|
||||
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> this->neurons = neurons; <span class="comment">// Setting number of neurons</span></div>
|
||||
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> <span class="comment">// Initialize kernel according to flag</span></div>
|
||||
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> <span class="keywordflow">if</span> (random_kernel) {</div>
|
||||
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <a class="code hl_function" href="../../d8/d77/namespacemachine__learning.html#abee7b35403af3612222d3b7a53074905">uniform_random_initialization</a>(kernel, kernel_shape, -1.0, 1.0);</div>
|
||||
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> <a class="code hl_function" href="../../d8/d77/namespacemachine__learning.html#a8dd3f1ffbc2f26a3c88da1b1f8b7e9c4">unit_matrix_initialization</a>(kernel, kernel_shape);</div>
|
||||
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> }</div>
|
||||
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> }</div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 143</span> {</div>
|
||||
<div class="line"><span class="lineno"> 144</span> <span class="comment">// Choosing activation (and it's derivative)</span></div>
|
||||
<div class="line"><span class="lineno"> 145</span> <span class="keywordflow">if</span> (activation == <span class="stringliteral">"sigmoid"</span>) {</div>
|
||||
<div class="line"><span class="lineno"> 146</span> activation_function = neural_network::activations::sigmoid;</div>
|
||||
<div class="line"><span class="lineno"> 147</span> dactivation_function = neural_network::activations::sigmoid;</div>
|
||||
<div class="line"><span class="lineno"> 148</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (activation == <span class="stringliteral">"relu"</span>) {</div>
|
||||
<div class="line"><span class="lineno"> 149</span> activation_function = neural_network::activations::relu;</div>
|
||||
<div class="line"><span class="lineno"> 150</span> dactivation_function = neural_network::activations::drelu;</div>
|
||||
<div class="line"><span class="lineno"> 151</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (activation == <span class="stringliteral">"tanh"</span>) {</div>
|
||||
<div class="line"><span class="lineno"> 152</span> activation_function = neural_network::activations::tanh;</div>
|
||||
<div class="line"><span class="lineno"> 153</span> dactivation_function = neural_network::activations::dtanh;</div>
|
||||
<div class="line"><span class="lineno"> 154</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (activation == <span class="stringliteral">"none"</span>) {</div>
|
||||
<div class="line"><span class="lineno"> 155</span> <span class="comment">// Set identity function in casse of none is supplied</span></div>
|
||||
<div class="line"><span class="lineno"> 156</span> activation_function =</div>
|
||||
<div class="line"><span class="lineno"> 157</span> neural_network::util_functions::identity_function;</div>
|
||||
<div class="line"><span class="lineno"> 158</span> dactivation_function =</div>
|
||||
<div class="line"><span class="lineno"> 159</span> neural_network::util_functions::identity_function;</div>
|
||||
<div class="line"><span class="lineno"> 160</span> } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><span class="lineno"> 161</span> <span class="comment">// If supplied activation is invalid</span></div>
|
||||
<div class="line"><span class="lineno"> 162</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cerr</a> << <span class="stringliteral">"ERROR ("</span> << __func__ << <span class="stringliteral">") : "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 163</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cerr</a> << <span class="stringliteral">"Invalid argument. Expected {none, sigmoid, relu, "</span></div>
|
||||
<div class="line"><span class="lineno"> 164</span> <span class="stringliteral">"tanh} got "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 165</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cerr</a> << activation << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><span class="lineno"> 166</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/program/exit.html">std::exit</a>(EXIT_FAILURE);</div>
|
||||
<div class="line"><span class="lineno"> 167</span> }</div>
|
||||
<div class="line"><span class="lineno"> 168</span> this->activation = activation; <span class="comment">// Setting activation name</span></div>
|
||||
<div class="line"><span class="lineno"> 169</span> this->neurons = neurons; <span class="comment">// Setting number of neurons</span></div>
|
||||
<div class="line"><span class="lineno"> 170</span> <span class="comment">// Initialize kernel according to flag</span></div>
|
||||
<div class="line"><span class="lineno"> 171</span> <span class="keywordflow">if</span> (random_kernel) {</div>
|
||||
<div class="line"><span class="lineno"> 172</span> <a class="code hl_function" href="../../d8/d77/namespacemachine__learning.html#abee7b35403af3612222d3b7a53074905">uniform_random_initialization</a>(kernel, kernel_shape, -1.0, 1.0);</div>
|
||||
<div class="line"><span class="lineno"> 173</span> } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><span class="lineno"> 174</span> <a class="code hl_function" href="../../d8/d77/namespacemachine__learning.html#a8dd3f1ffbc2f26a3c88da1b1f8b7e9c4">unit_matrix_initialization</a>(kernel, kernel_shape);</div>
|
||||
<div class="line"><span class="lineno"> 175</span> }</div>
|
||||
<div class="line"><span class="lineno"> 176</span> }</div>
|
||||
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cerr</a></div></div>
|
||||
<div class="ttc" id="aendl_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a></div><div class="ttdeci">T endl(T... args)</div></div>
|
||||
<div class="ttc" id="aexit_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/program/exit.html">std::exit</a></div><div class="ttdeci">T exit(T... args)</div></div>
|
||||
@@ -291,35 +291,35 @@ Here is the call graph for this function:</div>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="fragment"><div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> {</div>
|
||||
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> <span class="comment">// Choosing activation (and it's derivative)</span></div>
|
||||
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> <span class="keywordflow">if</span> (activation == <span class="stringliteral">"sigmoid"</span>) {</div>
|
||||
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> activation_function = neural_network::activations::sigmoid;</div>
|
||||
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> dactivation_function = neural_network::activations::sigmoid;</div>
|
||||
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (activation == <span class="stringliteral">"relu"</span>) {</div>
|
||||
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> activation_function = neural_network::activations::relu;</div>
|
||||
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> dactivation_function = neural_network::activations::drelu;</div>
|
||||
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (activation == <span class="stringliteral">"tanh"</span>) {</div>
|
||||
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> activation_function = neural_network::activations::tanh;</div>
|
||||
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> dactivation_function = neural_network::activations::dtanh;</div>
|
||||
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (activation == <span class="stringliteral">"none"</span>) {</div>
|
||||
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> <span class="comment">// Set identity function in casse of none is supplied</span></div>
|
||||
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> activation_function =</div>
|
||||
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> neural_network::util_functions::identity_function;</div>
|
||||
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> dactivation_function =</div>
|
||||
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> neural_network::util_functions::identity_function;</div>
|
||||
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> <span class="comment">// If supplied activation is invalid</span></div>
|
||||
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cerr</a> << <span class="stringliteral">"ERROR ("</span> << __func__ << <span class="stringliteral">") : "</span>;</div>
|
||||
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cerr</a> << <span class="stringliteral">"Invalid argument. Expected {none, sigmoid, relu, "</span></div>
|
||||
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> <span class="stringliteral">"tanh} got "</span>;</div>
|
||||
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cerr</a> << activation << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/program/exit.html">std::exit</a>(EXIT_FAILURE);</div>
|
||||
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> }</div>
|
||||
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> this->activation = activation; <span class="comment">// Setting activation name</span></div>
|
||||
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> this->neurons = neurons; <span class="comment">// Setting number of neurons</span></div>
|
||||
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> this->kernel = kernel; <span class="comment">// Setting supplied kernel values</span></div>
|
||||
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> }</div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 184</span> {</div>
|
||||
<div class="line"><span class="lineno"> 185</span> <span class="comment">// Choosing activation (and it's derivative)</span></div>
|
||||
<div class="line"><span class="lineno"> 186</span> <span class="keywordflow">if</span> (activation == <span class="stringliteral">"sigmoid"</span>) {</div>
|
||||
<div class="line"><span class="lineno"> 187</span> activation_function = neural_network::activations::sigmoid;</div>
|
||||
<div class="line"><span class="lineno"> 188</span> dactivation_function = neural_network::activations::sigmoid;</div>
|
||||
<div class="line"><span class="lineno"> 189</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (activation == <span class="stringliteral">"relu"</span>) {</div>
|
||||
<div class="line"><span class="lineno"> 190</span> activation_function = neural_network::activations::relu;</div>
|
||||
<div class="line"><span class="lineno"> 191</span> dactivation_function = neural_network::activations::drelu;</div>
|
||||
<div class="line"><span class="lineno"> 192</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (activation == <span class="stringliteral">"tanh"</span>) {</div>
|
||||
<div class="line"><span class="lineno"> 193</span> activation_function = neural_network::activations::tanh;</div>
|
||||
<div class="line"><span class="lineno"> 194</span> dactivation_function = neural_network::activations::dtanh;</div>
|
||||
<div class="line"><span class="lineno"> 195</span> } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (activation == <span class="stringliteral">"none"</span>) {</div>
|
||||
<div class="line"><span class="lineno"> 196</span> <span class="comment">// Set identity function in casse of none is supplied</span></div>
|
||||
<div class="line"><span class="lineno"> 197</span> activation_function =</div>
|
||||
<div class="line"><span class="lineno"> 198</span> neural_network::util_functions::identity_function;</div>
|
||||
<div class="line"><span class="lineno"> 199</span> dactivation_function =</div>
|
||||
<div class="line"><span class="lineno"> 200</span> neural_network::util_functions::identity_function;</div>
|
||||
<div class="line"><span class="lineno"> 201</span> } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><span class="lineno"> 202</span> <span class="comment">// If supplied activation is invalid</span></div>
|
||||
<div class="line"><span class="lineno"> 203</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cerr</a> << <span class="stringliteral">"ERROR ("</span> << __func__ << <span class="stringliteral">") : "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 204</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cerr</a> << <span class="stringliteral">"Invalid argument. Expected {none, sigmoid, relu, "</span></div>
|
||||
<div class="line"><span class="lineno"> 205</span> <span class="stringliteral">"tanh} got "</span>;</div>
|
||||
<div class="line"><span class="lineno"> 206</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cerr</a> << activation << <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/manip/endl.html">std::endl</a>;</div>
|
||||
<div class="line"><span class="lineno"> 207</span> <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/program/exit.html">std::exit</a>(EXIT_FAILURE);</div>
|
||||
<div class="line"><span class="lineno"> 208</span> }</div>
|
||||
<div class="line"><span class="lineno"> 209</span> this->activation = activation; <span class="comment">// Setting activation name</span></div>
|
||||
<div class="line"><span class="lineno"> 210</span> this->neurons = neurons; <span class="comment">// Setting number of neurons</span></div>
|
||||
<div class="line"><span class="lineno"> 211</span> this->kernel = kernel; <span class="comment">// Setting supplied kernel values</span></div>
|
||||
<div class="line"><span class="lineno"> 212</span> }</div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
@@ -479,7 +479,7 @@ Here is the call graph for this function:</div>
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../d8/d77/namespacemachine__learning.html">machine_learning</a></li><li class="navelem"><b>neural_network</b></li><li class="navelem"><b>layers</b></li><li class="navelem"><a class="el" href="../../dc/d93/classmachine__learning_1_1neural__network_1_1layers_1_1_dense_layer.html">DenseLayer</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2 </li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<map id="machine_learning::neural_network::layers::DenseLayer::DenseLayer" name="machine_learning::neural_network::layers::DenseLayer::DenseLayer">
|
||||
<area shape="rect" id="node1" title=" " alt="" coords="5,71,201,127"/>
|
||||
<area shape="rect" id="node2" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl.html#" title=" " alt="" coords="301,5,373,32"/>
|
||||
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/utility/program/exit.html#" title=" " alt="" coords="302,56,371,83"/>
|
||||
<area shape="rect" id="node2" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl#" title=" " alt="" coords="301,5,373,32"/>
|
||||
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/utility/program/exit#" title=" " alt="" coords="302,56,371,83"/>
|
||||
<area shape="rect" id="node4" href="$d8/d77/namespacemachine__learning.html#abee7b35403af3612222d3b7a53074905" title=" " alt="" coords="249,107,424,149"/>
|
||||
<area shape="rect" id="node6" href="$d8/d77/namespacemachine__learning.html#a8dd3f1ffbc2f26a3c88da1b1f8b7e9c4" title=" " alt="" coords="261,173,413,214"/>
|
||||
<area shape="rect" id="node5" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/chrono/system_clock/now.html#" title=" " alt="" coords="472,107,611,149"/>
|
||||
<area shape="rect" id="node5" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/chrono/system_clock/now#" title=" " alt="" coords="472,107,611,149"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
58d3b0ef795906c90a92aa345fdf488d
|
||||
1100103dcfeb1bdc5f10fb3c80408d25
|
||||
@@ -23,7 +23,7 @@
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl.html#" xlink:title=" ">
|
||||
<g id="a_node2"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="221.5,-137 221.5,-156 275.5,-156 275.5,-137 221.5,-137"/>
|
||||
<text text-anchor="middle" x="248.5" y="-144" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
|
||||
</a>
|
||||
@@ -38,7 +38,7 @@
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/utility/program/exit.html#" xlink:title=" ">
|
||||
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/utility/program/exit#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="222.5,-99 222.5,-118 274.5,-118 274.5,-99 222.5,-99"/>
|
||||
<text text-anchor="middle" x="248.5" y="-106" font-family="Helvetica,sans-Serif" font-size="10.00">std::exit</text>
|
||||
</a>
|
||||
@@ -85,7 +85,7 @@
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/chrono/system_clock/now.html#" xlink:title=" ">
|
||||
<g id="a_node5"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/chrono/system_clock/now#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="350,-49.5 350,-79.5 454,-79.5 454,-49.5 350,-49.5"/>
|
||||
<text text-anchor="start" x="358" y="-67.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::chrono::system</text>
|
||||
<text text-anchor="middle" x="402" y="-56.5" font-family="Helvetica,sans-Serif" font-size="10.00">_clock::now</text>
|
||||
|
||||
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.3 KiB |
@@ -1,5 +1,5 @@
|
||||
<map id="machine_learning::neural_network::layers::DenseLayer::DenseLayer" name="machine_learning::neural_network::layers::DenseLayer::DenseLayer">
|
||||
<area shape="rect" id="node1" title=" " alt="" coords="5,16,201,72"/>
|
||||
<area shape="rect" id="node2" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl.html#" title=" " alt="" coords="249,5,321,32"/>
|
||||
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/utility/program/exit.html#" title=" " alt="" coords="251,56,320,83"/>
|
||||
<area shape="rect" id="node2" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/io/manip/endl#" title=" " alt="" coords="249,5,321,32"/>
|
||||
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/utility/program/exit#" title=" " alt="" coords="251,56,320,83"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
f5d9f34dcf45e33216ee867cf4ed7468
|
||||
6ce1de80c649b43a1fc6d7d81cae1173
|
||||
@@ -23,7 +23,7 @@
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl.html#" xlink:title=" ">
|
||||
<g id="a_node2"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/io/manip/endl#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="183,-38.5 183,-57.5 237,-57.5 237,-38.5 183,-38.5"/>
|
||||
<text text-anchor="middle" x="210" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::endl</text>
|
||||
</a>
|
||||
@@ -38,7 +38,7 @@
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/utility/program/exit.html#" xlink:title=" ">
|
||||
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/utility/program/exit#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="184,-0.5 184,-19.5 236,-19.5 236,-0.5 184,-0.5"/>
|
||||
<text text-anchor="middle" x="210" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::exit</text>
|
||||
</a>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.2"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C++: data_structures/trie_modern.cpp File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -30,8 +30,8 @@ MathJax.Hub.Config({
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Algorithms_in_C++<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C++.</div>
|
||||
@@ -41,7 +41,7 @@ MathJax.Hub.Config({
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.2 -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
@@ -141,15 +141,15 @@ Functions</h2></td></tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<p >Main function </p>
|
||||
<div class="fragment"><div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> {</div>
|
||||
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> <a class="code hl_class" href="../../dd/d2f/class_trie.html">Trie</a> trie;</div>
|
||||
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> trie.<a class="code hl_function" href="../../dd/d2f/class_trie.html#afd8b79959009b554e98ea7128b2886f2">insert</a>(<span class="stringliteral">"hel"</span>);</div>
|
||||
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> trie.<a class="code hl_function" href="../../dd/d2f/class_trie.html#afd8b79959009b554e98ea7128b2886f2">insert</a>(<span class="stringliteral">"hello"</span>);</div>
|
||||
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> trie.removeWord(<span class="stringliteral">"hel"</span>);</div>
|
||||
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << trie.<a class="code hl_function" href="../../dd/d2f/class_trie.html#a411e77126930a0942dd7b65e96b15206">search</a>(<span class="stringliteral">"hello"</span>) << <span class="charliteral">'\n'</span>;</div>
|
||||
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> </div>
|
||||
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span>}</div>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 160</span> {</div>
|
||||
<div class="line"><span class="lineno"> 161</span> <a class="code hl_class" href="../../dd/d2f/class_trie.html">Trie</a> trie;</div>
|
||||
<div class="line"><span class="lineno"> 162</span> trie.<a class="code hl_function" href="../../dd/d2f/class_trie.html#afd8b79959009b554e98ea7128b2886f2">insert</a>(<span class="stringliteral">"hel"</span>);</div>
|
||||
<div class="line"><span class="lineno"> 163</span> trie.<a class="code hl_function" href="../../dd/d2f/class_trie.html#afd8b79959009b554e98ea7128b2886f2">insert</a>(<span class="stringliteral">"hello"</span>);</div>
|
||||
<div class="line"><span class="lineno"> 164</span> trie.removeWord(<span class="stringliteral">"hel"</span>);</div>
|
||||
<div class="line"><span class="lineno"> 165</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << trie.<a class="code hl_function" href="../../dd/d2f/class_trie.html#a411e77126930a0942dd7b65e96b15206">search</a>(<span class="stringliteral">"hello"</span>) << <span class="charliteral">'\n'</span>;</div>
|
||||
<div class="line"><span class="lineno"> 166</span> </div>
|
||||
<div class="line"><span class="lineno"> 167</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 168</span>}</div>
|
||||
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a></div></div>
|
||||
<div class="ttc" id="aclass_trie_html"><div class="ttname"><a href="../../dd/d2f/class_trie.html">Trie</a></div><div class="ttdef"><b>Definition:</b> trie_modern.cpp:16</div></div>
|
||||
<div class="ttc" id="aclass_trie_html_a411e77126930a0942dd7b65e96b15206"><div class="ttname"><a href="../../dd/d2f/class_trie.html#a411e77126930a0942dd7b65e96b15206">Trie::search</a></div><div class="ttdeci">bool search(const std::string &word)</div><div class="ttdef"><b>Definition:</b> trie_modern.cpp:132</div></div>
|
||||
@@ -169,7 +169,7 @@ Here is the call graph for this function:</div>
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_2e746e9d06bf2d8ff842208bcc6ebcfc.html">data_structures</a></li><li class="navelem"><a class="el" href="../../dc/d93/trie__modern_8cpp.html">trie_modern.cpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2 </li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user