@current_app.template_filter()
def sum_key(value, key):
    values = [r.get(key, 0) if hasattr(r, 'get') else getattr(r, key, 0) for r in value]
    return sum(values)
Return the ponderated MSE over one sequence.
dataset/ETHPy150Open Robpol86/Flask-Large-Application-Example/pypi_portal/middleware.py/sum_key--crossover with--dataset/ETHPy150Open pybrain/pybrain/pybrain/datasets/supervised.py/SupervisedDataSet._evaluateSequence