class_docstr: Save current state after each iteration with :class:`skopt.dump`.
  
  
  Examples
  --------
  >>> import skopt
  >>> def obj_fun(x):
  ...     return x[0]**2
  >>> checkpoint_callback = skopt.callbacks.CheckpointSaver("./result.pkl")
  >>> skopt.gp_minimize(obj_fun, [(-2, 2)], n_calls=10,
  ...                   callback=[checkpoint_callback]) # doctest: +SKIP
  
  Parameters
  ----------
  checkpoint_path : string
      location where checkpoint will be saved to;
  dump_options : string
      options to pass on to `skopt.dump`, like `compress=9`
code: def __init__(self, checkpoint_path, **dump_options):
      self.checkpoint_path = checkpoint_path
      self.dump_options = dump_options
  
imports: from time import time
  import numpy
  from skopt.utils import dump
label_desc: Use image node_id 1 to create a new CheckpointSaver object from inherited base classes: object with example: obj = CheckpointSaver(checkpoint_path)