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/rules-cn2.py

    r9372 r9823  
    77import Orange 
    88# Read some data 
    9 table = Orange.data.Table("titanic") 
     9titanic = Orange.data.Table("titanic") 
    1010 
    1111# construct the learning algorithm and use it to induce a classifier 
    1212cn2_learner = Orange.classification.rules.CN2Learner() 
    13 cn2_clasifier = cn2_learner(table) 
     13cn2_clasifier = cn2_learner(titanic) 
    1414 
    1515# ... or, in a single step. 
    16 cn2_classifier = Orange.classification.rules.CN2Learner(table) 
     16cn2_classifier = Orange.classification.rules.CN2Learner(titanic) 
    1717 
    1818# All rule-base classifiers can have their rules printed out like this: 
Note: See TracChangeset for help on using the changeset viewer.