seqme.models.Ensemble#
- class seqme.models.Ensemble(predictors, weights=None)[source]#
Combines multiple predictor functions into a weighted ensemble.
Each predictor maps sequences to numeric arrays. The final output is a weighted sum of individual predictions.
- __init__(predictors, weights=None)[source]#
Initialize the ensemble of predictors.
- Parameters:
- Raises:
ValueError – If the length of
weightsdoes not match the number of predictors.
Methods