CCE: Confidence-Consistency Evaluation for Time Series Anomaly Detection, Confidence, Consistency, Evaluation, Metric, TSAD
6
stars
33
commits
Jupyter Notebook
primary language
Sep 10, 2026
updated
A comprehensive evaluation framework for time series anomaly detection metrics, focusing on confidence-consistency evaluation, robustness assessment, and discriminative power analysis. This implementation provides novel evaluation metrics and benchmarking tools to improve the reliability and comparability of anomaly detection models.
📄 Paper: arXiv:2509.01098
🌐 Website: CCE & RankEval
pip install cce
# Clone the repository
git clone https://github.com/EmorZz1G/CCE.git
cd CCE
# Install dependencies
pip install -r requirements.txt
# Install in development mode
pip install -e .
Note: Build-related files are located in the docs directory. For detailed build instructions, please refer to docs/*.md.
requirements.txt)After installation, you may need to configure the datasets path:
# Create a configuration file
cce config create
# Set your datasets directory
cce config set-datasets-path /path/to/your/datasets
# View current configuration
cce config show
For detailed configuration options, see Configuration Guide.
from cce import metrics
metricor = metrics.basic_metricor()
CCE_score = metricor.metric_CCE(labels, scores)
# Run baseline evaluation
. scripts/run_baseline.sh
# Run real-world dataset evaluation
. scripts/run_real_world.sh
Implement the metric function in src/metrics/basic_metrics.py:
def metric_NewMetric(labels, scores, **kwargs):
# Your metric implementation
return metric_value
Add evaluation logic in src/evaluation/eval_metrics/eval_latency_baselines.py:
elif baseline == 'NewMetric':
with timer(case_name, model_name, case_seed_new, score_seed_new, model, metric_name='NewMetric') as data_item:
result = metricor.metric_NewMetric(labels, scores)
data_item['val'] = result
Run the evaluation:
python src/evaluation/eval_metrics/eval_latency_baselines.py --baseline NewMetric
View results in logs/NewMetric/
CCE/
├── src/ # Source code
│ ├── metrics/ # Metric implementations
│ ├── evaluation/ # Evaluation framework
│ ├── models/ # Model implementations
│ ├── data_utils/ # Data processing utilities
│ ├── utils/ # Helper functions
│ └── scripts/ # Execution scripts
├── # Build and installation files
│ ├── setup.py # Package setup configuration
│ ├── pyproject.toml # Modern Python package config
│ ├── MANIFEST.in # Package file inclusion
│ ├── BUILD.md # Detailed build instructions
│ └── INSTALL.md # Quick install guide
├── datasets/ # Dataset storage
├── logs/ # Evaluation results
├── tests/ # Test files
├── docs/ # Documentation
├── requirements.txt # Dependencies
├── setup.py # Simple setup entry point
└── pyproject.toml # Basic build configuration
We welcome contributions! Please feel free to submit issues and pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
For questions and support, please open an issue on GitHub or contact the maintainers.
If you find our work useful, please cite our paper and consider giving us a star ⭐.
@article{zhong2025cce,
title={CCE: Confidence-Consistency Evaluation for Time Series Anomaly Detection},
author={Zhong, Zhijie and Yu, Zhiwen and Cheung, Yiu-ming and Yang, Kaixiang},
journal={arXiv preprint arXiv:2509.01098},
year={2025}
}
CCE - Making time series anomaly detection evaluation more reliable and comprehensive.
33 commits
Jupyter Notebook
64.6%
Python
35.4%
CCE: Confidence-Consistency Evaluation for Time Series Anomaly Detection, Confidence, Consistency, Evaluation, Metric, TSAD
6
stars
33
commits
Jupyter Notebook
primary language
Sep 10, 2026
updated
A comprehensive evaluation framework for time series anomaly detection metrics, focusing on confidence-consistency evaluation, robustness assessment, and discriminative power analysis. This implementation provides novel evaluation metrics and benchmarking tools to improve the reliability and comparability of anomaly detection models.
📄 Paper: arXiv:2509.01098
🌐 Website: CCE & RankEval
pip install cce
# Clone the repository
git clone https://github.com/EmorZz1G/CCE.git
cd CCE
# Install dependencies
pip install -r requirements.txt
# Install in development mode
pip install -e .
Note: Build-related files are located in the docs directory. For detailed build instructions, please refer to docs/*.md.
requirements.txt)After installation, you may need to configure the datasets path:
# Create a configuration file
cce config create
# Set your datasets directory
cce config set-datasets-path /path/to/your/datasets
# View current configuration
cce config show
For detailed configuration options, see Configuration Guide.
from cce import metrics
metricor = metrics.basic_metricor()
CCE_score = metricor.metric_CCE(labels, scores)
# Run baseline evaluation
. scripts/run_baseline.sh
# Run real-world dataset evaluation
. scripts/run_real_world.sh
Implement the metric function in src/metrics/basic_metrics.py:
def metric_NewMetric(labels, scores, **kwargs):
# Your metric implementation
return metric_value
Add evaluation logic in src/evaluation/eval_metrics/eval_latency_baselines.py:
elif baseline == 'NewMetric':
with timer(case_name, model_name, case_seed_new, score_seed_new, model, metric_name='NewMetric') as data_item:
result = metricor.metric_NewMetric(labels, scores)
data_item['val'] = result
Run the evaluation:
python src/evaluation/eval_metrics/eval_latency_baselines.py --baseline NewMetric
View results in logs/NewMetric/
CCE/
├── src/ # Source code
│ ├── metrics/ # Metric implementations
│ ├── evaluation/ # Evaluation framework
│ ├── models/ # Model implementations
│ ├── data_utils/ # Data processing utilities
│ ├── utils/ # Helper functions
│ └── scripts/ # Execution scripts
├── # Build and installation files
│ ├── setup.py # Package setup configuration
│ ├── pyproject.toml # Modern Python package config
│ ├── MANIFEST.in # Package file inclusion
│ ├── BUILD.md # Detailed build instructions
│ └── INSTALL.md # Quick install guide
├── datasets/ # Dataset storage
├── logs/ # Evaluation results
├── tests/ # Test files
├── docs/ # Documentation
├── requirements.txt # Dependencies
├── setup.py # Simple setup entry point
└── pyproject.toml # Basic build configuration
We welcome contributions! Please feel free to submit issues and pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
For questions and support, please open an issue on GitHub or contact the maintainers.
If you find our work useful, please cite our paper and consider giving us a star ⭐.
@article{zhong2025cce,
title={CCE: Confidence-Consistency Evaluation for Time Series Anomaly Detection},
author={Zhong, Zhijie and Yu, Zhiwen and Cheung, Yiu-ming and Yang, Kaixiang},
journal={arXiv preprint arXiv:2509.01098},
year={2025}
}
CCE - Making time series anomaly detection evaluation more reliable and comprehensive.
33 commits
Jupyter Notebook
64.6%
Python
35.4%