def as_signal_score(y_true, y_pred, sample_weight=None):
    sample_weight = check_sample_weight(y_true, sample_weight)
    assert len(y_true) == len(y_pred), "Different size of arrays"
    return numpy.sum(y_pred * sample_weight) / numpy.sum(sample_weight)
Process a plugin from running to ranking.
dataset/ETHPy150Open anaderi/lhcb_trigger_ml/hep_ml/metrics.py/as_signal_score--crossover with--dataset/ETHPy150Open owtf/owtf/framework/plugin/plugin_handler.py/PluginHandler.ProcessPlugin