Skip to content

Commit

Permalink
Merge pull request #5 from WenjieDu/dev
Browse files Browse the repository at this point in the history
Adding pre-commit config file, and update the docs
  • Loading branch information
WenjieDu authored Aug 8, 2023
2 parents c2557ff + b49e667 commit 176a0c9
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 365 deletions.
23 changes: 23 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
repos:
# hooks for checking files
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml

# hooks for linting code
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black

- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
args: [
--max-line-length=120, # refer to setup.cfg
--extend-ignore=E203, # why ignore E203? Refer to https://github.com/PyCQA/pycodestyle/issues/373
]
26 changes: 16 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
<a href='https://github.com/WenjieDu/PyCorruptor'><img src='https://raw.githubusercontent.com/WenjieDu/PyCorruptor/main/docs/figs/PyCorruptor.svg?sanitize=true' width='350' align='right' /></a>
<a href='https://github.com/WenjieDu/PyCorruptor'><img src='https://raw.githubusercontent.com/PyPOTS/pypots.github.io/main/static/figs/pypots_logos/PyCorruptor_logo_FFBG.svg?sanitize=true' width='350' align='right' /></a>

# <p align='center'>Welcome to PyCorruptor</p>

**<p align='center'>A Python Toolbox for Data Corruption</p>**
<p align='center'>
<!-- Python version -->
<img src='https://img.shields.io/badge/python-v3-yellowgreen'>
<!-- PyPI version -->
<img alt="PyPI" src="https://img.shields.io/pypi/v/pycorruptor?color=green&label=PyPI">
<!-- GitHub Testing -->
<a alt='GitHub Testing' href='https://github.com/WenjieDu/PyCorruptor/actions/workflows/testing.yml'>
<img src='https://github.com/WenjieDu/PyCorruptor/actions/workflows/testing.yml/badge.svg'>
<a alt='GitHub Testing' href='https://github.com/WenjieDu/PyCorruptor/actions/workflows/testing_ci.yml'>
<img src='https://github.com/WenjieDu/PyCorruptor/actions/workflows/testing_ci.yml/badge.svg'>
</a>
<!-- Coveralls report -->
<a alt='Coveralls report' href='https://coveralls.io/github/WenjieDu/PyCorruptor'>
<a alt='Coveralls report' href='https://coveralls.io/github/WenjieDu/PyCorruptor'>
<img src='https://img.shields.io/coverallsCoverage/github/WenjieDu/PyCorruptor?branch=main&logo=coveralls'>
</a>
<a href="https://anaconda.org/conda-forge/pycorruptor">
Expand All @@ -22,16 +23,21 @@
<img alt="PyPI downloads" src="https://static.pepy.tech/personalized-badge/pycorruptor?period=total&units=international_system&left_color=grey&right_color=blue&left_text=PyPI%20Downloads">
</a>
<!-- Visit number -->

</p>

<a href='https://github.com/WenjieDu/PyPOTS'><img src='https://raw.githubusercontent.com/WenjieDu/PyPOTS/main/docs/_static/figs/PyPOTS_logo.svg?sanitize=true' width='160' align='left' /></a>
PyCorruptor is a part of [PyPOTS project](https://github.com/WenjieDu/PyPOTS) (a Python toolbox for data mining on Partially-Observed Time Series), and was separated from PyPOTS for decoupling missingness-creating functionalities from learning algorithms.
</p>

<a href='https://github.com/WenjieDu/PyPOTS'><img src='https://raw.githubusercontent.com/PyPOTS/pypots.github.io/main/static/figs/pypots_logos/PyPOTS_logo_FFBG.svg?sanitize=true' width='160' align='left' /></a>
PyCorruptor is a part of [PyPOTS project](https://github.com/WenjieDu/PyPOTS) (a Python toolbox for data mining on
Partially-Observed Time Series), and was separated from PyPOTS for decoupling missingness-creating functionalities from
learning algorithms.

In data analysis and modeling, sometimes we may need to corrupt the original data to achieve our goal, for instance, evaluating models' ability to reconstruct corrupted data or assessing the model's performance on only partially-observed data. PyCorruptor is such a tool to help you corrupt your data, which provides several patterns to create missing values in the given data.
In data analysis and modeling, sometimes we may need to corrupt the original data to achieve our goal, for instance,
evaluating models' ability to reconstruct corrupted data or assessing the model's performance on only partially-observed
data. PyCorruptor is such a tool to help you corrupt your data, which provides several patterns to create missing values
in the given data.

## ❖ Citing PyCorruptor

The paper introducing PyPOTS project is available on arXiv at [this URL](https://arxiv.org/abs/2305.18811),
and we are pursuing to publish it in prestigious academic venues, e.g. JMLR (track for
[Machine Learning Open Source Software](https://www.jmlr.org/mloss/)). If you use PyCorruptor in your work,
Expand Down Expand Up @@ -59,4 +65,4 @@ or
<details>
<summary>🏠 Visits</summary>
<img align='left' src='https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FWenjieDu%2FPyCorruptor&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=Visits&edge_flat=false'>
</details>
</details>
Loading

0 comments on commit 176a0c9

Please sign in to comment.