Exemplo n.º 1
0
    def __init__(self):
        # Disease name : Table disease object
        self.bucket = dict()

        # for algo1
        self.symptom_score = dict()
        # for algo2
        self.symptom_critical_count = dict()
        #for algo3
        self.top_value_bucket_symptoms = dict()

        self.disease_score = dict()
        self.disease_fraction_done = dict()
        self.done = 0

        self.removed_questions_list = list()
        self.finished_diseases_list = list()
        self.disease_about_to_removed = list()

        # stores the symptom that is not True / False
        self.symptom_signature_needed = ['fever']

        self.diseases_object = Disease()
        self.disease_signature_object = Disease_Signature()
        # self initialization of object in init
        self.populate_diseases()
        self.disease_top_score = dict(self.disease_score)