felipeangelimvieira / prophetverse

A multiverse of Prophet models for timeseries
https://prophetverse.com
Apache License 2.0
32 stars 3 forks source link

[ENH] modularization of effects - design discussion #73

Closed fkiraly closed 4 months ago

fkiraly commented 4 months ago

Design issue related to modularization of effects objects.

Transplanting some discussion from sktime here in relation to modularization of effects, from https://github.com/sktime/sktime/issues/6639#issuecomment-2178527551


@felipeangelimvieira:

Should effects implement get_params() behavior so that their parameters can be set with set_params()?


@fkiraly:

That is not required by the API but I would see it as a good practice suggestion, or users will not have access to tuning and automl related to these in a more granular way than the entire hyperparameter (not the nested ones)

If the objects have a fixed set of parameters, or is a list, you can inherit from various scikit-base classes to give the API a nice sklearn-like flavour with get/set-params.

Concretely, what you could do in this case: