autointent.advisor.ReduceToFitError#
- exception autointent.advisor.ReduceToFitError(message, *, pruned_config, last_report)#
Bases:
RuntimeErrorRaised by
reduce_to_fit()when no subset of the search space fits.The exception carries the final pruned config and the last report so callers can still inspect what was tried — the review’s contract was “raise, don’t silently degrade,” which is exactly what this signals: even after removing every module the advisor knows how to drop, at least one scoring node has an OVER finding that no further pruning can resolve.
- Parameters:
- pruned_config#
- last_report#
- classmethod nothing_droppable(*, pruned_config, last_report)#
- Parameters:
- Return type:
- classmethod scoring_exhausted(*, pruned_config, last_report)#
- Parameters:
- Return type:
- classmethod not_converged(max_iters, *, pruned_config, last_report)#
- Parameters:
- Return type: