/// public override void SaveModel(string file) { using (StreamWriter writer = Recommender.GetWriter(file, this.GetType())) { IMatrixUtils.WriteMatrix(writer, user_factors); IMatrixUtils.WriteMatrix(writer, item_factors); } }
/// public override void SaveModel(string filename) { using (StreamWriter writer = Recommender.GetWriter(filename, this.GetType())) { writer.WriteLine(global_bias.ToString(CultureInfo.InvariantCulture)); IMatrixUtils.WriteMatrix(writer, user_factors); IMatrixUtils.WriteMatrix(writer, item_factors); } }
/// public override void SaveModel(string filename) { using (StreamWriter writer = Recommender.GetWriter(filename, this.GetType())) IMatrixUtils.WriteMatrix(writer, item_attribute_weight_by_user); }