ddsimca 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ __pycache__
2
+ .venv
3
+ .pytest_cache
4
+ .DS_Store
ddsimca-1.0.0/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2024 The Python Packaging Authority
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
ddsimca-1.0.0/PKG-INFO ADDED
@@ -0,0 +1,69 @@
1
+ Metadata-Version: 2.4
2
+ Name: ddsimca
3
+ Version: 1.0.0
4
+ Summary: Implementation of Data Driven SIMCA one class classification method
5
+ Project-URL: Homepage, https://github.com/svkucheryavski/ddsimca
6
+ Project-URL: Documentation, https://github.com/svkucheryavski/ddsimca
7
+ Project-URL: Repository, https://github.com/svkucheryavski/ddsimca
8
+ Project-URL: Bug Tracker, https://github.com/svkucheryavski/ddsimca/issues
9
+ Author-email: Sergey Kucheryavskiy <svkucheryavski@gmail.com>
10
+ License: MIT
11
+ License-File: LICENSE
12
+ Keywords: anomaly-detection,chemometrics,ddsimca,one-class-classification,simca
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.8
19
+ Classifier: Programming Language :: Python :: 3.9
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
24
+ Requires-Python: >=3.8
25
+ Requires-Dist: matplotlib>=3.8.0
26
+ Requires-Dist: numpy>=1.19.0
27
+ Requires-Dist: pandas>=2.2.0
28
+ Requires-Dist: prcv>1.2.0
29
+ Requires-Dist: scipy>=1.6.0
30
+ Provides-Extra: dev
31
+ Requires-Dist: pytest>=7.0.0; extra == 'dev'
32
+ Description-Content-Type: text/markdown
33
+
34
+ # Data Driven SIMCA
35
+
36
+ The package *ddsimca* implements *Data Driven SIMCA* — a method for creating one-class classification (OCC) models (also known as *anomaly detectors* or *novelty detectors*). The theoretical background and practical examples for the DDSIMCA method are described in [this paper](https://doi.org/10.1002/cem.3556), please use it for citing this package as well. The paper is freely available to everyone via open access option. The other papers describing different theoretical aspects of the method are listed in the *Reference* section below.
37
+
38
+ The paper shows all examples using the DD-SIMCA web-application ([mda.tools/ddsimca](https://mda.tools/ddsimca)). This package implements same functionality in Python, so you can get same outcomes and similar plots. The package can be installed from [PyPI](https://pypi.org) using `pip` or any other package manager compatible with PyPI, e.g.:
39
+
40
+
41
+ ```
42
+ pip install ddsimca
43
+ ```
44
+
45
+ It requires `numpy`, `scipy`, `pandas`, `prcv` and `matplotlib`, which will be automatically installed as dependencies.
46
+
47
+
48
+ ## Getting started
49
+
50
+ Use Jupyter notebook [demo.ipynb](https://github.com/svkucheryavski/ddsimca/blob/main/demo/demo.ipynb) or Markdown document [demo.md](https://github.com/svkucheryavski/ddsimca/blob/main/demo/demo.md) in order to get started. To run the examples from this notebook you need to download zip file with datasets (it is also used for illustration of the method in the paper). Here is [direct link](https://mda.tools/Oregano.zip) to the archive.
51
+
52
+ Simply download the dataset and unzip it to your working directory, where you have the notebook or Markdown document, and follow the guidelines. The dataset can be downloaded from GitHub as well.
53
+
54
+ ## Releases
55
+
56
+ **1.0.0** (1/1/2026)
57
+ * initial release
58
+
59
+
60
+
61
+ ## References
62
+
63
+ 1. S. Kucheryavskiy, O. Rodionova, A. Pomerantsev. *A comprehensive tutorial on Data-Driven SIMCA: Theory and implementation in web*. Journal of Chemometrics, 38 (7), 2024. DOI: [10.1002/cem.3556](http://dx.doi.org/10.1002/cem.3556).
64
+
65
+ 2. A. Pomerantsev, O. Rodionova. *Selectivity in Nontargeted Qualitative Analysis*. Analytica Chimica Acta, 1332, 2024. DOI: [10.1016/j.aca.2024.343352](https://doi.org/10.1016/j.aca.2024.343352).
66
+
67
+ 3. A. Pomerantsev, O. Rodionova. *Popular decision rules in SIMCA: Critical review*. Journal of Chemometrics, 34 (8), 2020. DOI: [10.1002/cem.3250](https://doi.org/10.1002/cem.3250)
68
+
69
+ 4. A. Pomerantsev, O. Rodionova. *On the type II error in SIMCA method*. Journal of Chemometrics, 28 (6), 2014. DOI: [10.1002/cem.2610](https://doi.org/10.1002/cem.2610).
@@ -0,0 +1,36 @@
1
+ # Data Driven SIMCA
2
+
3
+ The package *ddsimca* implements *Data Driven SIMCA* — a method for creating one-class classification (OCC) models (also known as *anomaly detectors* or *novelty detectors*). The theoretical background and practical examples for the DDSIMCA method are described in [this paper](https://doi.org/10.1002/cem.3556), please use it for citing this package as well. The paper is freely available to everyone via open access option. The other papers describing different theoretical aspects of the method are listed in the *Reference* section below.
4
+
5
+ The paper shows all examples using the DD-SIMCA web-application ([mda.tools/ddsimca](https://mda.tools/ddsimca)). This package implements same functionality in Python, so you can get same outcomes and similar plots. The package can be installed from [PyPI](https://pypi.org) using `pip` or any other package manager compatible with PyPI, e.g.:
6
+
7
+
8
+ ```
9
+ pip install ddsimca
10
+ ```
11
+
12
+ It requires `numpy`, `scipy`, `pandas`, `prcv` and `matplotlib`, which will be automatically installed as dependencies.
13
+
14
+
15
+ ## Getting started
16
+
17
+ Use Jupyter notebook [demo.ipynb](https://github.com/svkucheryavski/ddsimca/blob/main/demo/demo.ipynb) or Markdown document [demo.md](https://github.com/svkucheryavski/ddsimca/blob/main/demo/demo.md) in order to get started. To run the examples from this notebook you need to download zip file with datasets (it is also used for illustration of the method in the paper). Here is [direct link](https://mda.tools/Oregano.zip) to the archive.
18
+
19
+ Simply download the dataset and unzip it to your working directory, where you have the notebook or Markdown document, and follow the guidelines. The dataset can be downloaded from GitHub as well.
20
+
21
+ ## Releases
22
+
23
+ **1.0.0** (1/1/2026)
24
+ * initial release
25
+
26
+
27
+
28
+ ## References
29
+
30
+ 1. S. Kucheryavskiy, O. Rodionova, A. Pomerantsev. *A comprehensive tutorial on Data-Driven SIMCA: Theory and implementation in web*. Journal of Chemometrics, 38 (7), 2024. DOI: [10.1002/cem.3556](http://dx.doi.org/10.1002/cem.3556).
31
+
32
+ 2. A. Pomerantsev, O. Rodionova. *Selectivity in Nontargeted Qualitative Analysis*. Analytica Chimica Acta, 1332, 2024. DOI: [10.1016/j.aca.2024.343352](https://doi.org/10.1016/j.aca.2024.343352).
33
+
34
+ 3. A. Pomerantsev, O. Rodionova. *Popular decision rules in SIMCA: Critical review*. Journal of Chemometrics, 34 (8), 2020. DOI: [10.1002/cem.3250](https://doi.org/10.1002/cem.3250)
35
+
36
+ 4. A. Pomerantsev, O. Rodionova. *On the type II error in SIMCA method*. Journal of Chemometrics, 28 (6), 2014. DOI: [10.1002/cem.2610](https://doi.org/10.1002/cem.2610).
@@ -0,0 +1,11 @@
1
+ """
2
+ DD-SIMCA: one-class classification method
3
+ """
4
+
5
+ __version__ = "1.0.0"
6
+ __author__ = "Sergey Kucheryavskiy"
7
+ __email__ = "svkucheryavski@gmail.com"
8
+
9
+ from .ddsimca import DDSIMCA, DDSIMCARes, ddsimca, get_distparams, get_limits, process_members, process_strangers
10
+
11
+ # __all__ = ["DDSIMCA", "DDSIMCARes", "get_distparams", "get_limits"]