It would be nice to have a helper class that takes several pre-processors and applies them to the data one by one sequentially.
Recently, I have been working with madmom and I really like the idea of functions/classes API they provide + their processors API. We could have something similar throughout Bob generally I think.
Designs
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
While the first level of indirection is OK, the second level should be avoided at all costs, but this is what is currently implemented.
Hmm... thinking of it, even your approach would have a three-level indirection, using a (not yet implemented bob.bio.base.preprocessor.MultiPreprocessor):
I can see the sequential preprocessor, but not the parallel one. Parallelization is done though gridtk and, therefore, I don't see a need for a different concept of parallelization.
a parallel processor is different in a sense that instead of passing the data into its processor one by one, it passes all at once and then outputs a list of them. For example:
I see. What you are saying is that we could have a set of preprocessors for one image/original data sample. While this sounds reasonable, so far we have no extractor that would be able to integrate multiple preprocessed data samples into one feature vector. Hence, at the moment I don't see the need of a parallel processor, while it might be interesting in future.