polaris learn: Allow user to specify list of transformers
Currently, the list of transformers for polaris learn
is hardcoded; at https://gitlab.com/crespum/polaris/blob/master/polaris/learn/analysis.py#L22, we have this line:
transformers = create_list_of_transformers(["5min", "15min"], TSIntegrale)
We should allow the user to specify a list of transformers, while keeping this as the default.
Note: The question of how to allow users to do needs some thought. The CLI options for Polaris are proliferating already; adding more is only going to make the CLI clumsier to use. In addition, the parameters that will be needed for each transformer (let alone a list of them) are going to be numerous; supplying them via the command line is going to be frustrating for the user.
As part of %Automatically update importance graphs on deepchaos.space, I have begun to add support for a configuration file to Polaris. This work is outlined in !71 (closed); that MR is currently closed, but will be resubmitted shortly. As a rough outline of how the config file might support specifying transformers, you could imagine something like this:
[lightsail2]
name = LightSail-2
transformers = [[["5min", "15min"], TransformerOne], [["5min", "1h"], TransformerTwo]]
I'm not completely happy with that, because of the way we're storing a list as a single string. It's possible that we may need to think about a JSON config file or something else; suggestions are welcome. Given that uncertainty, I'd say that the question of how to configure this should not block work on this feature. We can always change from (say) a command line argument to something else later on.