Ignore:
Timestamp:
03/23/12 20:45:56 (2 years ago)
Author:
mstajdohar
Branch:
default
Message:

Fixed some more obsolete stuff and added ignore DeprecationWarning on tutorial tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/code/optimization-tuning1.py

    r10077 r10634  
    66                           parameter="min_subset", 
    77                           values=[1, 2, 3, 4, 5, 10, 15, 20], 
    8                            evaluate = Orange.evaluation.scoring.AUC, verbose=2) 
     8                           evaluate=Orange.evaluation.scoring.AUC, verbose=2) 
    99classifier = tuner(voting) 
    1010 
     
    2020learner = Orange.classification.tree.TreeLearner(min_subset=10).instance() 
    2121voting = Orange.data.Table("voting") 
    22 tuner = Orange.optimization.Tune1Parameter(object=learner, 
    23                     parameter=["split.continuous_split_constructor.min_subset",  
     22tuner = Orange.optimization.Tune1Parameter(learner=learner, 
     23                    parameter=["split.continuous_split_constructor.min_subset", 
    2424                               "split.discrete_split_constructor.min_subset"], 
    2525                    values=[1, 2, 3, 4, 5, 10, 15, 20], 
    26                     evaluate = Orange.evaluation.scoring.AUC, verbose=2) 
     26                    evaluate=Orange.evaluation.scoring.AUC, verbose=2) 
    2727 
    2828classifier = tuner(voting) 
Note: See TracChangeset for help on using the changeset viewer.