Ignore:
Timestamp:
02/05/12 22:37:07 (2 years ago)
Author:
umek@…
Branch:
default
rebase_source:
eb6a120705f3462186b982a698c0a7ad9f947e24
Message:

Changed table to data or name of the data set.

For example - instead of

table = Orange.data.Table("housing")

is changed to

housing = Orange.data.Table("housing")

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/code/bayes-mestimate.py

    r9372 r9638  
    77import Orange 
    88 
    9 table = Orange.data.Table("lenses.tab") 
     9lenses = Orange.data.Table("lenses.tab") 
    1010 
    1111bayes_L = Orange.classification.bayes.NaiveLearner(name="Naive Bayes") 
    1212bayesWithM_L = Orange.classification.bayes.NaiveLearner(m=2, name="Naive Bayes w/ m-estimate") 
    13 bayes = bayes_L(table) 
    14 bayesWithM = bayesWithM_L(table) 
     13bayes = bayes_L(lenses) 
     14bayesWithM = bayesWithM_L(lenses) 
    1515 
    1616print bayes.conditional_distributions 
Note: See TracChangeset for help on using the changeset viewer.