Skip to content

class  Implicit


Description

Lower-level model optimization procedure

The implemented lower-level optimization procedure will optimize a wrapper of lower- level model for further using in the following upper level optimization.


Parameters

  • ll_objective: callable
    An optimization problem which is considered as the constraint of ll problem.

    Callable with signature callable(state). Defined based on modeling of the specific problem that need to be solved. Computing the loss of ll problem. The state object contains the following:

    • "data"(Tensor) - Data used in the ll optimization phase.
    • "target"(Tensor) - Target used in the ll optimization phase.
    • "ul_model"(Module) - UL model of the bi-level model structure.
    • "ll_model"(Module) - LL model of the bi-level model structure.
  • lower_loop: int
    Updating iterations over ll optimization.

  • ul_model: Module
    UL model in a hierarchical model structure whose parameters will be updated with ul objective.

  • ll_model: Module
    LL model in a hierarchical model structure whose parameters will be updated with ll objective during ll optimization.


Methods