cb ws
This commit is contained in:
@ -5814,20 +5814,16 @@ class CleanTradingDashboard:
|
||||
def _initialize_standardized_cnn(self):
|
||||
"""Initialize Enhanced CNN model with standardized input format for the dashboard"""
|
||||
try:
|
||||
from core.enhanced_cnn_adapter import EnhancedCNNAdapter
|
||||
|
||||
# Initialize the enhanced CNN adapter
|
||||
self.cnn_adapter = EnhancedCNNAdapter(
|
||||
checkpoint_dir="models/enhanced_cnn"
|
||||
)
|
||||
|
||||
# For backward compatibility
|
||||
self.standardized_cnn = self.cnn_adapter
|
||||
|
||||
logger.info("Enhanced CNN adapter initialized for dashboard with standardized input format")
|
||||
# Use CNN model directly from orchestrator instead of adapter
|
||||
if hasattr(self.orchestrator, 'cnn_model') and self.orchestrator.cnn_model:
|
||||
self.cnn_adapter = self.orchestrator.cnn_model # Use CNN model directly
|
||||
self.standardized_cnn = self.cnn_adapter # For backward compatibility
|
||||
logger.info("Using CNN model directly from orchestrator for dashboard")
|
||||
else:
|
||||
raise Exception("No CNN model available in orchestrator")
|
||||
|
||||
except Exception as e:
|
||||
logger.warning(f"Enhanced CNN adapter initialization failed: {e}")
|
||||
logger.warning(f"Enhanced CNN model initialization failed: {e}")
|
||||
|
||||
# Fallback to original StandardizedCNN
|
||||
try:
|
||||
|
Reference in New Issue
Block a user