def __init__(self, savedir=None, seed=0, 
                     algParams=dict(), outputParams=dict(),
                     onLapCompleteFunc=lambda:None, onFinishFunc=lambda:None,
               ):
    ''' Constructs and returns a LearnAlg object
    ''' 
    if type(savedir) == str:
      self.savedir = os.path.splitext(savedir)[0]
    else:
      self.savedir = None
    self.seed = int(seed)
    self.PRNG = np.random.RandomState(self.seed)
    self.algParams = algParams
    self.outputParams = outputParams
    self.TraceLaps = set()
    self.evTrace = list()
    self.SavedIters = set()
    self.PrintIters = set()
    self.nObsProcessed = 0
    self.algParamsLP = dict()
    for k,v in algParams.items():
      if 0 > k.count('LP'):
        self.algParamsLP[k] = v
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/learnalg/LearnAlg.py/LearnAlg.__init__/swapped operands of `>`