Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-689

runlogisti​c in Mahout 0.4 does not work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.4
    • Fix Version/s: 0.5
    • Component/s: None
    • Labels:
      None
    • Environment:

      CENTOS 5.5 64bit with Oracle Java 1.6.0_23

      Description

      [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]$

        Attachments

          Activity

            People

            • Assignee:
              srowen Sean R. Owen
              Reporter:
              xiaobogu XiaoboGu
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: