mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject svn commit: r1408320 - /mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/file/FileDataModel.java
Date Mon, 12 Nov 2012 15:26:32 GMT
Author: srowen
Date: Mon Nov 12 15:26:31 2012
New Revision: 1408320

URL: http://svn.apache.org/viewvc?rev=1408320&view=rev
Log:
Fix in-place update of FileDataModel where PreferenceArray data has a data point removed --
not being updated currently

Modified:
    mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/file/FileDataModel.java

Modified: mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/file/FileDataModel.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/file/FileDataModel.java?rev=1408320&r1=1408319&r2=1408320&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/file/FileDataModel.java
(original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/file/FileDataModel.java
Mon Nov 12 15:26:31 2012
@@ -424,6 +424,7 @@ public class FileDataModel extends Abstr
                   newPrefs.set(j, prefs.get(i));
                 }
               }
+              ((FastByIDMap<PreferenceArray>) data).put(userID, newPrefs);
             }
           }
         }



Mime
View raw message