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
def create_dummy_model(config: ModelConfig): model = Model(config) model.create_model() return [model]