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-long.py

    r9823 r9875  
     1# Description: Reliability estimation 
     2# Category:    evaluation 
     3# Uses:        prostate 
     4# Referenced:  Orange.evaluation.reliability 
     5# Classes:     Orange.evaluation.reliability.Learner 
     6 
    17import Orange 
     8Orange.evaluation.reliability.select_with_repeat.random_generator = None 
     9Orange.evaluation.reliability.select_with_repeat.randseed = 42 
    210 
     11import Orange 
    312prostate = Orange.data.Table("prostate.tab") 
    413 
     
    1322print "Estimate               r       p" 
    1423for estimate in reliability_res: 
    15     print "%-20s %7.3f %7.3f" % (Orange.evaluation.reliability.METHOD_NAME[estimate[3]], \ 
     24    print "%-20s %7.3f %7.3f" % (Orange.evaluation.reliability.METHOD_NAME[estimate[3]], 
    1625                                 estimate[0], estimate[1]) 
    1726 
     
    2534print "Estimate               r       p" 
    2635for estimate in reliability_res: 
    27     print "%-20s %7.3f %7.3f" % (Orange.evaluation.reliability.METHOD_NAME[estimate[3]], \ 
     36    print "%-20s %7.3f %7.3f" % (Orange.evaluation.reliability.METHOD_NAME[estimate[3]], 
    2837                                 estimate[0], estimate[1]) 
    2938 
Note: See TracChangeset for help on using the changeset viewer.