Find the the parameters resulting in the minimal results for a given evaluation measure using k-fold cross-validation
Declaring type: GridSearch
Namespace: MyMediaLite.Util
Assembly: MyMediaLite
Collapse/Expand Syntax
C#
public static double FindMinimum (
        string evaluation_measure,
        string hyperparameter_name,
        double[] hyperparameter_values,
        RatingPredictor recommender,
        int k
) 
Parameters
evaluation_measure
the name of the evaluation measure
hyperparameter_name
the name of the hyperparameter to optimize
hyperparameter_values
the values of the hyperparameter to try out
recommender
the recommender
k
the number of folds to be used for cross-validation
Return Value
the best (lowest) average value for the hyperparameter
Collapse/Expand Remarks
The recommender will be set to the best parameter value after calling this method.