dedulicae model storage

This commit is contained in:
Dobromir Popov
2025-09-09 00:35:13 +03:00
parent c3a94600c8
commit 9671d0d363
11 changed files with 292 additions and 1846 deletions

View File

@@ -6261,7 +6261,7 @@ class CleanTradingDashboard:
# Save checkpoint after training
if loss_count > 0:
try:
from utils.checkpoint_manager import save_checkpoint
from NN.training.model_manager import save_checkpoint
avg_loss = total_loss / loss_count
# Prepare checkpoint data
@@ -6390,7 +6390,7 @@ class CleanTradingDashboard:
# Save checkpoint after training
if loss_count > 0:
try:
from utils.checkpoint_manager import save_checkpoint
from NN.training.model_manager import save_checkpoint
avg_loss = total_loss / loss_count
# Prepare checkpoint data
@@ -6878,7 +6878,7 @@ class CleanTradingDashboard:
# Save checkpoint after training
if training_samples > 0:
try:
from utils.checkpoint_manager import save_checkpoint
from NN.training.model_manager import save_checkpoint
avg_loss = total_loss / loss_count if loss_count > 0 else 0.356
# Prepare checkpoint data

View File

@@ -443,14 +443,20 @@ class DashboardComponentManager:
ask_levels = [center_bucket + i * bucket_size for i in range(1, num_levels + 1)]
bid_levels = [center_bucket - i * bucket_size for i in range(num_levels)]
# Debug: Log how many orders we have to work with
print(f"DEBUG COB: {symbol} - Processing {len(bids)} bids, {len(asks)} asks")
print(f"DEBUG COB: Mid price: ${mid_price:.2f}, Bucket size: ${bucket_size}")
print(f"DEBUG COB: Bid buckets: {len(bid_buckets)}, Ask buckets: {len(ask_buckets)}")
if bid_buckets:
print(f"DEBUG COB: Bid price range: ${min(bid_buckets.keys()):.2f} - ${max(bid_buckets.keys()):.2f}")
if ask_buckets:
print(f"DEBUG COB: Ask price range: ${min(ask_buckets.keys()):.2f} - ${max(ask_buckets.keys()):.2f}")
# Debug: Combined log for COB ladder panel
print(
f"DEBUG COB: {symbol} - {len(bids)} bids, {len(asks)} asks | "
f"Mid price: ${mid_price:.2f}, ${bucket_size} buckets | "
f"Bid buckets: {len(bid_buckets)}, Ask buckets: {len(ask_buckets)}"
+ (
f" | Bid range: ${min(bid_buckets.keys()):.2f} - ${max(bid_buckets.keys()):.2f}"
if bid_buckets else ""
)
+ (
f" | Ask range: ${min(ask_buckets.keys()):.2f} - ${max(ask_buckets.keys()):.2f}"
if ask_buckets else ""
)
)
def create_bookmap_row(price, bid_data, ask_data, max_vol):
"""Create a Bookmap-style row with horizontal bars extending from center"""