Merged 3 months agoAugust 24, 2025
Related#8703Adds parameterized tests for the evaluate function's parallelization backends to ensure its robustness across different parallel execution configurations in Time Series Classification.
What was done
- Modified
sktime/classification/model_evaluation/tests/test_evaluate.pyto enhance testing for parallel backends. - Introduced
_get_parallel_test_fixturesto retrieve available parallel backends for testing. - Parameterized the
test_evaluate_parallel_backendfunction usingpytest.mark.parametrizeto run tests for various backends. - Updated the
evaluatefunction call within the test to dynamically use thebackendandbackend_paramsfrom the parameterized fixtures. - Included a minor style fix for mixed line endings in the test file.
Impact
- Improves test coverage and reliability for the
evaluatefunction's parallel execution capabilities. - Ensures that the
evaluatefunction correctly handles different parallelization backends (e.g., loky, multiprocessing, threading). - Enhances developer confidence in the stability and robustness of
sktime's evaluation utilities, especially concerning parallel processing.
Technical details
- Affected file:
sktime/classification/model_evaluation/tests/test_evaluate.py. - Utilized
pytest.mark.parametrizefor data-driven testing, allowing the same test to run with multiple parallel backend configurations. - Integrated
sktime.utils.parallel._get_parallel_test_fixturesto abstract and standardize the setup of parallel test fixtures. - The
evaluatefunction call in the test now dynamically unpacks backend parameters using**backend. - The changes primarily focus on the testing framework rather than the core
evaluatelogic itself.
Related issues
Metadata
- Source: github
- Repo: sktime/sktime
- URL: https://github.com/sktime/sktime/pull/8737
- Merged: 2025-08-24T12:46:02Z