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

    r9505 r9823  
    44import Orange 
    55 
    6 data = Orange.data.Table('emotions') 
     6emotions = Orange.data.Table('emotions') 
    77learner = Orange.multilabel.BRkNNLearner(k=5) 
    8 classifier = learner(data) 
    9 print classifier(data[0]) 
     8classifier = learner(emotions) 
     9print classifier(emotions[0]) 
    1010 
    1111learner = Orange.multilabel.MLkNNLearner(k=5) 
    12 classifier = learner(data) 
    13 print classifier(data[0]) 
     12classifier = learner(emotions) 
     13print classifier(emotions[0]) 
    1414 
    1515learner = Orange.multilabel.BinaryRelevanceLearner() 
    16 classifier = learner(data) 
    17 print classifier(data[0]) 
     16classifier = learner(emotions) 
     17print classifier(emotions[0]) 
    1818 
    1919learner = Orange.multilabel.LabelPowersetLearner() 
    20 classifier = learner(data) 
    21 print classifier(data[0]) 
     20classifier = learner(emotions) 
     21print classifier(emotions[0]) 
    2222 
    2323def test_mlc(data, learners): 
Note: See TracChangeset for help on using the changeset viewer.