better error msgs
This commit is contained in:
@@ -2456,9 +2456,14 @@ class RealTrainingAdapter:
|
||||
yield batch
|
||||
|
||||
total_batches = len(grouped_batches)
|
||||
|
||||
|
||||
if total_batches == 0:
|
||||
raise Exception("No valid training batches after conversion")
|
||||
logger.warning("No valid training batches available - likely due to missing market data")
|
||||
logger.warning("This can happen when historical data for required timeframes (1m, 1h, 1d) is not available")
|
||||
logger.warning("Training will be skipped for this session")
|
||||
session.status = 'completed' # Mark as completed since we can't train without data
|
||||
session.error = "No training data available"
|
||||
return
|
||||
|
||||
logger.info(f" Ready to train on {total_batches} batches")
|
||||
logger.info(f" Total samples: {total_samples}")
|
||||
|
||||
Reference in New Issue
Block a user