pattern-detector 0.2.0__tar.gz → 0.2.2__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.
Files changed (20) hide show
  1. pattern_detector-0.2.2/PKG-INFO +41 -0
  2. pattern_detector-0.2.2/README.md +14 -0
  3. {pattern_detector-0.2.0 → pattern_detector-0.2.2}/pattern_detector/__init__.py +1 -1
  4. pattern_detector-0.2.2/pattern_detector.egg-info/PKG-INFO +41 -0
  5. {pattern_detector-0.2.0 → pattern_detector-0.2.2}/setup.py +7 -1
  6. {pattern_detector-0.2.0 → pattern_detector-0.2.2}/tests/test_detector.py +4 -4
  7. pattern_detector-0.2.0/PKG-INFO +0 -16
  8. pattern_detector-0.2.0/README.md +0 -12
  9. pattern_detector-0.2.0/pattern_detector.egg-info/PKG-INFO +0 -16
  10. {pattern_detector-0.2.0 → pattern_detector-0.2.2}/LICENSE +0 -0
  11. {pattern_detector-0.2.0 → pattern_detector-0.2.2}/pattern_detector/aoi_finder.py +0 -0
  12. {pattern_detector-0.2.0 → pattern_detector-0.2.2}/pattern_detector/cosine_similarity_function.py +0 -0
  13. {pattern_detector-0.2.0 → pattern_detector-0.2.2}/pattern_detector/sliding_window_cosine_similarity.py +0 -0
  14. {pattern_detector-0.2.0 → pattern_detector-0.2.2}/pattern_detector/utils.py +0 -0
  15. {pattern_detector-0.2.0 → pattern_detector-0.2.2}/pattern_detector.egg-info/SOURCES.txt +0 -0
  16. {pattern_detector-0.2.0 → pattern_detector-0.2.2}/pattern_detector.egg-info/dependency_links.txt +0 -0
  17. {pattern_detector-0.2.0 → pattern_detector-0.2.2}/pattern_detector.egg-info/requires.txt +0 -0
  18. {pattern_detector-0.2.0 → pattern_detector-0.2.2}/pattern_detector.egg-info/top_level.txt +0 -0
  19. {pattern_detector-0.2.0 → pattern_detector-0.2.2}/setup.cfg +0 -0
  20. {pattern_detector-0.2.0 → pattern_detector-0.2.2}/tests/__init__.py +0 -0
@@ -0,0 +1,41 @@
1
+ Metadata-Version: 2.2
2
+ Name: pattern_detector
3
+ Version: 0.2.2
4
+ Summary: A library for detecting patterns in time-series data.
5
+ Author: Yigit Utku Bulut and Ahmet Faruk Minareci
6
+ Author-email: yigit.utku.bulut@gmail.com, ahmetfaruk.minareci@gmail.com
7
+ License: MIT
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.7
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: numpy
15
+ Requires-Dist: pandas
16
+ Requires-Dist: joblib
17
+ Requires-Dist: scipy
18
+ Dynamic: author
19
+ Dynamic: author-email
20
+ Dynamic: classifier
21
+ Dynamic: description
22
+ Dynamic: description-content-type
23
+ Dynamic: license
24
+ Dynamic: requires-dist
25
+ Dynamic: requires-python
26
+ Dynamic: summary
27
+
28
+ ## Pattern Detector
29
+ pattern_detector is a Python library for detecting patterns in 1-D time-series data using advanced sliding window and similarity computations.
30
+
31
+ ## Suggestion of use
32
+ Pattern selection is a crucial step for pattern detection algorithms. Try to select stationary start and end points in your signal for sample pattern.
33
+
34
+ ## Installation
35
+ pip install pattern_detector
36
+
37
+ ## Example Usage
38
+
39
+ import pattern_detector
40
+
41
+ df = pattern_detector(df, pattern, "column_name_of_pattern")
@@ -0,0 +1,14 @@
1
+ ## Pattern Detector
2
+ pattern_detector is a Python library for detecting patterns in 1-D time-series data using advanced sliding window and similarity computations.
3
+
4
+ ## Suggestion of use
5
+ Pattern selection is a crucial step for pattern detection algorithms. Try to select stationary start and end points in your signal for sample pattern.
6
+
7
+ ## Installation
8
+ pip install pattern_detector
9
+
10
+ ## Example Usage
11
+
12
+ import pattern_detector
13
+
14
+ df = pattern_detector(df, pattern, "column_name_of_pattern")
@@ -3,7 +3,7 @@ try:
3
3
  except ImportError:
4
4
  raise ImportError("The PatternDetector module could not be imported. Ensure all dependencies are installed.")
5
5
 
6
- __version__ = "0.2.0"
6
+ __version__ = "0.2.2"
7
7
 
8
8
  def pattern_detector(data, pattern, column_pattern):
9
9
  """
@@ -0,0 +1,41 @@
1
+ Metadata-Version: 2.2
2
+ Name: pattern_detector
3
+ Version: 0.2.2
4
+ Summary: A library for detecting patterns in time-series data.
5
+ Author: Yigit Utku Bulut and Ahmet Faruk Minareci
6
+ Author-email: yigit.utku.bulut@gmail.com, ahmetfaruk.minareci@gmail.com
7
+ License: MIT
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.7
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: numpy
15
+ Requires-Dist: pandas
16
+ Requires-Dist: joblib
17
+ Requires-Dist: scipy
18
+ Dynamic: author
19
+ Dynamic: author-email
20
+ Dynamic: classifier
21
+ Dynamic: description
22
+ Dynamic: description-content-type
23
+ Dynamic: license
24
+ Dynamic: requires-dist
25
+ Dynamic: requires-python
26
+ Dynamic: summary
27
+
28
+ ## Pattern Detector
29
+ pattern_detector is a Python library for detecting patterns in 1-D time-series data using advanced sliding window and similarity computations.
30
+
31
+ ## Suggestion of use
32
+ Pattern selection is a crucial step for pattern detection algorithms. Try to select stationary start and end points in your signal for sample pattern.
33
+
34
+ ## Installation
35
+ pip install pattern_detector
36
+
37
+ ## Example Usage
38
+
39
+ import pattern_detector
40
+
41
+ df = pattern_detector(df, pattern, "column_name_of_pattern")
@@ -1,9 +1,15 @@
1
1
  from setuptools import setup, find_packages
2
2
 
3
+ with open("README.md", "r", encoding="utf-8") as fh:
4
+ long_description = fh.read()
5
+
6
+
3
7
  setup(
4
8
  name='pattern_detector',
5
- version='0.2.0',
9
+ version='0.2.2',
6
10
  description='A library for detecting patterns in time-series data.',
11
+ long_description=long_description,
12
+ long_description_content_type="text/markdown",
7
13
  author='Yigit Utku Bulut and Ahmet Faruk Minareci',
8
14
  author_email='yigit.utku.bulut@gmail.com, ahmetfaruk.minareci@gmail.com',
9
15
  license='MIT',
@@ -1,11 +1,11 @@
1
1
  import pytest
2
2
  import numpy as np
3
3
  import pandas as pd
4
- #from pattern_detector.detector import PatternDetector
4
+ from pattern_detector.aoi_finder import run_area_of_interest_finder
5
5
 
6
6
  def test_preprocess_pattern():
7
7
  pattern = pd.DataFrame({"value": range(10)})
8
- detector = PatternDetector(None, pattern, "value")
8
+ detector = run_area_of_interest_finder(None, pattern, "value")
9
9
  detector.preprocess_pattern()
10
10
  assert detector.pattern1 is not None
11
11
  assert len(detector.pattern1) > 0
@@ -13,7 +13,7 @@ def test_preprocess_pattern():
13
13
  def test_calculate_similarity():
14
14
  data = pd.DataFrame({"value": range(100)})
15
15
  pattern = pd.DataFrame({"value": range(10)})
16
- detector = PatternDetector(data, pattern, "value")
16
+ detector = run_area_of_interest_finder(data, pattern, "value")
17
17
  detector.preprocess_pattern()
18
18
  detector.calculate_similarity()
19
19
  assert len(detector.similarity_dict) > 0
@@ -21,7 +21,7 @@ def test_calculate_similarity():
21
21
  def test_find_area_of_interest():
22
22
  data = pd.DataFrame({"value": range(100)})
23
23
  pattern = pd.DataFrame({"value": range(10)})
24
- detector = PatternDetector(data, pattern, "value")
24
+ detector = run_area_of_interest_finder(data, pattern, "value")
25
25
  result = detector.find_area_of_interest()
26
26
  assert "cycle" in result.columns
27
27
  assert not result["cycle"].isnull().all()
@@ -1,16 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: pattern_detector
3
- Version: 0.2.0
4
- Summary: A library for detecting patterns in time-series data.
5
- Author: Yigit Utku Bulut and Ahmet Faruk Minareci
6
- Author-email: yigit.utku.bulut@gmail.com, ahmetfaruk.minareci@gmail.com
7
- License: MIT
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Operating System :: OS Independent
11
- Requires-Python: >=3.7
12
- License-File: LICENSE
13
- Requires-Dist: numpy
14
- Requires-Dist: pandas
15
- Requires-Dist: joblib
16
- Requires-Dist: scipy
@@ -1,12 +0,0 @@
1
- # Pattern Detector
2
-
3
- `pattern_detector` is a Python library for detecting patterns in 1-D time-series data using advanced sliding window and similarity computations.
4
-
5
- # Suggestion of use
6
-
7
- Pattern selection is a crucial step for pattern detection algorithms. Try to select stationary start and end points in your signal for sample pattern.
8
-
9
- ## Installation
10
-
11
- ```bash
12
- pip install pattern_detector
@@ -1,16 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: pattern_detector
3
- Version: 0.2.0
4
- Summary: A library for detecting patterns in time-series data.
5
- Author: Yigit Utku Bulut and Ahmet Faruk Minareci
6
- Author-email: yigit.utku.bulut@gmail.com, ahmetfaruk.minareci@gmail.com
7
- License: MIT
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Operating System :: OS Independent
11
- Requires-Python: >=3.7
12
- License-File: LICENSE
13
- Requires-Dist: numpy
14
- Requires-Dist: pandas
15
- Requires-Dist: joblib
16
- Requires-Dist: scipy