/// <summary>Load the model parameters of a recommender from a file</summary> /// <remarks> /// Does not load model if filename is an empty string. /// </remarks> /// <param name="recommender">the <see cref="IRecommender"/> to save</param> /// <param name="filename">the filename template</param> public static void LoadModel(IRecommender recommender, string filename) { if (filename == string.Empty) { return; } Console.Error.WriteLine("Load model from {0}", filename); recommender.LoadModel(filename); }
/// <summary>Load the model parameters of a recommender from a file</summary> /// <param name="recommender">the <see cref="IRecommender"/> to load</param> /// <param name="filename">the filename template</param> public static void Load(IRecommender recommender, string filename) { Console.Error.WriteLine("Load model from {0}", filename); recommender.LoadModel(filename); }