OK, but you are* *running code which expects the original, unchanged
GroupLens format, against the modified file you created. That won't work.

I think there's unnecessary confusion here. You don't have to do anything
special to run these examples; they work as-is. (Of course you have to run
the right example on the right input!)

The wiki notes that all of these examples, which already handle special
input formats, could be modified to accept a standard CSV input file. Of
course, then you have to have a standard CSV input file. That's the
conversion step.

But you can't only modify the code, or modify the file -- you'd have to do
both.

On Thu, Feb 24, 2011 at 1:43 PM, Cristian Lai <[email protected]> wrote:

> Ok, i guess i have to run
>
> $MAVEN_HOME/bin/mvn -f $MY_PATH/mahout/examples/pom.xml -q exec:java
> -Dexec.mainClass="org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommenderEvaluatorRunner"
> -Dexec.args="-i ratings-modified.dat"
>
> that still returns an error due to the unexpected input format :
>
> [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:java
> (default-cli) on project mahout-examples: An exception occured while
> executing the Java class. null: InvocationTargetException: Unexpected input
> format on line: 1,1193,5,978300760 -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
>
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
> Then, i've tryied to run it with the original file (the file with '::'). In
> this case the input file seem to be, the example finishes and i get the file
> /var/folders/qN/qNNZz6mEGCm0xe6CxuiceE+++TI/-Tmp-/ratings.txt
>
> I suppose to find there the results of the recommendation on GroupLens
> input data.
>
> Thanks for your help.
> Regards.
>
> cristian
>

Reply via email to