skuschel / generatorpipeline

Parallelize your data-processing pipelines with just a decorator.
GNU General Public License v3.0
2 stars 3 forks source link

Accumulators: dont throw errors on accumlator.value #28

Open skuschel opened 1 year ago

skuschel commented 1 year ago

When using accumulators its extra work to always catch and ignore errors because the variance accumulator needs at least two elements, the QuantileEstimator needs 5 (but that is variable). So it maybe beneficial, if accumulator.value does not throw an exception, but instead returns float('nan') if the value cannot be calculated yet. This is also automatically ignored by matplotlib during the plot process.