Add tests for labeling schemes and fix duplicate function

- Added `pytest` to dependencies in `pyproject.toml`
- Removed duplicate `create_labels_double_barrier` function definition from `features/labeling_schemes.py`
- Added comprehensive unit tests in `tests/test_labeling_schemes.py` covering:
  - `calculate_future_returns`
  - `create_labels_multi_bar`
  - `create_labels_double_barrier`
  - `create_labels_regime_detection`
  - `create_labels_volatility`

Co-authored-by: maghdam <63883156+maghdam@users.noreply.github.com>
This commit is contained in:
google-labs-jules[bot]
2026-03-11 18:34:23 +00:00
parent 29fcbf0f9d
commit 44c4e22e2d
4 changed files with 2469 additions and 2336 deletions
+1
View File
@@ -18,6 +18,7 @@ dependencies = [
"pandas>=2.3.3",
"plotly>=5.24.1",
"psutil>=7.1.0",
"pytest>=9.0.2",
"scikit-learn>=1.7.1",
"scipy>=1.15.3",
"seaborn>=0.13.2",