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 <notifications@github.com>:<br>
<br>
> Maybe useful, I use the following function in the Genome class to print<br>
> the lastBestGenome in the neat Reproduce function:<br>
><br>
> void Print()<br>
> {<br>
> std::cout << "--------------------------------------------------------------------------\n";<br>
> const char* enumNeuronTypetring[] = { "NONE", "INPUT", "BIAS", "HIDDEN", "OUTPUT" };<br>
> const char* enumActivationFuncTypeString[] = { "SIGMOID", "TANH", "LINEAR", "RELU" };<br>
> const char* boolEnabledString[] = { "False", "True" };<br>
><br>
> std::cout << "Genes: " << aNeuronGenes.size() << std::endl;<br>
><br>
> for(size_t i = 0; i < aNeuronGenes.size(); ++i)<br>
> {<br>
> printf(" Gene:(id=%i, type=%s, activation=%s, response=%f, depth=%.3f)\n",<br>
> aNeuronGenes[i].Id(),<br>
> enumNeuronTypetring[aNeuronGenes[i].Type()],<br>
> enumActivationFuncTypeString[aNeuronGenes[i].ActFuncType()],<br>
> aNeuronGenes[i].Activation(),<br>
> aNeuronGenes[i].Depth());<br>
> }<br>
><br>
> std::cout << "Links: " << aLinkGenes.size() << std::endl;<br>
><br>
> for(size_t i = 0; i < aLinkGenes.size(); ++i)<br>
> {<br>
> printf(" Link:(in=%i, out=%i, weight=%f, enabled=%s innovation=%i)\n",<br>
> aLinkGenes[i].FromNeuronId(),<br>
> aLinkGenes[i].ToNeuronId(),<br>
> aLinkGenes[i].Weight(),<br>
> boolEnabledString[aLinkGenes[i].Enabled()],<br>
> aLinkGenes[i].InnovationId());<br>
> }<br>
><br>
> std::cout << "--------------------------------------------------------------------------\n";<br>
> }<br>
><br>
> —<br>
> You are receiving this because you commented.<br>
> Reply to this email directly, view it on GitHub<br>
> <https://github.com/mlpack/mlpack/pull/686#issuecomment-233145071>, or mute<br>
> the thread<br>
> <https://github.com/notifications/unsubscribe-auth/AD9tIV5NoKwinWJ6XW2ej4g7giK6gPlsks5qWSeRgaJpZM4IwJa6><br>
> .<br>
><br>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<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>