Ignore:
Timestamp:
02/06/12 22:17:27 (2 years ago)
Author:
Matija Polajnar <matija.polajnar@…>
Branch:
default
rebase_source:
6b5cff403f19f88357473558d1866e14cb80342a
Message:

Revert incorrect lanumek's commit which reverted to an old version of those files (along with making some useful changes which I have incorporated).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/code/reliability-run.py

    r9823 r9875  
     1# Description: Reliability estimation with cross-validation 
     2# Category:    evaluation 
     3# Uses:        housing 
     4# Referenced:  Orange.evaluation.reliability 
     5# Classes:     Orange.evaluation.reliability.Learner 
     6 
     7import Orange 
     8Orange.evaluation.reliability.select_with_repeat.random_generator = None 
     9Orange.evaluation.reliability.select_with_repeat.randseed = 42 
     10 
    111import Orange 
    212housing = Orange.data.Table("housing.tab") 
     
    717results = Orange.evaluation.testing.cross_validation([reliability], housing) 
    818 
    9 for estimate in results.results[0].probabilities[0].reliability_estimate: 
    10     print estimate.method_name, estimate.estimate 
     19for i, instance in enumerate(results.results[:10]): 
     20    print "Instance", i 
     21    for estimate in instance.probabilities[0].reliability_estimate: 
     22        print "  ", estimate.method_name, estimate.estimate 
Note: See TracChangeset for help on using the changeset viewer.