Description
Describe the feature or idea you want to propose
The package prts
is used in the performance evaluation module for anomaly detection as a soft-dependency. However, there have not been any changes to it for 3 years, the maintainers have not reacted to my PR, and the package was not implemented by the original authors of the method/paper.
Describe your proposed solution
We should implement the metrics within aeon directly:
- implement
ts_fscore
,ts_precision
,ts_recall
inaeon/benchmarking/metrics/anomaly_detection/range_metrics
➡ addressed in PR [ENH] Replaceprts
metrics #2400 - Update tests for range metrics: The tests should use fixtures instead of the
prts
implementations.
➡ [ENH] Removeprts
package and related functions #2576
➡ addressed in [ENH] Hard-Coded Tests fortest_metrics.py
#2672 - Refactorings, e.g. fix method signatures to ensure compatibility with our other metrics and move tests from
tests/test_metrics.py
totests/test_range_metrics.py
...
➡ [ENH] Refactor range-based metric API for consistency with other AD metrics #2780
➡ addressed in [ENH] Refactor range-based metrics to restore original behavior #2781 - improve Python docs and replace old metric documentation with the new metrics' docs
➡ [DOC] Add API documentation forrange_metrics
module and its functions(ts_recall, ts_precision, ts_fscore)
#2767 (obsolete because the old metric API is deprecated in [ENH] Refactor range-based metric API for consistency with other AD metrics #2780) - The functions in _continuous.py need to be updated to use the new implementations
➡ [MNT] Range-based AD metrics: The functions in_continuous.py
need to be updated to use the new implementations #2785 - Remove
prts
dependency and old metric implementations. Requires 1.2.0 release!
➡ [ENH] Removeprts
package and related functions #2576
Target module: aeon.benchmarking.metrics.anomaly_detection
Original publication:
Tatbul, Nesime, Tae Jun Lee, Stan Zdonik, Mejbah Alam, and Justin Gottschlich. "Precision and Recall for Time Series." In Proceedings of the International Conference on Neural Information Processing Systems (NeurIPS), 1920–30. 2018.
http://papers.nips.cc/paper/7462-precision-and-recall-for-time-series.pdf.
Describe alternatives you've considered, if relevant
not relevant
Additional context
No response