mahout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Owen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (MAHOUT-689) runlogisti​c in Mahout 0.4 does not work
Date Fri, 06 May 2011 12:28:03 GMT

     [ https://issues.apache.org/jira/browse/MAHOUT-689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sean Owen resolved MAHOUT-689.
------------------------------

       Resolution: Fixed
    Fix Version/s: 0.5
         Assignee: Sean Owen

Bugs ought to be reported against HEAD in Subversion, if they can be reproduced. Mahout 0.4
is now quite old. I am 99% certain this can't be reproduced because it involes JSON parsing
and this has already been removed from HEAD. But please comment and/or reopen if you can reproduce.

> runlogisti​c in Mahout 0.4 does not work
> ----------------------------------------
>
>                 Key: MAHOUT-689
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-689
>             Project: Mahout
>          Issue Type: Bug
>    Affects Versions: 0.4
>         Environment: CENTOS 5.5 64bit with Oracle Java 1.6.0_23
>            Reporter: XiaoboGu
>            Assignee: Sean Owen
>             Fix For: 0.5
>
>
> [gpadmin@lixsvr1 mahtest]$ mahout trainlogistic --input donut.csv --output ./model --target
color --categories 2 --predictors x y --types numeric --features 20 --passes 100 --rate 50

> Running on hadoop, using HADOOP_HOME=/usr/local/hadoop
> No HADOOP_CONF_DIR set, using /usr/local/hadoop/conf 
> 20
> color ~ -0.149*Intercept Term + -0.701*x + -0.427*y
>       Intercept Term -0.14885
>                    x -0.70136
>                    y -0.42740
>     0.000000000     0.000000000     0.000000000     0.000000000     0.000000000    -0.148846792
    0.000000000     0.000000000     0.000000000     0.000000000     0.000000000     0.000000000
    0.000000000    -0.427403872    -0.701362221     0.000000000     0.000000000     0.000000000
    0.000000000     0.000000000 
> 11/05/06 15:56:48 INFO driver.MahoutDriver: Program took 2014 ms
> [gpadmin@lixsvr1 mahtest]$ mahout runlogistic --input donut.csv --model ./model --auc
--confusion 
> Running on hadoop, using HADOOP_HOME=/usr/local/hadoop
> No HADOOP_CONF_DIR set, using /usr/local/hadoop/conf 
> Exception in thread "main" com.google.gson.JsonParseException: Failed parsing JSON source:
java.io.FileReader@2c19e15c to Json
>         at com.google.gson.JsonParser.parse(JsonParser.java:57)
>         at com.google.gson.Gson.fromJson(Gson.java:376)
>         at com.google.gson.Gson.fromJson(Gson.java:352)
>         at org.apache.mahout.classifier.sgd.LogisticModelParameters.loadFrom(LogisticModelParameters.java:141)
>         at org.apache.mahout.classifier.sgd.LogisticModelParameters.loadFrom(LogisticModelParameters.java:154)
>         at org.apache.mahout.classifier.sgd.RunLogistic.main(RunLogistic.java:56)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
>         at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
>         at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:184)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:186)
> Caused by: com.google.gson.ParseException: Encountered "\"updateCounts\"" at line 8,
column 51.
> Was expecting one of:
>     "}" ...
>     "," ...
>     
>         at com.google.gson.JsonParserJavacc.generateParseException(JsonParserJavacc.java:658)
>         at com.google.gson.JsonParserJavacc.jj_consume_token(JsonParserJavacc.java:540)
>         at com.google.gson.JsonParserJavacc.JsonObject(JsonParserJavacc.java:59)
>         at com.google.gson.JsonParserJavacc.JsonValue(JsonParserJavacc.java:169)
>         at com.google.gson.JsonParserJavacc.Pair(JsonParserJavacc.java:89)
>         at com.google.gson.JsonParserJavacc.Members(JsonParserJavacc.java:72)
>         at com.google.gson.JsonParserJavacc.Members(JsonParserJavacc.java:76)
>         at com.google.gson.JsonParserJavacc.Members(JsonParserJavacc.java:76)
>         at com.google.gson.JsonParserJavacc.Members(JsonParserJavacc.java:76)
>         at com.google.gson.JsonParserJavacc.Members(JsonParserJavacc.java:76)
>         at com.google.gson.JsonParserJavacc.Members(JsonParserJavacc.java:76)
>         at com.google.gson.JsonParserJavacc.Members(JsonParserJavacc.java:76)
>         at com.google.gson.JsonParserJavacc.Members(JsonParserJavacc.java:76)
>         at com.google.gson.JsonParserJavacc.Members(JsonParserJavacc.java:76)
>         at com.google.gson.JsonParserJavacc.JsonObject(JsonParserJavacc.java:53)
>         at com.google.gson.JsonParserJavacc.parse(JsonParserJavacc.java:19)
>         at com.google.gson.JsonParser.parse(JsonParser.java:53)
>         ... 17 more
> [gpadmin@lixsvr1 mahtest]$ 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message