From e1b706cf9072de7d300d0efeae420e3e092765a1 Mon Sep 17 00:00:00 2001 From: Quentin Nater Date: Thu, 20 Mar 2025 16:52:14 +0100 Subject: [PATCH] release 01b - documentation and updates --- README.md | 29 ++++++++++++++--------------- docs/generation/source/conf.py | 4 ++-- imputegap/__init__.py | 2 +- imputegap/runner_contamination.py | 2 +- setup.py | 2 +- 5 files changed, 19 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index ca7cbe28..8dff3735 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Access to commonly used datasets in time series research (Datasets).
![Python](https://img.shields.io/badge/Python-v3.12-blue) -![Release](https://img.shields.io/badge/Release-v1.0.5-brightgreen) +![Release](https://img.shields.io/badge/Release-v1.0.6-brightgreen) ![License](https://img.shields.io/badge/License-GPLv3-blue?style=flat&logo=gnu) ![Coverage](https://img.shields.io/badge/Coverage-93%25-brightgreen) ![PyPI](https://img.shields.io/pypi/v/imputegap?label=PyPI&color=blue) @@ -161,10 +161,10 @@ ts.print(nbr_series=9, nbr_val=100) --- ## Contamination -We now describe how to simulate missing values in the loaded dataset. ImputeGAP implements eight different missingness patterns. The list of patterns is described [here](https://imputegap.readthedocs.io/en/latest/patterns.html). +We now describe how to simulate missing values in the loaded dataset. ImputeGAP implements eight different missingness patterns. -For more details, please refer to the documentation in this page. +For more details, please refer to the documentation in this [page](https://imputegap.readthedocs.io/en/latest/patterns.html).

### Example Contamination @@ -425,18 +425,17 @@ Mourad Khayati, Quentin Nater, Jacques Pasquier: ImputeVIS: An Interactive Evalu If you use ImputeGAP in your research, please cite the paper: -.. code-block:: bash - - @article{nater2025imputegap, - title = {ImputeGAP: A Comprehensive Library for Time Series Imputation}, - author = {Nater, Quentin and Khayati, Mourad and Pasquier, Jacques}, - year = {2025}, - eprint = {2503.15250}, - archiveprefix = {arXiv}, - primaryclass = {cs.LG}, - url = {https://arxiv.org/abs/2503.15250} - } - +``` +@article{nater2025imputegap, + title = {ImputeGAP: A Comprehensive Library for Time Series Imputation}, + author = {Nater, Quentin and Khayati, Mourad and Pasquier, Jacques}, + year = {2025}, + eprint = {2503.15250}, + archiveprefix = {arXiv}, + primaryclass = {cs.LG}, + url = {https://arxiv.org/abs/2503.15250} +} +``` --- ## Core Contributors diff --git a/docs/generation/source/conf.py b/docs/generation/source/conf.py index 27eabb59..7d915772 100644 --- a/docs/generation/source/conf.py +++ b/docs/generation/source/conf.py @@ -46,8 +46,8 @@ html_css_files = ['custom.css'] # Set the version and release info -version = '1.0.5' -release = '1.0.5' +version = '1.0.6' +release = '1.0.6' html_theme_options = { diff --git a/imputegap/__init__.py b/imputegap/__init__.py index 222a4c12..010279ae 100644 --- a/imputegap/__init__.py +++ b/imputegap/__init__.py @@ -1 +1 @@ -__version__ = "1.0.5" \ No newline at end of file +__version__ = "1.0.6" \ No newline at end of file diff --git a/imputegap/runner_contamination.py b/imputegap/runner_contamination.py index 9faaa7f6..cd9ec977 100644 --- a/imputegap/runner_contamination.py +++ b/imputegap/runner_contamination.py @@ -10,7 +10,7 @@ ts.normalize(normalizer="z_score") # contaminate the time series with MCAR pattern -ts_m = ts.Contamination.overlap(ts.data, rate_series=0.1, limit=1, shift=0.05, offset=0.1) +ts_m = ts.Contamination.mcar(ts.data, rate_dataset=0.2, rate_series=0.4, block_size=10, seed=True) # plot the contaminated time series ts.plot(ts.data, ts_m, nbr_series=9, subplot=True, save_path="./imputegap_assets") \ No newline at end of file diff --git a/setup.py b/setup.py index 0b516b2c..618c9b84 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setuptools.setup( name="imputegap", - version="1.0.5", + version="1.0.6", description="A Library of Imputation Techniques for Time Series Data", long_description=open('README.md').read(), long_description_content_type="text/markdown",