mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-08-01 01:27:42 +00:00
ae7e95cba6
Problem: - When Qlib Docker backtest failed (result is None), the experiment was marked as failed - However, the 'feedback' step still tried to call self.factor_summarizer.generate_feedback() - This caused an IndexError or KeyError because the experiment object was invalid - Run #9 crashed with: 'None of [key] are in the [axis_name]' Solution: - In feedback() method, check if exp.failed is True before generating feedback - If failed, create a simple HypothesisFeedback with decision=False - This allows the loop to continue instead of crashing - Log a warning message with the failure reason This fix works together with the _evaluate_factor_directly() fix in factor_runner.py to ensure that even when Docker fails, the loop continues smoothly.