Changeset 10249:96ba2a54c7ab in orange


Ignore:
Timestamp:
02/15/12 13:39:51 (2 years ago)
Author:
ales_erjavec
Branch:
default
Message:

Fixed use of deprecated names.

File:
1 edited

Legend:

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

    r9679 r10249  
    5353        # Need the data for ExamplesDistanceConstructor_Euclidean   
    5454        self.learner = self.LEARNER(kernel_type=SVMLearner.Custom, 
    55                                     kernelFunc=RBFKernelWrapper(orange.ExamplesDistanceConstructor_Euclidean(data), gamma=0.5)) 
     55                                    kernel_func=RBFKernelWrapper(orange.ExamplesDistanceConstructor_Euclidean(data), gamma=0.5)) 
    5656         
    5757        testing.LearnerTestCase.test_learner_on(self, data) 
     
    7676        reduced = rfe(data, num_selected) 
    7777        self.assertEqual(len(reduced.domain.attributes), num_selected) 
    78         scores = rfe.getAttrScores(data, stopAt=num_selected) 
     78        scores = rfe.get_attr_scores(data, stop_at=num_selected) 
    7979        self.assertEqual(len(data.domain.attributes) - num_selected, len(scores)) 
    8080        self.assertTrue(set(reduced.domain.attributes).isdisjoint(scores.keys())) 
     
    8383        import cPickle 
    8484        rfe = RFE() 
    85         cPickle.loads(cPickle.dumps(rfe)) 
     85        copy = cPickle.loads(cPickle.dumps(rfe)) 
    8686 
    8787if __name__ == "__main__": 
Note: See TracChangeset for help on using the changeset viewer.