Skip to content

Commit b9dbd97

Browse files
committed
add to needed classes to init
1 parent bc6e131 commit b9dbd97

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

chebai/ensemble/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from .consolidator import WeightedMajorityVoting
2+
from .controller import NoActivationCondition
3+
4+
5+
class FullEnsembleWMV(NoActivationCondition, WeightedMajorityVoting):
6+
"""Full Ensemble (no activation condition) with Weighted Majority Voting"""
7+
8+
pass
9+
10+
11+
__all__ = ["FullEnsembleWMV"]

chebai/ensemble/controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def _get_pred_conf_from_model_output(self, model_output, model_label_mask):
4848
return {"prediction": prediction, "confidence": confidence}
4949

5050

51-
class SimpleController(_Controller):
51+
class NoActivationCondition(_Controller):
5252
def __init__(self, **kwargs):
5353
super().__init__(**kwargs)
5454
self._model_queue = list(self.model_configs.keys())

0 commit comments

Comments
 (0)