Great catch, that's exactly right. I think the naming scheme I set it to look for could prove a little problematic. For the moment I committed the fix you suggest.
On Sat, Mar 7, 2009 at 9:39 AM, Ryan Shih <[email protected]> wrote: > Hi Matt - This is actually the result of a code problem. For this example, > it picks up your data files fine (you'll be able to verify this by taking a > look in your temp directory on Tomcat because it will write files like > taste.movies.txt and taste.ratings.txt that hold your GLF converted file > after it reads it in from your classpath). However, the example currently > has logic that will look for additional files with the same prefix as > updates to your data. This fails, however because while taste.ratings.txt is > a valid ratings file, it reads taste.movies.txt as an an additional update > file but it's not and it fails to parse correctly. At the moment, it doesn't > appear like there is a way to override this because it's hardcoded so you'll > probably have to patch your file and rebuild. > > A quick & dirty approach that I got to work for me is by editing the > following file & patch the following line. > src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java > > > - "taste." + (ratings ? "ratings" : > "movies") + ".txt"); > + (ratings ? "ratings" : "movies") + > ".txt"); >
