Changeset 10758:e712a3d58fa0 in orange


Ignore:
Timestamp:
04/05/12 16:25:24 (2 years ago)
Author:
Miran@…
Branch:
default
Message:

Fixed additional buga in random forests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/ensemble/forest.py

    r10754 r10758  
    271271       
    272272                    for val,prob in probs: 
    273                         if prob != None: #no probability output 
     273                        if prob[varn] != None: #no probability output 
    274274                            a = dict(prob[varn].items()) 
    275275                        else: 
    276                             ya = { val.value : 1. } 
     276                            a = { val[varn].value : 1. } 
    277277                        cprob = dict( (n, a.get(n, 0)+cprob.get(n, 0)) for n in set(a)|set(cprob) ) 
    278278                    cprob = Orange.statistics.distribution.Continuous(cprob) 
Note: See TracChangeset for help on using the changeset viewer.