Ignore:
Timestamp:
03/22/11 13:12:42 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
6affd456eb07310c6eec9f6a98ccb80707d6d695
Message:

Renamed the use of 'testWithIndices' to 'test_with_indices'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/classification/wrappers.py

    r7632 r7767  
    3333    domain = Orange.data.Domain([], classVar) 
    3434 
    35     res = Orange.evaluation.testing.testWithIndices([self.learner], Orange.data.Table(domain, examples), indices) 
     35    res = Orange.evaluation.testing.test_with_indices([self.learner], Orange.data.Table(domain, examples), indices) 
    3636     
    3737    oldStat = self.stat(res)[0] 
     
    4545            for attr in domain.attributes: 
    4646                newdomain = Orange.data.Domain(filter(lambda x: x!=attr, domain.attributes), classVar) 
    47                 res = Orange.evaluation.testing.testWithIndices([self.learner], (Orange.data.Table(newdomain, examples), weightID), indices) 
     47                res = Orange.evaluation.testing.test_with_indices([self.learner], (Orange.data.Table(newdomain, examples), weightID), indices) 
    4848                 
    4949                newStat = self.stat(res)[0] 
     
    6666            if not attr in domain.attributes: 
    6767                newdomain = Orange.data.Domain(domain.attributes + [attr], classVar) 
    68                 res = Orange.evaluation.testing.testWithIndices([self.learner], (Orange.data.Table(newdomain, examples), weightID), indices) 
     68                res = Orange.evaluation.testing.test_with_indices([self.learner], (Orange.data.Table(newdomain, examples), weightID), indices) 
    6969                 
    7070                newStat = self.stat(res)[0] 
Note: See TracChangeset for help on using the changeset viewer.