{"id":20140703,"url":"https://github.com/afraniomelo/kydlib","last_synced_at":"2025-04-09T18:35:43.204Z","repository":{"id":56865146,"uuid":"526655583","full_name":"afraniomelo/KydLIB","owner":"afraniomelo","description":"Routines for exploratory data analysis.","archived":false,"fork":false,"pushed_at":"2023-04-13T17:22:21.000Z","size":1115,"stargazers_count":25,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T05:17:16.652Z","etag":null,"topics":["autocorrelation","correlation-coefficient","data-analysis","data-exploration","data-science","data-visualization","eda","exploratory-data-analysis","gaussian","machine-learning","noise","nonlinear","plotting","python","scatter-plot","statistics","time-series","time-series-analysis","visualization"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/afraniomelo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-08-19T15:17:41.000Z","updated_at":"2025-02-05T12:26:03.000Z","dependencies_parsed_at":"2023-02-18T09:31:32.714Z","dependency_job_id":null,"html_url":"https://github.com/afraniomelo/KydLIB","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.0714285714285714,"last_synced_commit":"4c5160e309a6ea20eb7c44210e3e64cb10148837"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afraniomelo%2FKydLIB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afraniomelo%2FKydLIB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afraniomelo%2FKydLIB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afraniomelo%2FKydLIB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afraniomelo","download_url":"https://codeload.github.com/afraniomelo/KydLIB/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248088532,"owners_count":21045732,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autocorrelation","correlation-coefficient","data-analysis","data-exploration","data-science","data-visualization","eda","exploratory-data-analysis","gaussian","machine-learning","noise","nonlinear","plotting","python","scatter-plot","statistics","time-series","time-series-analysis","visualization"],"created_at":"2024-11-13T21:53:14.964Z","updated_at":"2025-04-09T18:35:43.170Z","avatar_url":"https://github.com/afraniomelo.png","language":"Python","readme":"# KydLIB: Know Your Data Library\n\nKydLIB  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.\n\nThere are methods for analyzing and visualizing:\n\n* linear and nonlinear pair correlations;\n* autocorrelations;\n* signal-to-noise ratios;\n* multivariate Gaussianity.\n\nFor details on methodologies and application examples, see:\n\n* 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](https://doi.org/10.1016/j.compchemeng.2022.107964).\n* Laarne et al. (2021): ennemi: Non-linear correlation detection with mutual information. [doi:10.1016/j.softx.2021.100686](https://doi.org/10.1016/j.softx.2021.100686).\n* 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](https://doi.org/10.1021/acs.iecr.5b03525).\n* Feital and Pinto (2015): Use of variance spectra for in-line validation of process measurements in continuous processes. [doi:10.1002/cjce.22219](https://doi.org/10.1002/cjce.22219).\n\n## Installation\n\n### With pip\n\n```\npip install kydlib\n```\n\n### With conda\n\n```\nconda install -c conda-forge kydlib\n```\n## Usage\n\nLet's download a dataset from the Tennessee Eastman Process benchmark to serve as an example:\n\n```python\nimport pandas as pd\n\nurl = 'https://raw.githubusercontent.com/camaramm/tennessee-eastman-profBraatz/master/d00_te.dat'\ndf = pd.read_csv(url, delim_whitespace=True, header=None).iloc[:,:22]\n```\nTo use KydLIB, we must instantiate a `Study` object providing the data to be analyzed:\n\n```python\nimport kydlib\n\ns = kydlib.Study(df)\n```\nWe are now ready to do the exploratory data analysis.\n\n#### Lineplots\n\n```python\ns.lineplot()\n```\n\n![](https://raw.githubusercontent.com/afraniomelo/KydLIB/main/examples/assets/tep_lines.png)\n\n#### Scatterplots\n\n```python\ns.scatterplot()\n```\n\n![](https://raw.githubusercontent.com/afraniomelo/KydLIB/main/examples/assets/tep_scatter.png)\n\n#### Linear and nonlinear correlations\n\n```python\ns.corr_coef()\ns.corr_coef_plot()\n```\n![](https://raw.githubusercontent.com/afraniomelo/KydLIB/main/examples/assets/tep_correlation.png)\n\n#### Autocorrelation\n\n```python\ns.autocorrelation()\ns.autocorrelation_plot()\n```\n![](https://raw.githubusercontent.com/afraniomelo/KydLIB/main/examples/assets/tep_autocorrelation.png)\n\n#### Signal-to-noise ratio\n\n```python\ns.signal_to_noise()\ns.signal_to_noise_plot()\n```\n![](https://raw.githubusercontent.com/afraniomelo/KydLIB/main/examples/assets/tep_snr.png)\n\n#### Multivariate Gaussianity\n\n```python\ns.gaussianity()\ns.gaussianity_plot()\n```\n\n![](https://raw.githubusercontent.com/afraniomelo/KydLIB/main/examples/assets/tep_gaussianity.png)\n\n## Citing\n\nIf this package has helped you in your research, consider citing:\n\n```\n@article{melo_open_2022,\n  title = {Open benchmarks for assessment of process monitoring and fault diagnosis techniques: A review and critical analysis},\n  journal = {Computers \\\u0026 Chemical Engineering},\n  volume = {165},  \n  pages = {107964},\n  year = {2022},\n  doi = {10.1016/j.compchemeng.2022.107964},\n  author = {Melo, Afrânio and Câmara, Maurício M. and Clavijo, Nayher and Pinto, José Carlos}\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafraniomelo%2Fkydlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafraniomelo%2Fkydlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafraniomelo%2Fkydlib/lists"}