class_docstr: Object for conducting search experiments.
class_docstr_tok: ["Object","for","conducting","search","experiments","."]
code: def __init__(
      self,
      algo,
      domain,
      trials,
      rstate,
      asynchronous=None,
      max_queue_len=1,
      poll_interval_secs=1.0,
      max_evals=sys.maxsize,
      timeout=None,
      loss_threshold=None,
      verbose=False,
      show_progressbar=True,
      early_stop_fn=None,
      trials_save_file="",
  ):
      self.algo = algo
      self.domain = domain
      self.trials = trials
      if not show_progressbar or not verbose:
          self.progress_callback = progress.no_progress_callback
      elif show_progressbar is True:
          self.progress_callback = progress.default_callback
      else:
          self.progress_callback = show_progressbar
      if asynchronous is None:
          self.asynchronous = trials.asynchronous
      else:
          self.asynchronous = asynchronous
      self.poll_interval_secs = poll_interval_secs
      self.max_queue_len = max_queue_len
      self.max_evals = max_evals
      self.early_stop_fn = early_stop_fn
      self.early_stop_args = []
      self.trials_save_file = trials_save_file
      self.timeout = timeout
      self.loss_threshold = loss_threshold
      self.start_time = timer()
      self.rstate = rstate
      self.verbose = verbose
  
      if self.asynchronous and not hasattr(self.trials, "_spark"):
          if "FMinIter_Domain" in trials.attachments:
              logger.warning(
                  "over-writing old domain trials attachment"
              )
          msg = pickler.dumps(domain)
          # -- sanity check for unpickling
          pickler.loads(msg)
          trials.attachments["FMinIter_Domain"] = msg
  
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 1 to create a new FMinIter object  with example: obj = FMinIter(algo, domain, trials, rstate, asynchronous, max_queue_len, poll_interval_secs, max_evals, timeout, loss_threshold, verbose, show_progressbar, early_stop_fn, trials_save_file)