You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by sr...@apache.org on 2009/03/07 11:58:54 UTC
svn commit: r751242 -
/lucene/mahout/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java
Author: srowen
Date: Sat Mar 7 10:58:54 2009
New Revision: 751242
URL: http://svn.apache.org/viewvc?rev=751242&view=rev
Log:
Fixed the example's file naming convention since some files were being incorrectly read as update data files
Modified:
lucene/mahout/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java
Modified: lucene/mahout/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java?rev=751242&r1=751241&r2=751242&view=diff
==============================================================================
--- lucene/mahout/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java (original)
+++ lucene/mahout/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java Sat Mar 7 10:58:54 2009
@@ -84,7 +84,7 @@
private static File convertGLFile(File originalFile, boolean ratings) throws IOException {
// Now translate the file; remove commas, then convert "::" delimiter to comma
File resultFile = new File(new File(System.getProperty("java.io.tmpdir")),
- "taste." + (ratings ? "ratings" : "movies") + ".txt");
+ (ratings ? "ratings" : "movies") + ".txt");
if (!resultFile.exists()) {
PrintWriter writer = null;
try {