(self, wmodel, chronological)
Initialize BaseEvaluator instance.

    Args:
      wmodel: WrappedModel instance
      chronological: whether to evaluate in chronological order or in any order
Initialize BaseEvaluator instance.
Initialize BaseEvaluator instance .
def __init__(self, wmodel, chronological):
    """Initialize BaseEvaluator instance.

    Args:
      wmodel: WrappedModel instance
      chronological: whether to evaluate in chronological order or in any order
    """
    self.wmodel = wmodel
    self.chronological = chronological

    def predictor(pianorolls, masks):
      p = self.wmodel.sess.run(
          self.wmodel.model.predictions,
          feed_dict={
              self.wmodel.model.pianorolls: pianorolls,
              self.wmodel.model.masks: masks
          })
      return p

    self.predictor = lib_tfutil.RobustPredictor(predictor)
def __init__ ( self , wmodel , chronological ) : self . wmodel = wmodel self . chronological = chronological def predictor ( pianorolls , masks ) : p = self . wmodel . sess . run ( self . wmodel . model . predictions , feed_dict = { self . wmodel . model . pianorolls : pianorolls , self . wmodel . model . masks : masks } ) return p self . predictor = lib_tfutil . RobustPredictor ( predictor )