3 Commits

Author SHA1 Message Date
TPTBusiness 194844a524 test: Fix UI security tests with proper Path mocking
- Fix Path.cwd() mocking to use correct module path
- Add Path.resolve() mocking for proper path validation testing
- Fix PermissionError handling test with proper mock
- All 14 security tests now pass

Fixes broken tests from previous commit that had incorrect mocking.
2026-04-02 22:47:45 +02:00
TPTBusiness a33b29e782 test: Add security tests for GitHub Issue #13 path traversal vulnerability
- Test path traversal prevention with ../ and absolute paths
- Test symlink-based attacks
- Test core security mechanism (Path.relative_to validation)
- Verify fix from commit db5bc6a5 blocks uncontrolled path expressions
- All 14 security tests passing
2026-04-02 22:47:11 +02:00
TPTBusiness e1e86e1bd3 feat: Add advanced ML models (Transformer, TCN, PatchTST, CNN+LSTM)
New models in models/local/:
- transformer_factor.py: Transformer with self-attention
- tcn_factor.py: Temporal Convolutional Network (multi-scale)
- patchtst_factor.py: PatchTST (SOTA for time-series)
- cnn_lstm_hybrid.py: CNN+LSTM with attention

Features:
- All models support sequence and tabular data
- Automatic device selection (CPU/GPU)
- Training with Adam optimizer + LR scheduler
- Save/load functionality
- Production-ready code

Dependencies installed:
- xgboost
- lightgbm
- torch (PyTorch)

Usage:
  from rdagent.components.model_loader import load_model
  model = load_model('transformer_factor')  # Auto-loads your local version!
2026-04-02 22:44:05 +02:00