better CNN info in the dash
This commit is contained in:
@ -51,6 +51,17 @@ from core.trading_executor import TradingExecutor
|
||||
from core.trading_action import TradingAction
|
||||
from models import get_model_registry
|
||||
|
||||
# Import CNN monitoring
|
||||
try:
|
||||
from core.cnn_monitor import get_cnn_dashboard_data
|
||||
CNN_MONITORING_AVAILABLE = True
|
||||
logger.info("CNN monitoring system available")
|
||||
except ImportError:
|
||||
CNN_MONITORING_AVAILABLE = False
|
||||
logger.warning("CNN monitoring not available")
|
||||
def get_cnn_dashboard_data():
|
||||
return {'statistics': {'total_predictions_logged': 0}}
|
||||
|
||||
|
||||
# Import enhanced RL components if available
|
||||
try:
|
||||
@ -839,45 +850,18 @@ class TradingDashboard:
|
||||
], className="card", style={"width": "28%", "marginLeft": "2%"}),
|
||||
], className="row g-2 mb-3"),
|
||||
|
||||
# # Model Data Feed Charts - Small charts showing data fed to models
|
||||
# html.Div([
|
||||
# html.Div([
|
||||
# html.Div([
|
||||
# html.H6([
|
||||
# html.I(className="fas fa-database me-1"),
|
||||
# "Model Data Feeds"
|
||||
# ], className="card-title mb-2 small"),
|
||||
# html.Div([
|
||||
# # Row of 4 small charts
|
||||
# html.Div([
|
||||
# # 1m Chart
|
||||
# html.Div([
|
||||
# html.P("ETH 1m OHLCV", className="text-center mb-1 tiny text-muted"),
|
||||
# dcc.Graph(id="model-data-1m", style={"height": "120px"}, config={'displayModeBar': False}, className="model-data-chart")
|
||||
# ], style={"width": "24%"}),
|
||||
|
||||
# # 1h Chart
|
||||
# html.Div([
|
||||
# html.P("ETH 1h OHLCV", className="text-center mb-1 tiny text-muted"),
|
||||
# dcc.Graph(id="model-data-1h", style={"height": "120px"}, config={'displayModeBar': False}, className="model-data-chart")
|
||||
# ], style={"width": "24%", "marginLeft": "1%"}),
|
||||
|
||||
# # 1d Chart
|
||||
# html.Div([
|
||||
# html.P("ETH 1d OHLCV", className="text-center mb-1 tiny text-muted"),
|
||||
# dcc.Graph(id="model-data-1d", style={"height": "120px"}, config={'displayModeBar': False}, className="model-data-chart")
|
||||
# ], style={"width": "24%", "marginLeft": "1%"}),
|
||||
|
||||
# # BTC Reference Chart
|
||||
# html.Div([
|
||||
# html.P("BTC Reference", className="text-center mb-1 tiny text-muted"),
|
||||
# dcc.Graph(id="model-data-btc", style={"height": "120px"}, config={'displayModeBar': False}, className="model-data-chart")
|
||||
# ], style={"width": "24%", "marginLeft": "1%"})
|
||||
# ], className="d-flex")
|
||||
# ])
|
||||
# ], className="card-body p-2")
|
||||
# ], className="card")
|
||||
# ], className="mb-3"),
|
||||
# CNN Model Monitoring Section
|
||||
html.Div([
|
||||
html.Div([
|
||||
html.Div([
|
||||
html.H6([
|
||||
html.I(className="fas fa-brain me-2"),
|
||||
"CNN Model Analysis & Predictions"
|
||||
], className="card-title mb-2"),
|
||||
html.Div(id="cnn-monitoring-content", style={"height": "350px", "overflowY": "auto"})
|
||||
], className="card-body p-2")
|
||||
], className="card")
|
||||
], className="mb-3"),
|
||||
|
||||
# Bottom row - Session performance and system status
|
||||
html.Div([
|
||||
@ -1000,11 +984,7 @@ class TradingDashboard:
|
||||
Output('system-status-details', 'children'),
|
||||
Output('current-leverage', 'children'),
|
||||
Output('leverage-risk', 'children'),
|
||||
# Model data feed charts
|
||||
# Output('model-data-1m', 'figure'),
|
||||
# Output('model-data-1h', 'figure'),
|
||||
# Output('model-data-1d', 'figure'),
|
||||
# Output('model-data-btc', 'figure')
|
||||
Output('cnn-monitoring-content', 'children')
|
||||
],
|
||||
[Input('interval-component', 'n_intervals')]
|
||||
)
|
||||
|
Reference in New Issue
Block a user