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/ensemble-forest.py

    r9372 r9638  
    1313 
    1414print "Classification: bupa.tab" 
    15 table = Orange.data.Table("bupa.tab") 
    16 results = Orange.evaluation.testing.cross_validation(learners, table, folds=3) 
     15bupa = Orange.data.Table("bupa.tab") 
     16results = Orange.evaluation.testing.cross_validation(learners, bupa, folds=3) 
    1717print "Learner  CA     Brier  AUC" 
    1818for i in range(len(learners)): 
     
    2323 
    2424print "Regression: housing.tab" 
    25 table = Orange.data.Table("housing.tab") 
    26 results = Orange.evaluation.testing.cross_validation(learners, table, folds=3) 
     25bupa = Orange.data.Table("housing.tab") 
     26results = Orange.evaluation.testing.cross_validation(learners, bupa, folds=3) 
    2727print "Learner  MSE    RSE    R2" 
    2828for i in range(len(learners)): 
Note: See TracChangeset for help on using the changeset viewer.