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/testing-test.py

    r9894 r9946  
    2424print "\nproportionsTest that will give different results, \ 
    2525but the same each time the script is run" 
    26 myRandom = Orange.core.RandomGenerator() 
     26myRandom = Orange.misc.Random() 
    2727for i in range(3): 
    2828    res = Orange.evaluation.testing.proportion_test(learners, voting, 0.7, 
    29         randomGenerator=myRandom) 
     29        random_generator=myRandom) 
    3030    printResults(res) 
    3131# End 
     
    5959 
    6060print "\nLearning curve with pre-separated data" 
    61 indices = Orange.core.MakeRandomIndices2(voting, p0=0.7) 
     61indices = Orange.data.sample.SubsetIndices2(voting, p0=0.7) 
    6262train = voting.select(indices, 0) 
    6363test = voting.select(indices, 1) 
Note: See TracChangeset for help on using the changeset viewer.