<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">from load import *
from Disease_Class import *
def run(diseases=[], dis=5, total=5, count=15):

     percent=0
     methods=[]
     
     Types= ['Exponent', 'Subtract', 'Divide', 'Count', 'Logarithm', 'DiseaseBC', 'TotalBC', 'RANDOM']
     
     
     for stype in Types:
          fn = eval(stype)
     
          for disF in range(dis):
                
               for totalF in range(1, total):
                    
                    for countF in range(1, count):
                         
                         methodstemp=list()
                         
                         for disease in diseases:
                              
                              percent+=1
                              methodstemp=100*A.run_expt(fn, disbcf=disF*1.0/50, allbcf=totalF*1.0/20, countf=countF)
                              
                              if percent%25==0:
                              
                                   perc=percent* 100.00/(dis*(total-1)*(count-1)*len(Types)*len(diseases))
                                   print "%.4f%%" % perc
                              
                         methods.append([methodstemp, stype, disF*1.00, totalF*1.00, countF])
             
     methods=sorted(methods, key=lambda x: x[0])
     for x in methods:
          
          x.append(len(methods)-methods.index(x))
     
     
     print "\n"
     for x in methods:
         
          print "&lt;"+str(x[5])+"&gt;   Rank score: %.2f,   Type: %s,   DiseaseBC F:%.2f,   TotalBC F:%.2f,   Count F:%d" %tuple(x)[:-1]
     
     print "\n"</pre></body></html>