Ignore:
Timestamp:
09/02/13 13:19:51 (8 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Added test for 'split_by_classifiers' helper.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/evaluation/scoring.py

    r10984 r11678  
    9898    return ress 
    9999 
     100 
    100101def split_by_classifiers(res): 
    101102    """Split an instance of :obj:`ExperimentResults` into a list of 
     
    115116            r.results[-1].classes = [te.classes[i]] 
    116117            r.results[-1].probabilities = [te.probabilities[i]] 
     118 
     119        if hasattr(res, "examples"): 
     120            r.examples = res.examples 
     121 
    117122        split_res.append(r) 
     123 
    118124    return split_res 
    119125 
Note: See TracChangeset for help on using the changeset viewer.