Ignore:
Timestamp:
03/23/12 20:20:57 (2 years ago)
Author:
mstajdohar
Branch:
default
Message:

Changed obsolete names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/code/imputation-complex.py

    r10071 r10633  
    7373 
    7474imputer = Orange.feature.imputation.ModelConstructor() 
    75 imputer.learner_continuous = imputer.learner_discrete = Orange.classification.tree.TreeLearner(minSubset=20) 
     75imputer.learner_continuous = imputer.learner_discrete = Orange.classification.tree.TreeLearner(min_subset=20) 
    7676imputer = imputer(bridges) 
    7777print "Example w/ missing values" 
     
    115115len_domain = Orange.data.Domain(["MATERIAL", "SPAN", "ERECTED", "LENGTH"], bridges.domain) 
    116116len_data = Orange.data.Table(len_domain, bridges) 
    117 len_tree = Orange.classification.tree.TreeLearner(len_data, minSubset=20) 
     117len_tree = Orange.classification.tree.TreeLearner(len_data, min_subset=20) 
    118118imputer.models[bridges.domain.index("LENGTH")] = len_tree 
    119119print len_tree 
     
    146146    print "%s: %s -> %s" % (original.domain[i].name, original[i], imputed[i.name]), 
    147147    if original.domain[i].var_type == Orange.feature.Type.Continuous: 
    148         print "(%s)" % imputed[i.name+"_def"] 
     148        print "(%s)" % imputed[i.name + "_def"] 
    149149    else: 
    150150        print 
Note: See TracChangeset for help on using the changeset viewer.