Yeah, this function is good for print informations of a neural network.<br>
<br>
Actually, I am thinking about using Boost library to generate Graphviz file<br>
for visualizing network. Do you think it is good?<br>
<br>
2016-07-16 12:48 GMT-06:00 Marcus Edel &lt;notifications@github.com&gt;:<br>
<br>
&gt; Maybe useful, I use the following function in the Genome class to print<br>
&gt; the lastBestGenome in the neat Reproduce function:<br>
&gt;<br>
&gt; void Print()<br>
&gt;  {<br>
&gt;     std::cout &lt;&lt; &quot;--------------------------------------------------------------------------\n&quot;;<br>
&gt;     const char* enumNeuronTypetring[] = { &quot;NONE&quot;, &quot;INPUT&quot;, &quot;BIAS&quot;, &quot;HIDDEN&quot;, &quot;OUTPUT&quot; };<br>
&gt;     const char* enumActivationFuncTypeString[] = { &quot;SIGMOID&quot;, &quot;TANH&quot;, &quot;LINEAR&quot;, &quot;RELU&quot; };<br>
&gt;     const char* boolEnabledString[] = { &quot;False&quot;, &quot;True&quot; };<br>
&gt;<br>
&gt;     std::cout &lt;&lt; &quot;Genes: &quot; &lt;&lt; aNeuronGenes.size() &lt;&lt; std::endl;<br>
&gt;<br>
&gt;     for(size_t i = 0; i &lt; aNeuronGenes.size(); ++i)<br>
&gt;     {<br>
&gt;       printf(&quot;  Gene:(id=%i, type=%s, activation=%s, response=%f, depth=%.3f)\n&quot;,<br>
&gt;           aNeuronGenes[i].Id(),<br>
&gt;           enumNeuronTypetring[aNeuronGenes[i].Type()],<br>
&gt;           enumActivationFuncTypeString[aNeuronGenes[i].ActFuncType()],<br>
&gt;           aNeuronGenes[i].Activation(),<br>
&gt;           aNeuronGenes[i].Depth());<br>
&gt;     }<br>
&gt;<br>
&gt;     std::cout &lt;&lt; &quot;Links: &quot; &lt;&lt; aLinkGenes.size() &lt;&lt; std::endl;<br>
&gt;<br>
&gt;     for(size_t i = 0; i &lt; aLinkGenes.size(); ++i)<br>
&gt;     {<br>
&gt;       printf(&quot;  Link:(in=%i, out=%i, weight=%f, enabled=%s innovation=%i)\n&quot;,<br>
&gt;           aLinkGenes[i].FromNeuronId(),<br>
&gt;           aLinkGenes[i].ToNeuronId(),<br>
&gt;           aLinkGenes[i].Weight(),<br>
&gt;           boolEnabledString[aLinkGenes[i].Enabled()],<br>
&gt;           aLinkGenes[i].InnovationId());<br>
&gt;     }<br>
&gt;<br>
&gt;     std::cout &lt;&lt; &quot;--------------------------------------------------------------------------\n&quot;;<br>
&gt;  }<br>
&gt;<br>
&gt; —<br>
&gt; You are receiving this because you commented.<br>
&gt; Reply to this email directly, view it on GitHub<br>
&gt; &lt;https://github.com/mlpack/mlpack/pull/686#issuecomment-233145071&gt;, or mute<br>
&gt; the thread<br>
&gt; &lt;https://github.com/notifications/unsubscribe-auth/AD9tIV5NoKwinWJ6XW2ej4g7giK6gPlsks5qWSeRgaJpZM4IwJa6&gt;<br>
&gt; .<br>
&gt;<br>


<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/686#issuecomment-233158805">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFLqrlNhIIXA-TM96v7U5x7-996buks5qWXrugaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFP-okL-Jmyupc4WQE48gdhJNSYbxks5qWXrugaJpZM4IwJa6.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/pull/686#issuecomment-233158805"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>