Updates the batches internally and pre-computes the

def update_batches(self, X_batch, L, Min):
        """
        Updates the batches internally and pre-computes the
        """
        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)