# macop.callbacks.UCBCheckpoint

UCB policy Checkpoint class implementation

Classes

`UCBCheckpoint`(_every, _filepath) | UCB checkpoint is used for loading previous UCB data and start again after loading checkpoint Need to be the same operators used during previous run

class `macop.callbacks.UCBCheckpoint.``UCBCheckpoint`(_every, _filepath)

  UCB checkpoint is used for loading previous UCB data and start again after loading checkpoint Need to be the same operators used during previous run

  `algo`

    {Algorithm} – main algorithm instance reference

  `every`

    {int} – checkpoint frequency used (based on number of evaluations)

  `filepath`

    {str} – file path where checkpoints will be saved

  `load`()

    Load backup lines as rewards and occurrences for UCB

  `run`()

    Check if necessary to do backup based on every variable