def eval_custom_func(self, hmodel, iterid, lapFrac):
      ''' Evaluates a custom hook function called customFunc.py in the path specified in algParams['customFuncPath']
      '''
      import ast
      customFuncPath = self.algParams['customFuncPath']
      customFuncArgs = self.algParams['customFuncArgs']
      nLapTotal = self.algParams['nLap']
      percentDone = lapFrac/nLapTotal
      if customFuncPath is not None and customFuncPath != 'None':
        import sys
        sys.path.append(customFuncPath)
        import customFunc
        if lapFrac % 1 != 0:
            customFunc.onBatchComplete(hmodel, percentDone , customFuncArgs)
        elif lapFrac % 1 == 0 and nLapTotal < lapFrac:
            customFunc.onLapComplete(hmodel, percentDone , customFuncArgs)
        else:
            customFunc.onAlgorithmComplete(hmodel, percentDone , customFuncArgs)
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/learnalg/LearnAlg.py/LearnAlg.eval_custom_func/swapped operands of `<`