The data files appear to be there:

WEB-INF/classes/org/apache/mahout/cf/taste/example/grouplens/movies.dat
WEB-INF/classes/org/apache/mahout/cf/taste/example/grouplens/ratings.dat

-- Matt


On Thu, Mar 5, 2009 at 9:53 AM, Sean Owen <[email protected]> wrote:

> What this suggests to me actually is that the 'movies.dat' file isn't
> present or is otherwise not quite all there... the data file seems to
> be being read but it's got a reference to a movie that doesn't exist,
> somehow.
>
> Is movies.dat in place and getting packaged up? try "jar tf" on the
> .war file to see its contents.
>
> The data files are expected under
> /org/apache/mahout/cf/taste/example/grouplens/
>
>
>
> On Thu, Mar 5, 2009 at 2:49 AM, Matthew Roberson <[email protected]>
> wrote:
> > So...
> >
> > I placed the GroupLens data files in the following directory:
> >
> /Mahout/trunk/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens
> >
> > I ran mvn package.
> >
> > I then set the path for recommender class in web.xml to poin to
> > GroupLensRecommender.
> >
> > I then deploy the following war file in Tomcat:
> > mahout-taste-webapp-0.2-SNAPSHOT.war (located in
> > Mahout/trunk/taste-web/target)
> >
> > I then type in browser: http://localhost:8080/
> > mahout-taste-webapp-0.2-SNAPSHOT/RecommenderServlet?userID=1&debug=true
> >
> > And get NoSuchElementException regarding not finding the Group Lens data
> > files in GroupLensDataModel.
> >
> > What am I doing wrong?
> >
> > If it can find the GroupLensRecommender class file, why can't it find the
> > data files if they have the same path???
> >
> > java.util.NoSuchElementException
> >
>  
> org.apache.mahout.cf.taste.example.grouplens.GroupLensDataModel.buildItem(GroupLensDataModel.java:61)
> >
>  
> org.apache.mahout.cf.taste.impl.model.file.FileDataModel.processLine(FileDataModel.java:244)
> >
>  
> org.apache.mahout.cf.taste.impl.model.file.FileDataModel.processFile(FileDataModel.java:171)
> >
>  
> org.apache.mahout.cf.taste.impl.model.file.FileDataModel.reload(FileDataModel.java:127)
> >
>  
> org.apache.mahout.cf.taste.example.grouplens.GroupLensDataModel.reload(GroupLensDataModel.java:80)
> >
>  
> org.apache.mahout.cf.taste.impl.model.file.FileDataModel.checkLoaded(FileDataModel.java:259)
> >
>  
> org.apache.mahout.cf.taste.impl.model.file.FileDataModel.getUsers(FileDataModel.java:265)
> >
>

Reply via email to