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

    r9372 r9638  
    99from Orange.evaluation import testing, scoring 
    1010 
    11 table = Orange.data.Table("adult_sample.tab") 
     11adult = Orange.data.Table("adult_sample.tab") 
    1212 
    1313nb = bayes.NaiveLearner(name="Naive Bayes") 
    1414adjusted_nb = bayes.NaiveLearner(adjust_threshold=True, name="Adjusted Naive Bayes") 
    1515 
    16 results = testing.cross_validation([nb, adjusted_nb], table) 
     16results = testing.cross_validation([nb, adjusted_nb], adult) 
    1717print scoring.CA(results) 
Note: See TracChangeset for help on using the changeset viewer.