<p dir="auto">I'm calculating a per-class accuracy in my model. It currently outputs, a little bit like this.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="acc: xxx, acc_1: xxx, acc_2: xxx"><pre class="notranslate"><code class="notranslate">acc: xxx, acc_1: xxx, acc_2: xxx
</code></pre></div>
<p dir="auto">Is there a way to make this output names like this?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="accuracy/class_0: xxx, accuracy/class_1: xxx, accuracy/class_2: xxx"><pre class="notranslate"><code class="notranslate">accuracy/class_0: xxx, accuracy/class_1: xxx, accuracy/class_2: xxx
</code></pre></div>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check that you are up-to-date with the master branch of Keras. You can update with:<br>
<code class="notranslate">pip install git+git://github.com/keras-team/keras.git --upgrade --no-deps</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check that your version of TensorFlow is up-to-date. The installation instructions can be found <a href="https://www.tensorflow.org/get_started/os_setup" rel="nofollow">here</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).</li>
</ul>
<p dir="auto">I am trying to implement the model specified by eqn. 7,8,9 in <a href="http://arxiv.org/pdf/1509.06664v3.pdf" rel="nofollow">this</a> paper. The idea is to encode a sequence (say x) with an LSTM having return sequences=True (call it x-encoder), then let its final hidden output initialized another LSTM which encodes another sequence y. Also, use all the sequences returned by the x-encoder in a attention model.</p>
<p dir="auto">I think I will need to share the output of the x-encoder into two nodes (one for initializing the y-decoder, and another for the attention model). Is this possible?</p>