code: def _value_function(self, x_input, y_true, y_pred):
          
          if len(y_true.shape) == 1:
              return y_pred.argmax(1).eq(y_true).double().mean().item()
          else:
              raise NotImplementedError
docs: Return classification accuracy of input