MCPcopy Create free account
hub / github.com/GitsSaikat/PyGen / ModelEnsemble

Class ModelEnsemble

data/AutoML/reference_code.py:119–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 return model
118
119class ModelEnsemble:
120
121
122 def create_ensemble(self, models: List[BaseEstimator], weights: Optional[List[float]] = None) -> Any:
123
124 if weights is None:
125 weights = [1/len(models)] * len(models)
126 return {'models': models, 'weights': weights}
127
128class PerformanceEvaluator:
129

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected