Example #1
0
 def create_ensemble(ensemble_size, model):
     ensemble = []
     for _ in range(ensemble_size):
         copy = Model()
         copy.config = model.config
         copy.create_model()
         ensemble.append(copy)
     return ensemble
Example #2
0
 def create_dummy_model(config: ModelConfig):
     model = Model(config)
     model.create_model()
     return [model]