mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lorenz Knies <>
Subject Re: Mahout-0.7 BuildForest execution error
Date Mon, 21 Jan 2013 12:58:55 GMT
i think the oob option is gone

On Jan 21, 2013, at 1:52 PM, Stuti Awasthi <> wrote:

> Hi,
> I have downloaded Mahout and tried to execute Partial Implementation. When I try to run
I am getting the parsing error:
> $HADOOP_HOME/hadoop jar $MAHOUT_HOME/examples/target/mahout-examples-0.7-job.jar org.apache.mahout.classifier.df.mapreduce.BuildForest
-oob -d /testdata/KDDTrain+.arff -ds /testdata/ -sl 5 -p -t 100 -o /testdata/nsl-forest
> 13/01/21 18:16:24 ERROR mapreduce.BuildForest: Exception
> org.apache.commons.cli2.OptionException: Unexpected /testdata/nsl-forest while processing
>        at org.apache.commons.cli2.commandline.Parser.parse(
>        at
>        at
>        at org.apache.mahout.classifier.df.mapreduce.BuildForest.main(
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>        at java.lang.reflect.Method.invoke(
>        at org.apache.hadoop.util.RunJar.main(
> Usage:
> [--data <path> --dataset <dataset> --selection <m> --no-complete --minsplit
> <minsplit> --minprop <minprop> --seed <seed> --partial --nbtrees <nbtrees>
> --output <path> --help]
> Options
>  --data (-d) path             Data path
>  --dataset (-ds) dataset      Dataset path
>  --selection (-sl) m          Optional, Number of variables to select randomly
>                               at each tree-node.
>                               For classification problem, the default is
>                               square root of the number of explanatory
>                               variables.
>                               For regression problem, the default is 1/3 of
>                               the number of explanatory variables.
>  --no-complete (-nc)          Optional, The tree is not complemented
>  --minsplit (-ms) minsplit    Optional, The tree-node is not divided, if the
>                               branching data size is smaller than this value.
>                               The default is 2.
>  --minprop (-mp) minprop      Optional, The tree-node is not divided, if the
>                               proportion of the variance of branching data is
>                               smaller than this value.
>                               In the case of a regression problem, this value
>                               is used. The default is 1/1000(0.001).
>  --seed (-sd) seed            Optional, seed value used to initialise the
>                               Random number generator
>  --partial (-p)               Optional, use the Partial Data implementation
>  --nbtrees (-t) nbtrees       Number of trees to grow
>  --output (-o) path           Output path, will contain the Decision Forest
>  --help (-h)                  Print out help
> If I try to run with Mahout-0.5, its working fine and generating /testdata/nsl-forest/forest.seq
in hdfs.
> Is this a bug in Mahout-0.7 or am I doing something wrong.
> Please Suggest
> Thanks
> Stuti Awasthi
> ----------------------------------------------------------------------------------------------------------------------------------------------------
> The contents of this e-mail and any attachment(s) are confidential and intended for the
named recipient(s) only.
> E-mail transmission is not guaranteed to be secure or error-free as information could
be intercepted, corrupted,
> lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The
e mail and its contents
> (with or without referred errors) shall therefore not attach any liability on the originator
or HCL or its affiliates.
> Views or opinions, if any, presented in this email are solely those of the author and
may not necessarily reflect the
> views or opinions of HCL or its affiliates. Any form of reproduction, dissemination,
copying, disclosure, modification,
> distribution and / or publication of this message without the prior written consent of
authorized representative of
> HCL is strictly prohibited. If you have received this email in error please delete it
and notify the sender immediately.
> Before opening any email and/or attachments, please check them for viruses and other
> ----------------------------------------------------------------------------------------------------------------------------------------------------

View raw message