Open
Description
Dear all,
I am wondering how greedy ensembling is implemented for cross-validation. I couldn't really find it in the code. Can anybody give me a hint?
My idea of how it could be implemented:
weights = np.zeros(len(models))
ensemble_sel = EnsembleSelection(ensemble_size=50,
task_type=MULTICLASS_CLASSIFICATION,
random_state=0,
metric=ba)
for k in range(cv_folds):
validation_indices = get_validation_ids(k)
ensemble_sel.fit(model_val_predictions[k][validation_indices], y_test[validation_indices], identifiers=None)
weights += ensemble_sel.weights_
ensemble_sel.weights_ = weights_ / cv_folds
Is this roughly how it works?
Best regards,
Felix