class_docstr: Object for conducting search experiments.
class_docstr_tok: ["Object","for","conducting","search","experiments","."]
code: def serial_evaluate(self, N=-1):
      for trial in self.trials._dynamic_trials:
          if trial["state"] == base.JOB_STATE_NEW:
              trial["state"] = base.JOB_STATE_RUNNING
              now = coarse_utcnow()
              trial["book_time"] = now
              trial["refresh_time"] = now
              spec = base.spec_from_misc(trial["misc"])
              ctrl = base.Ctrl(self.trials, current_trial=trial)
              try:
                  result = self.domain.evaluate(spec, ctrl)
              except Exception as e:
                  logger.error("job exception: %s" % str(e))
                  trial["state"] = base.JOB_STATE_ERROR
                  trial["misc"]["error"] = (str(type(e)), str(e))
                  trial["refresh_time"] = coarse_utcnow()
                  if not self.catch_eval_exceptions:
                      # -- JOB_STATE_ERROR means this trial
                      #    will be removed from self.trials.trials
                      #    by this refresh call.
                      self.trials.refresh()
                      raise
              else:
                  trial["state"] = base.JOB_STATE_DONE
                  trial["result"] = result
                  trial["refresh_time"] = coarse_utcnow()
              N -= 1
              if N == 0:
                  break
      self.trials.refresh()
  
imports: import functools
  import inspect
  import logging
  import os
  import sys
  import time
  from timeit import default_timer
  import numpy
  from hyperopt import tpe, exceptions
  from hyperopt.base import validate_timeout, validate_loss_threshold
  from .None import pyll
  from .utils import coarse_utcnow
  from .None import base
  from .None import progress
label_desc: Use image node_id 2 for calling the FMinIter obj's underlying member method code with example usage: obj.serial_evaluate(N) without return types