[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wekalist
Subject:    Re: [Wekalist] how experimenter performs cross-validation
From:       Eibe Frank <eibe () waikato ! ac ! nz>
Date:       2014-11-30 20:57:00
Message-ID: B4001995-2EF5-40B8-8BF4-31956775F537 () waikato ! ac ! nz
[Download RAW message or body]

Take a look at the crossValidateModel() method in \
weka.classifiers.evaluation.Evaluation, which gives the same results as the code in \
the Explorer (ClassifierPanel.java).

You need to make sure that the sequence of pseudo-random numbers is the same.

Cheers,
Eibe

> On 30 Nov 2014, at 04:49, arhk <alireza.h2011@gmail.com> wrote:
> 
> hello
> i have same problem, my result for some parameter of classifier is not equal
> with WEKA  Explorer.
> some part of my java code that working with random class is as follows:
> seed=1;
> rand = new Random(seed);
> RandomizedDataset=new Instances(InputDataset);
> RandomizedDataset.randomize(rand);
> RandomizedDataset.setClassIndex(RandomizedDataset.numAttributes() -
> 1);
> RandomizedDataset.stratify(NumOfFolds);
> for (int i = 0; i < NumOfFolds; i++) {
> rand = new Random(seed);
> seed++;
> TrainingDataset=RandomizedDataset.trainCV(NumOfFolds, i, rand);
> TestingDataset=RandomizedDataset.testCV(NumOfFolds, i);
> please help me ,i need for equal result in java and WEKA Explorer
> 
> Thanks a lot
> 
> 
> 
> 
> --
> View this message in context: \
> http://weka.8497.n7.nabble.com/how-experimenter-performs-cross-validation-tp15679p32904.html
>  Sent from the WEKA mailing list archive at Nabble.com.
> _______________________________________________
> Wekalist mailing list
> Send posts to: Wekalist@list.waikato.ac.nz
> List info and subscription status: \
> http://list.waikato.ac.nz/mailman/listinfo/wekalist List etiquette: \
> http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

_______________________________________________
Wekalist mailing list
Send posts to: Wekalist@list.waikato.ac.nz
List info and subscription status: \
http://list.waikato.ac.nz/mailman/listinfo/wekalist List etiquette: \
http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic