mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-03-25 06:12:11 +08:00
322 lines
16 KiB
XML
322 lines
16 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
|
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
<!-- Generated by graphviz version 2.49.1 (20210923.0004)
|
|
-->
|
|
<!-- Title: machine_learning/neural_network.cpp Pages: 1 -->
|
|
<!--zoomable 151 -->
|
|
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
|
|
<style type="text/css"><![CDATA[
|
|
.edge:hover path { stroke: red; }
|
|
.edge:hover polygon { stroke: red; fill: red; }
|
|
]]></style>
|
|
<script type="text/javascript"><![CDATA[
|
|
var edges = document.getElementsByTagName('g');
|
|
if (edges && edges.length) {
|
|
for (var i=0;i<edges.length;i++) {
|
|
if (edges[i].id.substr(0,4)=='edge') {
|
|
edges[i].setAttribute('class','edge');
|
|
}
|
|
}
|
|
}
|
|
]]></script>
|
|
<defs>
|
|
<circle id="rim" cx="0" cy="0" r="7"/>
|
|
<circle id="rim2" cx="0" cy="0" r="3.5"/>
|
|
<g id="zoomPlus">
|
|
<use xlink:href="#rim" fill="#404040">
|
|
<set attributeName="fill" to="#808080" begin="zoomplus.mouseover" end="zoomplus.mouseout"/>
|
|
</use>
|
|
<path d="M-4,0h8M0,-4v8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
|
|
</g>
|
|
<g id="zoomMin">
|
|
<use xlink:href="#rim" fill="#404040">
|
|
<set attributeName="fill" to="#808080" begin="zoomminus.mouseover" end="zoomminus.mouseout"/>
|
|
</use>
|
|
<path d="M-4,0h8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
|
|
</g>
|
|
<g id="dirArrow">
|
|
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
|
</g>
|
|
<g id="resetDef">
|
|
<use xlink:href="#rim2" fill="#404040">
|
|
<set attributeName="fill" to="#808080" begin="reset.mouseover" end="reset.mouseout"/>
|
|
</use>
|
|
</g>
|
|
</defs>
|
|
|
|
<script type="text/javascript">
|
|
var viewWidth = 693;
|
|
var viewHeight = 151;
|
|
var sectionId = 'dynsection-0';
|
|
</script>
|
|
<script xlink:href="../../svgpan.js"/>
|
|
<svg id="graph" class="graph">
|
|
<g id="viewport">
|
|
<title>machine_learning/neural_network.cpp</title>
|
|
<polygon fill="white" stroke="transparent" points="-4,4 -4,-147 688.5,-147 688.5,4 -4,4"/>
|
|
<!-- Node1 -->
|
|
<g id="node1" class="node">
|
|
<title>Node1</title>
|
|
<g id="a_node1"><a xlink:title="Implementation of Multilayer Perceptron.">
|
|
<polygon fill="#bfbfbf" stroke="black" points="284,-112.5 284,-142.5 410,-142.5 410,-112.5 284,-112.5"/>
|
|
<text text-anchor="start" x="292" y="-130.5" font-family="Helvetica,sans-Serif" font-size="10.00">machine_learning/neural</text>
|
|
<text text-anchor="middle" x="347" y="-119.5" font-family="Helvetica,sans-Serif" font-size="10.00">_network.cpp</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node2 -->
|
|
<g id="node2" class="node">
|
|
<title>Node2</title>
|
|
<g id="a_node2"><a xlink:title=" ">
|
|
<polygon fill="white" stroke="#bfbfbf" points="0,-0.5 0,-19.5 58,-19.5 58,-0.5 0,-0.5"/>
|
|
<text text-anchor="middle" x="29" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">algorithm</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node1->Node2 -->
|
|
<g id="edge1" class="edge">
|
|
<title>Node1->Node2</title>
|
|
<path fill="none" stroke="midnightblue" d="M283.93,-116.05C242.14,-107.94 186.63,-94.87 140,-76 106.49,-62.44 70.98,-40.04 49.39,-25.4"/>
|
|
<polygon fill="midnightblue" stroke="midnightblue" points="51.26,-22.44 41.04,-19.65 47.29,-28.2 51.26,-22.44"/>
|
|
</g>
|
|
<!-- Node3 -->
|
|
<g id="node3" class="node">
|
|
<title>Node3</title>
|
|
<g id="a_node3"><a xlink:title=" ">
|
|
<polygon fill="white" stroke="#bfbfbf" points="375.5,-56.5 375.5,-75.5 424.5,-75.5 424.5,-56.5 375.5,-56.5"/>
|
|
<text text-anchor="middle" x="400" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node1->Node3 -->
|
|
<g id="edge2" class="edge">
|
|
<title>Node1->Node3</title>
|
|
<path fill="none" stroke="midnightblue" d="M359.56,-112.4C367.34,-103.66 377.36,-92.41 385.48,-83.3"/>
|
|
<polygon fill="midnightblue" stroke="midnightblue" points="388.25,-85.45 392.29,-75.66 383.02,-80.8 388.25,-85.45"/>
|
|
</g>
|
|
<!-- Node4 -->
|
|
<g id="node4" class="node">
|
|
<title>Node4</title>
|
|
<g id="a_node4"><a xlink:title=" ">
|
|
<polygon fill="white" stroke="#bfbfbf" points="76.5,-0.5 76.5,-19.5 123.5,-19.5 123.5,-0.5 76.5,-0.5"/>
|
|
<text text-anchor="middle" x="100" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">chrono</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node1->Node4 -->
|
|
<g id="edge3" class="edge">
|
|
<title>Node1->Node4</title>
|
|
<path fill="none" stroke="midnightblue" d="M283.98,-115.79C249.13,-108.11 205.95,-95.57 171,-76 148.33,-63.31 127,-42.05 113.76,-27.32"/>
|
|
<polygon fill="midnightblue" stroke="midnightblue" points="116.15,-24.75 106.94,-19.52 110.88,-29.35 116.15,-24.75"/>
|
|
</g>
|
|
<!-- Node5 -->
|
|
<g id="node5" class="node">
|
|
<title>Node5</title>
|
|
<g id="a_node5"><a xlink:title=" ">
|
|
<polygon fill="white" stroke="#bfbfbf" points="443,-56.5 443,-75.5 487,-75.5 487,-56.5 443,-56.5"/>
|
|
<text text-anchor="middle" x="465" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00">cmath</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node1->Node5 -->
|
|
<g id="edge4" class="edge">
|
|
<title>Node1->Node5</title>
|
|
<path fill="none" stroke="midnightblue" d="M374.96,-112.4C394.32,-102.64 419.91,-89.74 438.86,-80.18"/>
|
|
<polygon fill="midnightblue" stroke="midnightblue" points="440.48,-83.29 447.83,-75.66 437.33,-77.04 440.48,-83.29"/>
|
|
</g>
|
|
<!-- Node6 -->
|
|
<g id="node6" class="node">
|
|
<title>Node6</title>
|
|
<g id="a_node6"><a xlink:title=" ">
|
|
<polygon fill="white" stroke="#bfbfbf" points="505,-56.5 505,-75.5 555,-75.5 555,-56.5 505,-56.5"/>
|
|
<text text-anchor="middle" x="530" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00">fstream</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node1->Node6 -->
|
|
<g id="edge5" class="edge">
|
|
<title>Node1->Node6</title>
|
|
<path fill="none" stroke="midnightblue" d="M390.37,-112.4C422.46,-101.96 465.61,-87.94 495.4,-78.25"/>
|
|
<polygon fill="midnightblue" stroke="midnightblue" points="496.53,-81.56 504.96,-75.14 494.37,-74.91 496.53,-81.56"/>
|
|
</g>
|
|
<!-- Node7 -->
|
|
<g id="node7" class="node">
|
|
<title>Node7</title>
|
|
<g id="a_node7"><a xlink:title=" ">
|
|
<polygon fill="white" stroke="#bfbfbf" points="141.5,-0.5 141.5,-19.5 196.5,-19.5 196.5,-0.5 141.5,-0.5"/>
|
|
<text text-anchor="middle" x="169" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node1->Node7 -->
|
|
<g id="edge6" class="edge">
|
|
<title>Node1->Node7</title>
|
|
<path fill="none" stroke="midnightblue" d="M283.91,-121.26C250.55,-115.27 211.36,-102.61 186,-76 174.32,-63.74 170.42,-44.48 169.23,-30.1"/>
|
|
<polygon fill="midnightblue" stroke="midnightblue" points="172.72,-29.68 168.76,-19.85 165.72,-29.99 172.72,-29.68"/>
|
|
</g>
|
|
<!-- Node8 -->
|
|
<g id="node8" class="node">
|
|
<title>Node8</title>
|
|
<g id="a_node8"><a xlink:title=" ">
|
|
<polygon fill="white" stroke="#bfbfbf" points="573,-56.5 573,-75.5 625,-75.5 625,-56.5 573,-56.5"/>
|
|
<text text-anchor="middle" x="599" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00">sstream</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node1->Node8 -->
|
|
<g id="edge7" class="edge">
|
|
<title>Node1->Node8</title>
|
|
<path fill="none" stroke="midnightblue" d="M409.29,-112.4C450.34,-103.02 505.53,-90.23 562.7,-76.28"/>
|
|
<polygon fill="midnightblue" stroke="midnightblue" points="563.76,-79.62 572.64,-73.85 562.1,-72.82 563.76,-79.62"/>
|
|
</g>
|
|
<!-- Node9 -->
|
|
<g id="node9" class="node">
|
|
<title>Node9</title>
|
|
<g id="a_node9"><a xlink:title=" ">
|
|
<polygon fill="white" stroke="#bfbfbf" points="643.5,-56.5 643.5,-75.5 684.5,-75.5 684.5,-56.5 643.5,-56.5"/>
|
|
<text text-anchor="middle" x="664" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00">string</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node1->Node9 -->
|
|
<g id="edge8" class="edge">
|
|
<title>Node1->Node9</title>
|
|
<path fill="none" stroke="midnightblue" d="M410.14,-117.57C466.36,-109.12 550.95,-95.2 633.62,-75.84"/>
|
|
<polygon fill="midnightblue" stroke="midnightblue" points="634.51,-79.23 643.43,-73.52 632.89,-72.42 634.51,-79.23"/>
|
|
</g>
|
|
<!-- Node10 -->
|
|
<g id="node10" class="node">
|
|
<title>Node10</title>
|
|
<g id="a_node10"><a xlink:title=" ">
|
|
<polygon fill="white" stroke="#bfbfbf" points="283,-0.5 283,-19.5 335,-19.5 335,-0.5 283,-0.5"/>
|
|
<text text-anchor="middle" x="309" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">valarray</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node1->Node10 -->
|
|
<g id="edge9" class="edge">
|
|
<title>Node1->Node10</title>
|
|
<path fill="none" stroke="midnightblue" d="M342.34,-112.34C335.46,-91.43 322.59,-52.31 315.01,-29.27"/>
|
|
<polygon fill="midnightblue" stroke="midnightblue" points="318.3,-28.07 311.85,-19.67 311.65,-30.26 318.3,-28.07"/>
|
|
</g>
|
|
<!-- Node11 -->
|
|
<g id="node11" class="node">
|
|
<title>Node11</title>
|
|
<g id="a_node11"><a xlink:title=" ">
|
|
<polygon fill="white" stroke="#bfbfbf" points="353,-0.5 353,-19.5 397,-19.5 397,-0.5 353,-0.5"/>
|
|
<text text-anchor="middle" x="375" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node1->Node11 -->
|
|
<g id="edge10" class="edge">
|
|
<title>Node1->Node11</title>
|
|
<path fill="none" stroke="midnightblue" d="M350.43,-112.34C355.48,-91.53 364.9,-52.66 370.49,-29.58"/>
|
|
<polygon fill="midnightblue" stroke="midnightblue" points="373.94,-30.21 372.9,-19.67 367.14,-28.56 373.94,-30.21"/>
|
|
</g>
|
|
<!-- Node12 -->
|
|
<g id="node12" class="node">
|
|
<title>Node12</title>
|
|
<g id="a_node12"><a xlink:href="../../d8/d95/vector__ops_8hpp.html" target="_top" xlink:title="Various functions for vectors associated with <a href="https://en.wikipedia.org/wiki/Multilayer_perce...">
|
|
<polygon fill="white" stroke="black" points="195.5,-56.5 195.5,-75.5 280.5,-75.5 280.5,-56.5 195.5,-56.5"/>
|
|
<text text-anchor="middle" x="238" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00">vector_ops.hpp</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node1->Node12 -->
|
|
<g id="edge11" class="edge">
|
|
<title>Node1->Node12</title>
|
|
<path fill="none" stroke="midnightblue" d="M321.17,-112.4C303.53,-102.77 280.3,-90.09 262.87,-80.58"/>
|
|
<polygon fill="midnightblue" stroke="midnightblue" points="264.31,-77.38 253.86,-75.66 260.96,-83.52 264.31,-77.38"/>
|
|
</g>
|
|
<!-- Node12->Node2 -->
|
|
<g id="edge12" class="edge">
|
|
<title>Node12->Node2</title>
|
|
<path fill="none" stroke="midnightblue" d="M204.88,-56.44C167.72,-46.84 107.48,-31.28 68.05,-21.09"/>
|
|
<polygon fill="midnightblue" stroke="midnightblue" points="68.81,-17.67 58.25,-18.56 67.06,-24.45 68.81,-17.67"/>
|
|
</g>
|
|
<!-- Node12->Node4 -->
|
|
<g id="edge13" class="edge">
|
|
<title>Node12->Node4</title>
|
|
<path fill="none" stroke="midnightblue" d="M216.13,-56.44C193.22,-47.48 157.02,-33.31 131.13,-23.18"/>
|
|
<polygon fill="midnightblue" stroke="midnightblue" points="132.35,-19.9 121.76,-19.52 129.8,-26.42 132.35,-19.9"/>
|
|
</g>
|
|
<!-- Node12->Node7 -->
|
|
<g id="edge14" class="edge">
|
|
<title>Node12->Node7</title>
|
|
<path fill="none" stroke="midnightblue" d="M226.91,-56.32C216.51,-48.18 200.74,-35.84 188.28,-26.09"/>
|
|
<polygon fill="midnightblue" stroke="midnightblue" points="190.32,-23.24 180.29,-19.83 186.01,-28.75 190.32,-23.24"/>
|
|
</g>
|
|
<!-- Node12->Node10 -->
|
|
<g id="edge16" class="edge">
|
|
<title>Node12->Node10</title>
|
|
<path fill="none" stroke="midnightblue" d="M249.41,-56.32C260.11,-48.18 276.34,-35.84 289.16,-26.09"/>
|
|
<polygon fill="midnightblue" stroke="midnightblue" points="291.54,-28.67 297.39,-19.83 287.31,-23.1 291.54,-28.67"/>
|
|
</g>
|
|
<!-- Node12->Node11 -->
|
|
<g id="edge17" class="edge">
|
|
<title>Node12->Node11</title>
|
|
<path fill="none" stroke="midnightblue" d="M259.71,-56.44C282.35,-47.52 318.07,-33.44 343.75,-23.32"/>
|
|
<polygon fill="midnightblue" stroke="midnightblue" points="345.37,-26.44 353.39,-19.52 342.81,-19.93 345.37,-26.44"/>
|
|
</g>
|
|
<!-- Node13 -->
|
|
<g id="node13" class="node">
|
|
<title>Node13</title>
|
|
<g id="a_node13"><a xlink:title=" ">
|
|
<polygon fill="white" stroke="#bfbfbf" points="215,-0.5 215,-19.5 265,-19.5 265,-0.5 215,-0.5"/>
|
|
<text text-anchor="middle" x="240" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">random</text>
|
|
</a>
|
|
</g>
|
|
</g>
|
|
<!-- Node12->Node13 -->
|
|
<g id="edge15" class="edge">
|
|
<title>Node12->Node13</title>
|
|
<path fill="none" stroke="midnightblue" d="M238.33,-56.08C238.59,-49.01 238.97,-38.86 239.3,-29.99"/>
|
|
<polygon fill="midnightblue" stroke="midnightblue" points="242.8,-29.87 239.68,-19.75 235.81,-29.61 242.8,-29.87"/>
|
|
</g>
|
|
</g>
|
|
</svg>
|
|
<g id="navigator" transform="translate(0 0)" fill="#404254">
|
|
<rect fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width=".5" x="0" y="0" width="60" height="60"/>
|
|
<use id="zoomplus" xlink:href="#zoomPlus" x="17" y="9" onmousedown="handleZoom(evt,'in')"/>
|
|
<use id="zoomminus" xlink:href="#zoomMin" x="42" y="9" onmousedown="handleZoom(evt,'out')"/>
|
|
<use id="reset" xlink:href="#resetDef" x="30" y="36" onmousedown="handleReset()"/>
|
|
<g id="arrowUp" xlink:href="#dirArrow" transform="translate(30 24)" onmousedown="handlePan(0,-1)">
|
|
<use xlink:href="#rim" fill="#404040">
|
|
<set attributeName="fill" to="#808080" begin="arrowUp.mouseover" end="arrowUp.mouseout"/>
|
|
</use>
|
|
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
|
</g>
|
|
<g id="arrowRight" xlink:href="#dirArrow" transform="rotate(90) translate(36 -43)" onmousedown="handlePan(1,0)">
|
|
<use xlink:href="#rim" fill="#404040">
|
|
<set attributeName="fill" to="#808080" begin="arrowRight.mouseover" end="arrowRight.mouseout"/>
|
|
</use>
|
|
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
|
</g>
|
|
<g id="arrowDown" xlink:href="#dirArrow" transform="rotate(180) translate(-30 -48)" onmousedown="handlePan(0,1)">
|
|
<use xlink:href="#rim" fill="#404040">
|
|
<set attributeName="fill" to="#808080" begin="arrowDown.mouseover" end="arrowDown.mouseout"/>
|
|
</use>
|
|
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
|
</g>
|
|
<g id="arrowLeft" xlink:href="#dirArrow" transform="rotate(270) translate(-36 17)" onmousedown="handlePan(-1,0)">
|
|
<use xlink:href="#rim" fill="#404040">
|
|
<set attributeName="fill" to="#808080" begin="arrowLeft.mouseover" end="arrowLeft.mouseout"/>
|
|
</use>
|
|
<path fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
|
</g>
|
|
</g>
|
|
<svg viewBox="0 0 15 15" width="100%" height="30px" preserveAspectRatio="xMaxYMin meet">
|
|
<g id="arrow_out" transform="scale(0.3 0.3)">
|
|
<a xlink:href="neural__network_8cpp__incl_org.svg" target="_base">
|
|
<rect id="button" ry="5" rx="5" y="6" x="6" height="38" width="38"
|
|
fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width="1.0"/>
|
|
<path id="arrow"
|
|
d="M 11.500037,31.436501 C 11.940474,20.09759 22.043105,11.32322 32.158766,21.979434 L 37.068811,17.246167 C 37.068811,17.246167 37.088388,32 37.088388,32 L 22.160133,31.978069 C 22.160133,31.978069 26.997745,27.140456 26.997745,27.140456 C 18.528582,18.264221 13.291696,25.230495 11.500037,31.436501 z"
|
|
style="fill:#404040;"/>
|
|
</a>
|
|
</g>
|
|
</svg>
|
|
</svg>
|