Orange Forum • View topic - Relief + Cross validation

Relief + Cross validation

A place to ask questions about methods in Orange and how they are used and other general support.

Relief + Cross validation

Postby ghyan » Mon Jun 11, 2012 23:57

Seems that relief is very slow now on my data. If I disable check_cached_data (setting to be false), it runs much faster. But I am not sure whether this is the right thing to do, as I am using the cross validation method based on relief. The following is my code:

1. learner = Orange.classification.bayes.NaiveLearner()
2. myscorer = Orange.feature.scoring.Relief(k = 20, m = 100, check_cached_data=True)
3. myfilter = Orange.feature.selection.FilterBestN(measure = myscorer, n = top_k)
4. filtered_learner = Orange.feature.selection.FilteredLearner(learner, filter = myfilter, name = 'filtered')
5. results = testing.cross_validation([filtered_learner], data, folds = 5)

So is it OK for me to disable check_cached_data here?

Many thanks for your help.

Re: Relief + Cross validation

Postby Ales » Tue Jun 12, 2012 18:11

Yes, it should be safe to disable it.

Re: Relief + Cross validation

Postby ghyan » Wed Jun 13, 2012 18:19

Thanks, Ales.


Return to Questions & Support