class_docstr: Controller control the sample-score flow in the 1st phase.
  It records the results in the history.
class_docstr_tok: ["Controller","control","the","sample-score","flow","in","the","1st","phase",".","It","records","the","results","in","the","history","."]
code: def _use_pure_score_as_final_res(
      self, model_id: str, alg_score: dict
  ):
      # get the key and sum the score of various alg
      score_sum_key = "_".join(list(alg_score.keys()))
      if score_sum_key not in self.history:
          self.history[score_sum_key] = []
      final_score = 0
      for alg in alg_score:
          final_score += float(alg_score[alg])
      # insert and get rank
      index = binary_insert_get_rank(
          self.history[score_sum_key], ModelScore(model_id, final_score)
      )
      self.ranked_models.insert(index, model_id)
      return final_score
  
file_path: singa/examples/model_selection/TRAILS-Database-Native-Model-Selection/internal/ml/model_selection/src/controller/controler.py
imports: import time
  from src.controller.core.sample import Sampler
  from src.third_pkg.models import CellStructure
label_desc: Use image node_id 5 for calling the SampleController obj's underlying member method code with example usage: obj._use_pure_score_as_final_res(model_id, alg_score) and returns: final_score