code: def update_batches(self, X_batch, L, Min):
          
          self.X_batch = X_batch
          if X_batch is not None:
              self.r_x0, self.s_x0 = self._hammer_function_precompute(X_batch, L, Min, self.model)
docs: Updates the batches internally and pre-computes the