EARCP
Ensemble Auto-Regulative Coherence Protocol
EARCP is a novel ensemble learning framework that dynamically combines multiple expert models by weighting them according to both their recent predictive performance and their inter-model coherence. Unlike simple averaging, EARCP adapts continuously to non-stationary environments where data distributions shift over time.
The Problem
Ensemble models fail in non-stationary environments
Traditional ensemble methods assign static weights to their constituent models. When the underlying data distribution shifts, as it does in financial markets, industrial sensors, or real-time systems. These fixed weights become obsolete, degrading performance without any mechanism for self-correction.
Simple averaging treats all models equally regardless of their recent accuracy, while manual reweighting requires continuous human intervention and domain expertise.
The Solution
Dynamic weighting via performance and coherence
EARCP adjusts the weight of each expert model at every prediction step based on two signals: recent predictive performance (who has been right lately) and inter-model coherence (who agrees with the consensus).
Key insight: Coherence prevents the algorithm from over-relying on a model that was correct by chance but is isolated from the consensus of other experts. This provides a theoretical guarantee of bounded regret over time.
Architecture
Three expert models, one adaptive coordinator
CNN Expert
Pattern Recognition
Convolutional layers extract local temporal patterns and short-range dependencies from the input sequence.
BiLSTM Expert
Sequence Modeling
Bidirectional LSTM captures long-range temporal dependencies in both forward and backward directions.
Transformer Expert
Attention Mechanism
Self-attention mechanism models global relationships across the entire input sequence simultaneously.
External Validation
Hull Tactical Market Prediction Competition
Configuration: EARCP with 3 experts (CNN, BiLSTM, Transformer). Max drawdown: -8.3%. Evaluation period: 8 months on live market data
Verifiable: Results are publicly visible on the Kaggle leaderboard under the profile volgat. The competition is organized by Hull Tactical Asset Allocation.

Kaggle leaderboard search result for "Volgat": Rank 708, Score 0.888
The Hull Tactical Market Prediction competition evaluates algorithms on their ability to predict market predictability, a second-order forecasting task. All results reported here are from the public leaderboard and are independently verifiable. The Sharpe ratio and drawdown figures are computed by the competition platform, not self-reported.
Applications
Designed for non-stationary environments
EARCP is a general-purpose ensemble architecture applicable to any multi-model system where the data distribution changes over time.
Installation & Usage
Get started with EARCP
1. Install via PyPI
pip install earcp2. Basic usage
from earcp import EARCP
# Initialize with your expert models
model = EARCP(experts=[cnn, lstm, transformer])
# Make a prediction
prediction = model.predict(x)
# The weights are updated automatically
# based on performance and coherence3. Advanced configuration
from earcp import EARCP
model = EARCP(
experts=[cnn, lstm, transformer],
beta=0.5, # balance: performance vs coherence
eta=0.1, # learning rate for weight updates
window=20 # lookback window for performance
)
# Access current weights
print(model.weights) # [0.42, 0.31, 0.27]
# Evaluate on benchmark data
results = model.evaluate(X_test, y_test)PyTorch >= 1.12
NumPy >= 1.21
scikit-learn >= 1.0
