Per page 7 of this MIT lecture notes, the original single-layer Perceptron uses 0-1 loss function.
Wikipedia uses
$${\displaystyle {\frac {1}{s}}\sum _{j=1}^{s}|d_{j}-y_{j}(t)|} \tag{1}$$
to denote the error.
Is the formula (1) the correct form of 0-1 loss function?