@staticmethod
    def tune(model, training, testing, non_relevant_count=100, **kwargs):
        model.set_params(**kwargs)
        model.fit(training)
        evaluator = Evaluator()
        # Return the MAPMeasure in position 0
        measure = evaluator.evaluate_model(model, testing, non_relevant_count=non_relevant_count)[0]
        print "tried {} = {}".format(kwargs, measure)
        return measure
Return a mean for the predictive power
dataset/ETHPy150Open grafos-ml/test.fm/src/testfm/evaluation/parameter_tuning.py/ParameterTuning.tune