code: def map(self, pred, act, w, o, model):
      import water.util.MathUtils as math
  
      # for Isotonic Regression, pred[0] corresponds to p1 probability
      err = 1 - pred[0] if act[0] == 1 else pred[0]
      return [w * math.logloss(err), w]
  
file_path: h2o-3/h2o-py/tests/testdir_algos/isotonic/pyunit_isotonic_custom_metric.py
imports: import sys
  import h2o
  from tests import pyunit_utils
  from h2o.estimators.gbm import H2OGradientBoostingEstimator
  from h2o.estimators.isotonicregression import H2OIsotonicRegressionEstimator
label_desc: Use image node_id 1 for calling the CustomLoglossFunc obj's underlying member method code with example usage: obj.map(pred, act, w, o, model) and returns: list