feat: Integrate tensortrade RL model into consensus engine#31
feat: Integrate tensortrade RL model into consensus engine#31
Conversation
Co-authored-by: laurentvv <[email protected]>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (4 files)
Reviewed by step-3.5-flash · 295,968 tokens |
This PR integrates
tensortradeandstable-baselines3to introduce a new Reinforcement Learning (RL) model to the trading AI's hybrid consensus engine.src/tensortrade_model.pywhich wraps the TensorTrade framework to create a realistic trading environment compatible with Gym APIs and trains a quick PPO agent usingstable-baselines3to generate Buy/Sell/Hold actions with confidence probabilities.src/enhanced_trading_example.pyto trigger the TensorTrade prediction module and incorporate its insights into the consensus engine (model_predictions["tensortrade"]).src/enhanced_decision_engine.pyto accept the TensorTrade inputs. The base weights logic was updated to gracefully re-distribute decisioning weight, allocating10%to TensorTrade as requested by the user.pyproject.tomlto lock dependencies appropriately within the compatibility matrix (numpy==1.26.4to prevent bugs with tensortrade, and setting correct bounds forstable-baselines3).ruffand ran standardunittesttest coverage.PR created automatically by Jules for task 6788355586345579924 started by @laurentvv