nonconformist.nc.MarginErrFunc

class nonconformist.nc.MarginErrFunc

Calculates the margin error.

For each correct output in y, nonconformity is defined as

\[0.5 - \dfrac{\hat{P}(y_i | x) - max_{y \, != \, y_i} \hat{P}(y | x)}{2}\]
__init__()