feat: Phase 0c - migrate correlation_metrics to data_layer/correlations (11 functions)
- Created NEW data_layer/correlations.py with all 11 correlation functions - Functions: Lag correlation (main + 3 helpers: energy/weight, protein/LBM, load/vitals) - Functions: Sleep-recovery correlation - Functions: Plateau detection (main + 3 detectors: weight, strength, endurance) - Functions: Top drivers analysis - Functions: Correlation confidence helper - Updated data_layer/__init__.py to import correlations module and export 5 main functions - Refactored placeholder_resolver.py to import correlations from data_layer (as correlation_metrics alias) - Removed ALL imports from calculations/ module in placeholder_resolver.py Module 6/6 complete. ALL calculations migrated to data_layer! Phase 0c Multi-Layer Architecture COMPLETE. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
dba6814bc2
commit
befa060671
3 files changed
+516
-4
No files matched your search
@@ -35,10 +35,10 @@ from .activity_metrics import *
|
||||
from .recovery_metrics import *
|
||||
from .health_metrics import *
|
||||
from .scores import *
|
||||
from .correlations import *
|
||||
|
||||
# Future imports (will be added as modules are created):
|
||||
# from .goals import *
|
||||
# from .correlations import *
|
||||
|
||||
__all__ = [
|
||||
# Utils
|
||||
@@ -149,4 +149,11 @@ __all__ = [
|
||||
'get_top_focus_area',
|
||||
'calculate_focus_area_progress',
|
||||
'calculate_category_progress',
|
||||
|
||||
# Correlation Metrics
|
||||
'calculate_lag_correlation',
|
||||
'calculate_correlation_sleep_recovery',
|
||||
'calculate_plateau_detected',
|
||||
'calculate_top_drivers',
|
||||
'calculate_correlation_confidence',
|
||||
]
|
||||
Reference in new issue
Block a user