param_names (list[str]) – param_names should have the same length as the number of params
k_params (None or int) – If k_params is None, then the k_params attribute is used, unless
it is None.
If k_params is not None, then it will also set the k_params
attribute.