pattern-detector 0.2.0__py3-none-any.whl → 0.2.1__py3-none-any.whl
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.
- pattern_detector/__init__.py +1 -1
- {pattern_detector-0.2.0.dist-info → pattern_detector-0.2.1.dist-info}/METADATA +1 -1
- {pattern_detector-0.2.0.dist-info → pattern_detector-0.2.1.dist-info}/RECORD +7 -7
- tests/test_detector.py +4 -4
- {pattern_detector-0.2.0.dist-info → pattern_detector-0.2.1.dist-info}/LICENSE +0 -0
- {pattern_detector-0.2.0.dist-info → pattern_detector-0.2.1.dist-info}/WHEEL +0 -0
- {pattern_detector-0.2.0.dist-info → pattern_detector-0.2.1.dist-info}/top_level.txt +0 -0
pattern_detector/__init__.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pattern_detector
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.1
|
4
4
|
Summary: A library for detecting patterns in time-series data.
|
5
5
|
Author: Yigit Utku Bulut and Ahmet Faruk Minareci
|
6
6
|
Author-email: yigit.utku.bulut@gmail.com, ahmetfaruk.minareci@gmail.com
|
@@ -1,12 +1,12 @@
|
|
1
|
-
pattern_detector/__init__.py,sha256=
|
1
|
+
pattern_detector/__init__.py,sha256=Fuk6OrcI-ryoFxzIqFQEM2F6L3R0vZYSX7y_hHxHufI,1159
|
2
2
|
pattern_detector/aoi_finder.py,sha256=TwlXN54UWVdWl2tC-E48enCPiDvnkmFm_rwFhZkkS7c,7069
|
3
3
|
pattern_detector/cosine_similarity_function.py,sha256=Vgh6Blm6kji54JfXLVoiesYYwO0qDAyCv6W--YBlU3o,2704
|
4
4
|
pattern_detector/sliding_window_cosine_similarity.py,sha256=B-Zs0fHDCXlFcWlzEhKuTquavIWzUlMgc1dd3x2gkBk,1735
|
5
5
|
pattern_detector/utils.py,sha256=jqkfeTqWEnrnvzKBxr_UdKj9cj7zPF15UhHPr9sBSa0,2646
|
6
6
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
|
-
tests/test_detector.py,sha256=
|
8
|
-
pattern_detector-0.2.
|
9
|
-
pattern_detector-0.2.
|
10
|
-
pattern_detector-0.2.
|
11
|
-
pattern_detector-0.2.
|
12
|
-
pattern_detector-0.2.
|
7
|
+
tests/test_detector.py,sha256=mSNuqaHEkRiGcFnvvwNWa1UWKjhF6l8xBrFhGHQ1S0A,1021
|
8
|
+
pattern_detector-0.2.1.dist-info/LICENSE,sha256=RslT26mCGxF9nQEyEQL8kFMFUgmYvCA0UivIWefxWmU,1098
|
9
|
+
pattern_detector-0.2.1.dist-info/METADATA,sha256=5VuZn23JkdZryRW5UKPGpJFJ_lnKs6_fqObUBn-0Dd8,536
|
10
|
+
pattern_detector-0.2.1.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
11
|
+
pattern_detector-0.2.1.dist-info/top_level.txt,sha256=zYjRoeMq6DYEzeVTU-JZKbeooXspQwn8M0uCF-naRww,23
|
12
|
+
pattern_detector-0.2.1.dist-info/RECORD,,
|
tests/test_detector.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import pytest
|
2
2
|
import numpy as np
|
3
3
|
import pandas as pd
|
4
|
-
|
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 =
|
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 =
|
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 =
|
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()
|
File without changes
|
File without changes
|
File without changes
|