Bugfix: Feature Aggregator Box chunk date/duration check
The Feature Aggregator Box doesn't work if the feature vectors at the inputs don't have the same time segmentation.
Example (see attached scenario): input 1 & 2 of both Feat. Aggregator boxes receive the same kind of data, with the exact same format. But input 1 is computed from a "Time based epoching" with window length 0.5s and window shift 0.25s, while input 2 uses window length of 0.25s and window shift of 0.16s. For trials of 3s, this means 11 windows of signal in one side, and 18 windows of signal in the other. After PSD computation, frequency selection and averaging across epochs (respectively 11 windows and 18 windows), the obtained feature vectors share the same dimensions.
In CBoxAlgorithmFeatureAggregator.cpp
, processInput()
(line 72), at lines 90 to 107, there is a check done on every input's first chunk dates and durations. If those don't match across inputs, then an error is triggered.
When commenting this check, no crash occurs, the Feature Aggregator boxes work correctly, the training (by the Classifier Trainer Box) also works, and the obtained weights and training score are correct.
Should this check be removed?
Scenario: train-feat-aggregator-bugfix.xml