I think in my patch to automate the example, I changed things so that
we just had to have the .dat files in the classpath (at the root).
Don't know it helps, but it at least means you don't have to drill
down through so many folders.
-Grant
On Mar 7, 2009, at 5:58 AM, Sean Owen wrote:
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");