pysolvegn.build_batch_fixed_parametrization#

build_batch_fixed_parametrization(n_p_outputs, optimized_indices, fixed_parameters=None)[source]#

Build a BatchParametrization that fixes some output parameters while optimizing only a selected subset of them (batched counterpart of build_fixed_parametrization()).

The same parameters are fixed, at the same values, for all the problems of the batch.

Parameters:
  • n_p_outputs (int) – Number of output parameters.

  • optimized_indices (Sequence[int]) – Indices of the output parameters that are optimized. The order defines the order of the input parameters.

  • fixed_parameters (Optional[ArrayLike], optional) – Initial/fixed values of all output parameters, with shape (n_p_outputs,). If None, all fixed parameters are initialized to zero.

Returns:

The resulting parametrization: (m, len(optimized_indices)) -> (m, n_p_outputs).

Return type:

BatchParametrization