Skip to main content

Routines for exploratory data analysis.

Project description

KydLIB: Know Your Data Library

KydLIB is a Python module that provides tools for exploratory data analysis. It is specially designed to work with time series data typically obtained from process system engineering (PSE) applications, although it can also be useful for many types of data.

There are methods for analyzing and visualizing:

  • linear and nonlinear pair correlations;
  • autocorrelations;
  • signal-to-noise ratios;
  • multivariate Gaussianity.

For details on methodologies and application examples, see:

  • Melo et al. (2022): Open benchmarks for assessment of process monitoring and fault diagnosis techniques: A review and critical analysis. doi:10.1016/j.compchemeng.2022.107964.
  • Laarne et al. (2021): ennemi: Non-linear correlation detection with mutual information. doi:10.1016/j.softx.2021.100686.
  • Zhang et al. (2016): A Novel Strategy of the Data Characteristics Test for Selecting a Process Monitoring Method Automatically. doi:10.1021/acs.iecr.5b03525.
  • Feital and Pinto (2015): Use of variance spectra for in-line validation of process measurements in continuous processes. doi:10.1002/cjce.22219.

Installation

With pip

pip install kydlib

With conda

conda install -c conda-forge kydlib

Usage

Let's download a dataset from the Tennessee Eastman Process benchmark to serve as an example:

import pandas as pd

url = 'https://raw.githubusercontent.com/camaramm/tennessee-eastman-profBraatz/master/d00_te.dat'
df = pd.read_csv(url, delim_whitespace=True, header=None).iloc[:,:22]

To use KydLIB, we must instantiate a Study object providing the data to be analyzed:

import kydlib

s = kydlib.Study(df)

We are now ready to do the exploratory data analysis.

Lineplots

s.lineplot()

Scatterplots

s.scatterplot()

Linear and nonlinear correlations

s.corr_coef()
s.corr_coef_plot()

Autocorrelation

s.autocorrelation()
s.autocorrelation_plot()

Signal-to-noise ratio

s.signal_to_noise()
s.signal_to_noise_plot()

Multivariate Gaussianity

s.gaussianity()
s.gaussianity_plot()

Citing

If this package has helped you in your research, consider citing:

@article{melo_open_2022,
  title = {Open benchmarks for assessment of process monitoring and fault diagnosis techniques: A review and critical analysis},
  journal = {Computers \& Chemical Engineering},
  volume = {165},  
  pages = {107964},
  year = {2022},
  doi = {10.1016/j.compchemeng.2022.107964},
  author = {Melo, Afrânio and Câmara, Maurício M. and Clavijo, Nayher and Pinto, José Carlos}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kydlib-0.3.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

kydlib-0.3.1-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file kydlib-0.3.1.tar.gz.

File metadata

  • Download URL: kydlib-0.3.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for kydlib-0.3.1.tar.gz
Algorithm Hash digest
SHA256 44064d448aa0869c7690bf013abed7957d93bee23dd43970f0e9465fc1046e62
MD5 a3a4559eeb9532833341f274a782053c
BLAKE2b-256 c82a4a964631947ac4c5dd51131694a379fff509d492650b2a3690f7101f8555

See more details on using hashes here.

File details

Details for the file kydlib-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: kydlib-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for kydlib-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a7f6f21095a34d04438472a5d8df5b3d0b9a320c0a1e7fa92f48bf8ca5ecb3f5
MD5 aea9f770f58fbe92b69060e189d1bf77
BLAKE2b-256 de2bfbcb2534547f2524608dc39e74ec9f480aadf0d930c2fb77716abd6eb264

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page