Describe the bug
The code in set_constraint is currently applicable to 1-component fits only. For constraints to both elements in mixture_means for a 2-component fit, it breaks at line 648 (constraint[key].lower_bound). The code needs to be generalised to multiple components and for all applicable parameters, including mixture_means.
Also, set_hypers refers to it as sci_kernel.mixture_means, whereas this reference also produces an error when using it with set_constraints, which seems to prefer mixture_means.
Describe the bug The code in
set_constraint
is currently applicable to 1-component fits only. For constraints to both elements inmixture_means
for a 2-component fit, it breaks at line 648 (constraint[key].lower_bound
). The code needs to be generalised to multiple components and for all applicable parameters, includingmixture_means
.Also,
set_hypers
refers to it assci_kernel.mixture_means
, whereas this reference also produces an error when using it withset_constraints
, which seems to prefermixture_means
.