Hi Yuhan,

You can run "BuildForest" on your train data and "TestForest" on your
testing data.

You can check the example here:
https://cwiki.apache.org/MAHOUT/partial-implementation.html

I use mahout 0.6 and it works for me, but not sure it will work in
other mahout version.

Best,
Chyi-Kwei Yau

On Mon, Aug 13, 2012 at 8:11 PM, Yuhan Zhang <[email protected]> wrote:
> some typo in the last email:
>  name of the method is decisionForest.classify(dataset, random, Instance)
>
> if a dataset other than training dataset is given, it will result
> IllegalArgumentException:values not found for attribute 1.
>
> need some help here.
>
> Yuhan
>
> On Mon, Aug 13, 2012 at 5:03 PM, Yuhan Zhang <[email protected]> wrote:
>
>> Hi all,
>>
>> I'm  trying to train a decision forest, save it to file, and use it latter.
>> I have managed to write a trained decision forest to file using
>> "DecisionForest.write( dataOutPut ) ";
>>
>> but when I load a saved decision tree from file  to classify, I realized
>> the the method
>> DecisionForest.classifier(Dataset, random, Instance) is expecting the
>> original training Dataset.
>>
>> Is there a way to avoid loading the training Dataset? It is kind large,
>> and I'd like to avoid loading it.
>>
>>
>> Thank you
>>
>> Yuhan
>
>
>
>
> --
> Yuhan Zhang
> Senior Software Engineer
> OneScreen Inc.
> [email protected] <[email protected]>
> www.onescreen.com
> (949) 525-4825 Ext: 177
>
>
> The information contained in this e-mail is for the exclusive use of the
> intended recipient(s) and may be confidential, proprietary, and/or legally
> privileged. Inadvertent disclosure of this message does not constitute a
> waiver of any privilege.  If you receive this message in error, please do
> not directly or indirectly print, copy, retransmit, disseminate, or
> otherwise use the information. In addition, please delete this e-mail and
> all copies and notify the sender.

Reply via email to