Ignore:
Timestamp:
02/07/12 19:59:36 (2 years ago)
Author:
markotoplak
Branch:
default
Message:

Updated examples (remove Orange.core).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/code/variable-get_value_from.py

    r9897 r9946  
    1919print Orange.feature.scoring.InfoGain(e2, monks) 
    2020 
    21 dist = Orange.core.Distribution(e2, monks) 
     21dist = Orange.statistics.distribution.Distribution(e2, monks) 
    2222print dist  
    2323 
    2424# Split the data into training and testing set 
    25 indices = Orange.core.MakeRandomIndices2(monks, p0=0.7) 
     25indices = Orange.data.sample.SubsetIndices2(monks, p0=0.7) 
    2626train_data = monks.select(indices, 0) 
    2727test_data = monks.select(indices, 1) 
     
    3232 
    3333# Construct a tree and classify unmodified instances 
    34 tree = Orange.core.TreeLearner(new_train) 
     34tree = Orange.classification.tree.TreeLearner(new_train) 
    3535for ex in test_data[:10]: 
    3636    print ex.getclass(), tree(ex) 
Note: See TracChangeset for help on using the changeset viewer.