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/mlc-evaluate.py

    r9505 r9823  
    1313 
    1414learners = [Orange.multilabel.MLkNNLearner(k=5)] 
    15 data = Orange.data.Table("emotions.tab") 
     15emotions = Orange.data.Table("emotions.tab") 
    1616 
    17 res = Orange.evaluation.testing.cross_validation(learners, data) 
     17res = Orange.evaluation.testing.cross_validation(learners, emotions) 
    1818print_results(res) 
    1919 
    20 res = Orange.evaluation.testing.leave_one_out(learners, data) 
     20res = Orange.evaluation.testing.leave_one_out(learners, emotions) 
    2121print_results(res) 
    2222 
    23 res = Orange.evaluation.testing.proportion_test(learners, data, 0.5) 
     23res = Orange.evaluation.testing.proportion_test(learners, emotions, 0.5) 
    2424print_results(res) 
    2525 
    26 reses = Orange.evaluation.testing.learning_curve(learners, data) 
     26reses = Orange.evaluation.testing.learning_curve(learners, emotions) 
    2727for res in reses: 
    2828    print_results(res) 
Note: See TracChangeset for help on using the changeset viewer.