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 __init__(self, search_strategy: Sampler):
      # Current ea is better than others.
      self.search_strategy = search_strategy
  
      # the large the index, the better the model
      self.ranked_models = []
  
      # when simple_score_sum=False, records the model's score of each algorithm,
      # use when simple_score_sum=True, record the model's sum score
      self.history = {}
  
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 1 to create a new SampleController object from inherited base classes: object with example: obj = SampleController(search_strategy)