Ignore:
Timestamp:
04/03/12 07:25:08 (2 years ago)
Author:
blaz <blaz.zupan@…>
Branch:
default
Message:

Some cosmetics and renaming in Orange.feature.selection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/testing/unit/tests/test_feature_selection.py

    r10655 r10708  
    2727         
    2828        # test best_n function 
    29         self.assertEqual(selection.best_n(self.scores, 3), best_3) 
     29        self.assertEqual(selection.top_rated(self.scores, 3), best_3) 
    3030         
    31         self.assertTrue(len(selection.best_n(self.scores, 3)) == 3) 
     31        self.assertTrue(len(selection.top_rated(self.scores, 3)) == 3) 
    3232         
    3333        # all returned values should be strings. 
    3434        self.assertTrue(all(isinstance(item, basestring) for item in \ 
    35                             selection.best_n(self.scores, 3))) 
     35                            selection.top_rated(self.scores, 3))) 
    3636         
    37         new_data = selection.select_best_n(self.data, self.scores, 3) 
     37        new_data = selection.select(self.data, self.scores, 3) 
    3838        self.assertEqual(best_3, [a.name for a in new_data.domain.attributes]) 
    3939        self.assertEqual(new_data.domain.class_var, self.data.domain.class_var) 
Note: See TracChangeset for help on using the changeset viewer.