uf3.regression.least_squares.revert_frozen_coefficients

revert_frozen_coefficients(solution: numpy.ndarray, n_coeff: int, mask: Collection[bool], frozen_c: Collection[float], frozen_idx: Collection[int]) numpy.ndarray[source]

Reverse freezing operations by arranging learned coefficients and frozen coefficients using the mask.

Parameters
  • solution – learned solution, excluding frozen coefficients

  • n_coeff – number of columns in full (unfrozen) solution

  • mask – indices of remaining columns in x.

  • frozen_idx – column indices of fixed coefficients.

  • frozen_c – frozen coefficients.

Returns

full_solution (np.ndarray)