{ "

Parity Task

\n

This creates data for Parity Task from the paper Adaptive Computation Time for Recurrent Neural Networks.

\n

The input of the parity task is a vector with _^_0_^_'s _^_1_^_'s and _^_2_^_'s. The output is the parity of _^_3_^_'s - one if there is an odd number of _^_4_^_'s and zero otherwise. The input is generated by making a random number of elements in the vector either _^_5_^_ or _^_6_^_'s.

\n": "

\u5947\u5076\u6821\u9a8c\u4efb\u52a1

\n

\u8fd9\u5c06\u4ece\u8bba\u6587\u300a\u5faa\u73af\u795e\u7ecf\u7f51\u7edc\u7684\u81ea\u9002\u5e94\u8ba1\u7b97\u65f6\u95f4\u300b\u4e2d\u4e3a\u5947\u5076\u6821\u9a8c\u4efb\u52a1\u521b\u5efa\u6570\u636e\u3002

\n

\u5947\u5076\u6821\u9a8c\u4efb\u52a1\u7684\u8f93\u5165\u662f\u4e00\u4e2a\u5e26\u6709_^_0_^_'s \u548c_^_1_^_'s \u7684\u5411\u91cf\u3002\u8f93\u51fa\u662f_^_2_^_'s \u7684_^_3_^_\u5947\u5076\u6821\u9a8c\u2014\u2014\u5982\u679c\u6709\uff0c\u5219\u4e3a 1\u662f\u7684\u5947\u6570_^_4_^_\uff0c\u5426\u5219\u4e3a\u96f6\u3002\u8f93\u5165\u662f\u901a\u8fc7\u4f7f\u77e2\u91cf\u4e2d\u7684\u968f\u673a\u6570\u91cf\u7684\u5143\u7d20\u4e3a_^_5_^_\u6216\u800c\u751f\u6210_^_6_^_\u7684\u3002

\n", "

Parity dataset

\n": "

\u5947\u5076\u6821\u9a8c\u6570\u636e

\n", "

\n": "

\n", "

Generate a sample

\n": "

\u751f\u6210\u6837\u672c

\n", "

Size of the dataset

\n": "

\u6570\u636e\u96c6\u7684\u5927\u5c0f

\n", "

Empty vector

\n": "

\u7a7a\u5411\u91cf

\n", "

Fill non-zero elements with _^_0_^_'s and _^_1_^_'s

\n": "

\u7528_^_0_^_ \u201c\u548c_^_1_^_\u201d \u586b\u5145\u975e\u96f6\u5143\u7d20

\n", "

Number of non-zero elements - a random number between _^_0_^_ and total number of elements

\n": "

\u975e\u96f6\u5143\u7d20\u7684\u6570\u91cf-\u4ecb\u4e8e_^_0_^_\u548c\u5143\u7d20\u603b\u6570\u4e4b\u95f4\u7684\u968f\u673a\u6570

\n", "

Randomly permute the elements

\n": "

\u968f\u673a\u6392\u5217\u5143\u7d20

\n", "

The parity

\n": "

\u5947\u5076\u6821\u9a8c

\n", "\n": "\n", "Parity Task": "\u5947\u5076\u6821\u9a8c\u4efb\u52a1", "This creates data for Parity Task from the paper Adaptive Computation Time for Recurrent Neural Networks": "\u8fd9\u5c06\u4ece\u8bba\u6587\u300a\u5faa\u73af\u795e\u7ecf\u7f51\u7edc\u7684\u81ea\u9002\u5e94\u8ba1\u7b97\u65f6\u95f4\u300b\u4e2d\u4e3a\u5947\u5076\u6821\u9a8c\u4efb\u52a1\u521b\u5efa\u6570\u636e" }