Changeset 3856:197c8bd051a8 in orange


Ignore:
Timestamp:
05/14/08 13:24:01 (6 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
16465ddc9113ed4c71ba0574cd7aea25639bdaac
Message:

weights are now ok

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/orngInteract.py

    r3843 r3856  
    334334             
    335335            perc = int(abs(ig)*100.0/max(max_igain,self.attlist[-1][0])+0.5) 
    336             graph[i, j] = perc / 30 + 1 
     336 
     337            if self.entropy > 1e-6: 
     338                w = float(100.0*ig/self.entropy) 
     339            else: 
     340                w = float(0.0) 
     341             
     342            graph[i, j] = w 
    337343             
    338344            if self.entropy > 1e-6: 
Note: See TracChangeset for help on using the changeset viewer.