jlwright

Random Forest Example: Values not found for Categorical Attr

Apr 10th, 2014
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1.  
  2.  
  3. *********************************PASTE1********************************
  4. Describe step of https://mahout.apache.org/users/stuff/partial-implementation.html
  5. (changed file name for 20Percent File, runnign with mahout script instead of as hadoop -jar)
  6. ***********************************************************************
  7.  
  8. hduser@ausrine:~$ $MAHOUT_HOME/bin/mahout org.apache.mahout.classifier.df.tools.Describe -p testdata/KDDTrain+_20Percent.arff -f testdata/KDDTrain+.info -d N 3 C 2 N C 4 N C 8 N 2 C 19 N L
  9. Warning: $HADOOP_HOME is deprecated.
  10.  
  11. Running on hadoop, using /usr/local/hadoop/bin/hadoop and HADOOP_CONF_DIR=
  12. MAHOUT-JOB: /usr/local/mahout0.9/mahout-examples-0.9-job.jar
  13. Warning: $HADOOP_HOME is deprecated.
  14.  
  15. 14/04/10 14:59:38 WARN driver.MahoutDriver: No org.apache.mahout.classifier.df.tools.Describe.props found on classpath, will use command-line arguments only
  16. 14/04/10 14:59:39 INFO tools.Describe: Generating the descriptor...
  17. 14/04/10 14:59:44 INFO tools.Describe: generating the dataset...
  18. Exception in thread "main" java.lang.IllegalArgumentException: values not found for attribute 1
  19. at com.google.common.base.Preconditions.checkArgument(Preconditions.java:125)
  20. at org.apache.mahout.classifier.df.data.Dataset.validateValues(Dataset.java:251)
  21. at org.apache.mahout.classifier.df.data.Dataset.<init>(Dataset.java:121)
  22. at org.apache.mahout.classifier.df.data.DataLoader.generateDataset(DataLoader.java:203)
  23. at org.apache.mahout.classifier.df.tools.Describe.generateDataset(Describe.java:127)
  24. at org.apache.mahout.classifier.df.tools.Describe.runTool(Describe.java:115)
  25. at org.apache.mahout.classifier.df.tools.Describe.main(Describe.java:100)
  26. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  27. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  28. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  29. at java.lang.reflect.Method.invoke(Method.java:606)
  30. at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
  31. at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
  32. at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:195)
  33. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  34. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  35. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  36. at java.lang.reflect.Method.invoke(Method.java:606)
  37. at org.apache.hadoop.util.RunJar.main(RunJar.java:160)
Advertisement
Add Comment
Please, Sign In to add comment