mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From VIGNESH PRAJAPATI <vignesh2...@gmail.com>
Subject Item Recommender Does not read Filedatamodel
Date Wed, 29 Feb 2012 17:21:21 GMT
 Hello Mahout Group,

  When i am going to rum my ItemBased Recommender on below given Dataset
structure.It gives me this errors. I cant understand ,Whats the problem
?can any one have solution for this?

Error:


[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model
for
com.unresyst:mahoutrec:jar:1.0-SNAPSHOT
[WARNING] 'parent.relativePath' points at
org.apache.mahout:mahout-distribution
instead of org.apache.mahout:mahout, please verify your project structure @
line
 4, column 9
[WARNING]
[WARNING] It is highly recommended to fix these problems because they
threaten t
he stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support
buildin
g such malformed projects.
[WARNING]
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building mahoutrec 1.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] >>> exec-maven-plugin:1.2.1:java (default-cli) @ mahoutrec >>>
[INFO]
[INFO] <<< exec-maven-plugin:1.2.1:java (default-cli) @ mahoutrec <<<
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:java (default-cli) @ mahoutrec ---
Feb 29, 2012 10:38:07 PM org.slf4j.impl.JCLLoggerAdapter info
INFO: Creating FileDataModel for file datasets\mydb.csv
Feb 29, 2012 10:38:08 PM org.slf4j.impl.JCLLoggerAdapter info
INFO: Reading file info...
[WARNING]
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalArgumentException: Bad line: 444,25414
        at
com.google.common.base.Preconditions.checkArgument(Preconditions.java
:116)
        at
org.apache.mahout.cf.taste.impl.model.file.FileDataModel.processLine(
FileDataModel.java:374)
        at
org.apache.mahout.cf.taste.impl.model.file.FileDataModel.processFile(
FileDataModel.java:329)
        at
org.apache.mahout.cf.taste.impl.model.file.FileDataModel.buildModel(F
ileDataModel.java:231)
        at
org.apache.mahout.cf.taste.impl.model.file.FileDataModel.reload(FileD
ataModel.java:203)
        at
org.apache.mahout.cf.taste.impl.model.file.FileDataModel.<init>(FileD
ataModel.java:189)
        at
org.apache.mahout.cf.taste.impl.model.file.FileDataModel.<init>(FileD
ataModel.java:146)
        at com.unresyst.ItemRecommender.main(ItemRecommender.java:27)
        ... 6 more
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5.578s
[INFO] Finished at: Wed Feb 29 22:38:10 IST 2012
[INFO] Final Memory: 12M/254M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.codehaus.mojo:exec-maven-plugin:1.2.1:java (d
efault-cli) on project mahoutrec: An exception occured while executing the
Java
class. null: InvocationTargetException: Bad line: 444,25414 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception

Dataset  Sample:[userId,ItemId,Ratings]

1,133,8
1,720,6
1,971,10
1,1095,7
1,1616,10
1,1978,7
1,2145,8
1,2211,8
1,3751,7
1,4062,3
1,4633,10
1,4842,5
1,6518,6
1,7576,8
1,7724,7
-- 

*Vignesh Prajapati*
Tel: 9427415949 |
vignesh2066@gmail.com | www.vipras.com.co.in
MYTK [image: Facebook] <https://www.facebook.com/vigs143> [image:
Twitter]<http://twitter.com/#%21/vigs143> [image:
LinkedIn] <http://www.linkedin.com/pub/vignesh-prajapati/37/756/46a> [image:
about.me] <http://www.way4fun.tk><http://r1.wisestamp.com/r/landing?promo=7&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_7>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message