Open
Description
Feature motivation
If you have multiple variants of some kind of component, e.g. multiple preprocessing functions, it would be very nice to store them all in a dictionary rather than having to define separate fields (which is error-prone especially as component classes get bigger, subclass other components etc)
(CC @CNugteren)
Feature description
Would be nice to be able to do something like this:
preprocessing: Dict[str, Preprocessing] = {
"default": ComponentField(),
"custom": ComponentField(),
}
Of course the fields would still have to be CLI overridable, e.g. MyComponent.preprocessing.default.some_attribute="value"
Feature implementation
I don't think this will necessarily be easy, but I also don't think it should be too difficult. We'll mainly have to make sure the config "paths" are handled correctly and the inheritance works properly. I'd hope this could be done in a day or so.
Activity