Changeset 9215:f7ed85a902d7 in orange


Ignore:
Timestamp:
11/16/11 15:45:02 (2 years ago)
Author:
anze <anze.staric@…>
Branch:
default
Convert:
48c5172dbdfffeb7833db2d22281594857287394
Message:

Deprecation decorators for cross_validation and leave_one_out now also include parameters that are passed forward.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/evaluation/testing.py

    r9214 r9215  
    199199#### Experimental procedures 
    200200 
    201 @deprecated_keywords({"pps": "preprocessors"}) 
     201@deprecated_keywords({"pps": "preprocessors", 
     202                      "storeClassifiers": "store_classifiers", 
     203                      "storeExamples": "store_examples"}) 
    202204def leave_one_out(learners, examples, preprocessors=(), 
    203205                  callback=None, store_classifiers=False, store_examples=False): 
     
    265267                      "randseed": "random_generator", 
    266268                      "indicesrandseed": "random_generator", 
    267                       "randomGenerator": "random_generator"}) 
     269                      "randomGenerator": "random_generator", 
     270                      "storeClassifiers": "store_classifiers", 
     271                      "storeExamples": "store_examples"}) 
    268272def cross_validation(learners, examples, folds=10, stratified=Orange.core.MakeRandomIndices.StratifiedIfPossible, 
    269273                    preprocessors=(), random_generator=0, callback=None, store_classifiers=False, store_examples=False): 
Note: See TracChangeset for help on using the changeset viewer.