You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/adaptive_computation/parity.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@
70
70
</div>
71
71
<h1>Parity Task</h1>
72
72
<p>This creates data for Parity Task from the paper <ahref="https://papers.labml.ai/paper/1603.08983">Adaptive Computation Time for Recurrent Neural Networks</a>.</p>
73
-
<p>The input of the parity task is a vector with <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord">0</span></span></span></span>'s <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord coloredeq eqc" style=""><spanclass="mord" style="">1</span></span></span></span></span>'s and <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.72777em;vertical-align:-0.08333em;"></span><spanclass="mord">−</span><spanclass="mord coloredeq eqc" style=""><spanclass="mord" style="">1</span></span></span></span></span>'s. The output is the parity of <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord coloredeq eqc" style=""><spanclass="mord" style="">1</span></span></span></span></span>'s - one if there is an odd number of <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord coloredeq eqc" style=""><spanclass="mord" style="">1</span></span></span></span></span>'s and zero otherwise. The input is generated by making a random number of elements in the vector either <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord coloredeq eqc" style=""><spanclass="mord" style="">1</span></span></span></span></span> or <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.72777em;vertical-align:-0.08333em;"></span><spanclass="mord">−</span><spanclass="mord coloredeq eqc" style=""><spanclass="mord" style="">1</span></span></span></span></span>'s.</p>
73
+
<p>The input of the parity task is a vector with <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord">0</span></span></span></span>'s <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord coloredeq eqb" style=""><spanclass="mord" style="">1</span></span></span></span></span>'s and <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.72777em;vertical-align:-0.08333em;"></span><spanclass="mord">−</span><spanclass="mord coloredeq eqb" style=""><spanclass="mord" style="">1</span></span></span></span></span>'s. The output is the parity of <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord coloredeq eqb" style=""><spanclass="mord" style="">1</span></span></span></span></span>'s - one if there is an odd number of <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord coloredeq eqb" style=""><spanclass="mord" style="">1</span></span></span></span></span>'s and zero otherwise. The input is generated by making a random number of elements in the vector either <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord coloredeq eqb" style=""><spanclass="mord" style="">1</span></span></span></span></span> or <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.72777em;vertical-align:-0.08333em;"></span><spanclass="mord">−</span><spanclass="mord coloredeq eqb" style=""><spanclass="mord" style="">1</span></span></span></span></span>'s.</p>
0 commit comments