Configuring a Basic Logger for the Generalized Kaczmarz Solver

The generalized Kaczmarz solver solver [3] is specified by five quantities:

Here, we demonstrate how to configure the BasicLogger. The BasicLogger has three arguments:

  • the maximum number of iterations (max_it) to run the generalized Kaczmarz solver;
  • a threshold for the error that terminates the solver when the error drops below this value;
  • and the interval of iterates at which to log the error.

Below is an example for specifying the BasicLogger.

logger = BasicLogger(
    max_it = 500,           #Maximum of 500 iterations
    threshold = 1e-6,       #Error threshold of 1e-6
    collection_rate = 5     #Records error at every fifth iterate
)