Ignore:
Timestamp:
02/07/12 18:36:10 (2 years ago)
Author:
ales_erjavec
Branch:
default
rebase_source:
acd0eca0d73f87cdfdf89fc1716b9e8953256ab5
Message:

Changed learnerForUnknown -> learner_for_unknown.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/classification/lookup.py

    r9919 r9960  
    511511       
    512512 
    513 def lookup_from_data(examples, weight=0, learnerForUnknown=None): 
     513from Orange.misc import deprecated_keywords 
     514@deprecated_keywords({"learnerForUnknown":"learner_for_unknown"}) 
     515def lookup_from_data(examples, weight=0, learner_for_unknown=None): 
    514516    if len(examples.domain.attributes) <= 3: 
    515517        lookup = lookup_from_bound(examples.domain.class_var, 
     
    528530        # ClassifierByDataTable, let it deal with them 
    529531        return LookupLearner(examples, weight, 
    530                              learnerForUnknown=learnerForUnknown) 
     532                             learner_for_unknown=learner_for_unknown) 
    531533 
    532534    else: 
    533535        return LookupLearner(examples, weight, 
    534                              learnerForUnknown=learnerForUnknown) 
     536                             learner_for_unknown=learner_for_unknown) 
    535537         
    536538         
Note: See TracChangeset for help on using the changeset viewer.