autointent.advisor.ReduceToFitError#

exception autointent.advisor.ReduceToFitError(message, *, pruned_config, last_report)#

Bases: RuntimeError

Raised 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:
  • message (str)

  • pruned_config (dict[str, Any])

  • last_report (autointent.advisor._report.PreflightReport)

pruned_config#
last_report#
classmethod nothing_droppable(*, pruned_config, last_report)#
Parameters:
  • pruned_config (dict[str, Any])

  • last_report (autointent.advisor._report.PreflightReport)

Return type:

ReduceToFitError

classmethod scoring_exhausted(*, pruned_config, last_report)#
Parameters:
  • pruned_config (dict[str, Any])

  • last_report (autointent.advisor._report.PreflightReport)

Return type:

ReduceToFitError

classmethod not_converged(max_iters, *, pruned_config, last_report)#
Parameters:
  • max_iters (int)

  • pruned_config (dict[str, Any])

  • last_report (autointent.advisor._report.PreflightReport)

Return type:

ReduceToFitError