class_docstr: A CheckpointCallback class that handles additional logging and
  model's checkpointing.
docstr: Initialization method.
  
  Args:
      file_path: Path of file to be saved.
      frequency: Interval between checkpoints.
docstr_tok: ["Initialization","method",".","Args",":","file_path",":","Path","of","file","to","be","saved",".","frequency",":","Interval","between","checkpoints","."]
code: def __init__(self, file_path: str = None, frequency: int = 0) -> None:
      """Initialization method.
  
      Args:
          file_path: Path of file to be saved.
          frequency: Interval between checkpoints.
  
      """
  
      super(CheckpointCallback, self).__init__()
  
      self.file_path = file_path or "checkpoint.pkl"
      self.frequency = frequency
  
imports: from typing import List, TypeVar, Union
  import numpy
  import opytimizer.utils.exception
  from opytimizer.core.space import Space
label_desc: Use image node_id 1 to create a new CheckpointCallback object from inherited base classes: Callback with example: obj = CheckpointCallback(file_path, frequency)