Ignore:
Timestamp:
02/06/12 20:01:02 (2 years ago)
Author:
lanumek
Branch:
default
Children:
9835:e48466fc6eb2, 9841:05a160804431
rebase_source:
8cf30121654f25c9cb6d8ac9bdaf163e305d62da
Message:

Changed names of data sets (table replaced with data or name of the data set).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/code/optimization-thresholding1.py

    r9372 r9823  
    11import Orange 
    22 
    3 table = Orange.data.Table("bupa") 
     3bupa = Orange.data.Table("bupa") 
    44 
    55learner = Orange.classification.bayes.NaiveLearner() 
     
    77thresh80 = Orange.optimization.ThresholdLearner_fixed(learner=learner,  
    88                                                      threshold=0.8) 
    9 res = Orange.evaluation.testing.cross_validation([learner, thresh, thresh80], table) 
     9res = Orange.evaluation.testing.cross_validation([learner, thresh, thresh80], bupa) 
    1010CAs = Orange.evaluation.scoring.CA(res) 
    1111 
Note: See TracChangeset for help on using the changeset viewer.