Changeset 10898:6b7e7d55a81b in orange


Ignore:
Timestamp:
06/04/12 13:55:42 (23 months ago)
Author:
Matija Polajnar <matija.polajnar@…>
Branch:
default
Message:

Make TestedResult save the full probability object, which is needed for evaluation.reliability to work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/evaluation/testing.py

    r10846 r10898  
    6464        else: 
    6565            self.classes.append(int(aclass)) 
    66             self.probabilities.append(list(aprob)) 
     66            self.probabilities.append(aprob) 
    6767 
    6868    def set_result(self, i, aclass, aprob): 
     
    7676        else: 
    7777            self.classes[i] = int(aclass) 
    78             self.probabilities[i] = list(aprob) 
     78            self.probabilities[i] = aprob 
    7979 
    8080    def __repr__(self): 
Note: See TracChangeset for help on using the changeset viewer.