Пример #1
0
 ///
 public override void SaveModel(string file)
 {
     using (StreamWriter writer = Recommender.GetWriter(file, this.GetType()))
     {
         IMatrixUtils.WriteMatrix(writer, user_factors);
         IMatrixUtils.WriteMatrix(writer, item_factors);
     }
 }
Пример #2
0
 ///
 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);
     }
 }
Пример #3
0
 ///
 public override void SaveModel(string filename)
 {
     using (StreamWriter writer = Recommender.GetWriter(filename, this.GetType()))
         IMatrixUtils.WriteMatrix(writer, item_attribute_weight_by_user);
 }