def test_constructor_kwargs(self):
        """Using kwargs to pass additional parameters to the constructor"""
        constructor_kwargs = {
            "initialization_method": "known",
            "initial_level": 0.5,
            "initial_trend": 0.2,
            "initial_seasonal": np.arange(1, 25),
        }
        model = ExponentialSmoothing(kwargs=constructor_kwargs)
        model.fit(self.series)
        # must be checked separately, name is not consistent
        np.testing.assert_array_almost_equal(
            model.model.model.params["initial_seasons"],
            constructor_kwargs["initial_seasonal"],
        )
        for param_name in ["initial_level", "initial_trend"]:
            assert (
                model.model.model.params[param_name] == constructor_kwargs[param_name]
            )
Using kwargs to pass additional parameters to the constructor
darts/tests/models/forecasting/test_exponential_smoothing.py