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
<p>This creates data for Parity Task from the paper
71
-
<ahref="https://papers.labml.ai/paper/1603.08983">Adaptive Computation Time for Recurrent Neural Networks</a>.</p>
72
-
<p>The input of the parity task is a vector with $0$’s $1$’s and $-1$’s.
73
-
The output is the parity of $1$’s - one if there is an odd number of $1$’s and zero otherwise.
74
-
The input is generated by making a random number of elements in the vector either $1$ or $-1$’s.</p>
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"><spanclass="katex-html" aria-hidden="true"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord">0</span></span></span></span>'s <spanclass="katex"><spanclass="katex-html" aria-hidden="true"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord">1</span></span></span></span>'s and <spanclass="katex"><spanclass="katex-html" aria-hidden="true"><spanclass="base"><spanclass="strut" style="height:0.72777em;vertical-align:-0.08333em;"></span><spanclass="mord">−</span><spanclass="mord">1</span></span></span></span>'s. The output is the parity of <spanclass="katex"><spanclass="katex-html" aria-hidden="true"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord">1</span></span></span></span>'s - one if there is an odd number of <spanclass="katex"><spanclass="katex-html" aria-hidden="true"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord">1</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"><spanclass="katex-html" aria-hidden="true"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord">1</span></span></span></span> or <spanclass="katex"><spanclass="katex-html" aria-hidden="true"><spanclass="base"><spanclass="strut" style="height:0.72777em;vertical-align:-0.08333em;"></span><spanclass="mord">−</span><spanclass="mord">1</span></span></span></span>'s.</p>
<p>Number of non-zero elements - a random number between $1$ and total number of elements</p>
174
+
<p>Number of non-zero elements - a random number between <spanclass="katex"><spanclass="katex-html" aria-hidden="true"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord">1</span></span></span></span> and total number of elements </p>
<p>Fill non-zero elements with $1$’s and $-1$’s</p>
186
+
<p>Fill non-zero elements with <spanclass="katex"><spanclass="katex-html" aria-hidden="true"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord">1</span></span></span></span>'s and <spanclass="katex"><spanclass="katex-html" aria-hidden="true"><spanclass="base"><spanclass="strut" style="height:0.72777em;vertical-align:-0.08333em;"></span><spanclass="mord">−</span><spanclass="mord">1</span></span></span></span>'s </p>
0 commit comments