Changeset 10193:a5eb3952a978 in orange


Ignore:
Timestamp:
02/13/12 15:29:16 (2 years ago)
Author:
anzeh <anze.staric@…>
Branch:
default
Message:

Enabled store_examples in proportion test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/evaluation/testing.py

    r10192 r10193  
    457457                                        test_type = test_type, 
    458458                                        weights=weight) 
     459        if store_examples: 
     460            test_results.examples = [] 
    459461        test_results.classifiers = [] 
    460462        offset=0 
     
    466468            if store_classifiers: 
    467469                test_results.classifiers.append(classifiers) 
     470            if store_examples: 
     471                test_results.examples.append(learn_set) 
    468472 
    469473            test_results.results.extend(test_results.create_tested_example(time, example) 
     
    587591 
    588592                learn_examples = learn_set.selectref(indices(learn_set, p), 0) 
    589                 classifiers, results = self._learn_and_test_on_test_data(learners, learn_examples, learn_weight, test_set) 
     593                classifiers, results = self._learn_and_test_on_test_data(learners, learn_examples, learn_weight, test_set, preprocessors=preprocessors) 
    590594 
    591595                for example, classifier, result in results: 
Note: See TracChangeset for help on using the changeset viewer.