mdod 0.1.8__tar.gz → 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.
- {mdod-0.1.8 → mdod-1.0.0}/PKG-INFO +2 -2
- {mdod-0.1.8 → mdod-1.0.0}/README.md +4 -1
- {mdod-0.1.8 → mdod-1.0.0}/mdod.egg-info/PKG-INFO +2 -2
- {mdod-0.1.8 → mdod-1.0.0}/mdod.egg-info/SOURCES.txt +0 -2
- mdod-1.0.0/mdod.egg-info/top_level.txt +1 -0
- {mdod-0.1.8 → mdod-1.0.0}/setup.py +2 -2
- mdod-0.1.8/mdod/__init__.py +0 -5
- mdod-0.1.8/mdod/mdod.py +0 -59
- mdod-0.1.8/mdod.egg-info/top_level.txt +0 -1
- {mdod-0.1.8 → mdod-1.0.0}/LICENSE.txt +0 -0
- {mdod-0.1.8 → mdod-1.0.0}/mdod.egg-info/dependency_links.txt +0 -0
- {mdod-0.1.8 → mdod-1.0.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: mdod
|
3
|
-
Version: 0.
|
3
|
+
Version: 1.0.0
|
4
4
|
Summary: MDOD, Multi-Dimensional data Outlier Detection
|
5
5
|
Home-page: https://github.com/mddod/mdod
|
6
6
|
Author: Z Shen
|
@@ -13,5 +13,5 @@ Classifier: Programming Language :: Python
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
14
14
|
License-File: LICENSE.txt
|
15
15
|
|
16
|
-
Python library for Multi-Dimensional data Outlier/Anomaly Detection algorithm. For details please read README.md ,
|
16
|
+
Python library for Multi-Dimensional data Outlier/Anomaly Detection algorithm. For details please read README.md , visit https://github.com/mddod/mdod, or https://mddod.github.io/
|
17
17
|
|
@@ -20,6 +20,8 @@ cd mdod
|
|
20
20
|
python setup.py install
|
21
21
|
|
22
22
|
# usage example:
|
23
|
+
import numpy as np
|
24
|
+
|
23
25
|
import mdod
|
24
26
|
|
25
27
|
localFile = 'TestDataset.txt'
|
@@ -61,6 +63,7 @@ data1,data2,data3,data4,data5,data6
|
|
61
63
|
|
62
64
|
...
|
63
65
|
|
66
|
+
# file exampls:
|
67
|
+
Please visit https://github.com/mddod/mdod, or https://mddod.github.io/
|
64
68
|
|
65
69
|
|
66
|
-
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: mdod
|
3
|
-
Version: 0.
|
3
|
+
Version: 1.0.0
|
4
4
|
Summary: MDOD, Multi-Dimensional data Outlier Detection
|
5
5
|
Home-page: https://github.com/mddod/mdod
|
6
6
|
Author: Z Shen
|
@@ -13,5 +13,5 @@ Classifier: Programming Language :: Python
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
14
14
|
License-File: LICENSE.txt
|
15
15
|
|
16
|
-
Python library for Multi-Dimensional data Outlier/Anomaly Detection algorithm. For details please read README.md ,
|
16
|
+
Python library for Multi-Dimensional data Outlier/Anomaly Detection algorithm. For details please read README.md , visit https://github.com/mddod/mdod, or https://mddod.github.io/
|
17
17
|
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name="mdod",
|
5
|
-
version="0.
|
5
|
+
version="1.0.0",
|
6
6
|
packages=find_packages(),
|
7
7
|
package_data={"": ["*"]},
|
8
8
|
install_requires=[
|
@@ -11,7 +11,7 @@ setup(
|
|
11
11
|
author="Z Shen",
|
12
12
|
author_email="626456708@qq.com",
|
13
13
|
description="MDOD, Multi-Dimensional data Outlier Detection",
|
14
|
-
long_description="Python library for Multi-Dimensional data Outlier/Anomaly Detection algorithm. For details please read README.md ,
|
14
|
+
long_description="Python library for Multi-Dimensional data Outlier/Anomaly Detection algorithm. For details please read README.md , visit https://github.com/mddod/mdod, or https://mddod.github.io/",
|
15
15
|
license="BSD 3-Clause License",
|
16
16
|
url="https://github.com/mddod/mdod",
|
17
17
|
classifiers=[
|
mdod-0.1.8/mdod/__init__.py
DELETED
mdod-0.1.8/mdod/mdod.py
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
# -*-coding: utf-8- -*-
|
2
|
-
#MDOD, Multi-Dimensional data Outlier Detection
|
3
|
-
# Author: Z Shen<626456708@qq.com>
|
4
|
-
# License: BSD 3-Clause License
|
5
|
-
|
6
|
-
import numpy as np
|
7
|
-
|
8
|
-
def md(dets0,nd,sn):
|
9
|
-
VCS_list = []
|
10
|
-
VCSResult_list = []
|
11
|
-
i=0
|
12
|
-
VCS_list.clear()
|
13
|
-
for line0 in dets0:
|
14
|
-
VCSTotal = 0
|
15
|
-
DenominatorLeft = 0
|
16
|
-
DenominatorRight = 0
|
17
|
-
Numerator1 = 0
|
18
|
-
Numerator2 = 0
|
19
|
-
NumeratorPlus = 0
|
20
|
-
DenominatorSum = 0
|
21
|
-
NumeratorSum = 0
|
22
|
-
VCSResult = 0
|
23
|
-
j = 0
|
24
|
-
VCSResult_list.clear()
|
25
|
-
line0size=np.array(line0)
|
26
|
-
for line1 in dets0:
|
27
|
-
VCSResult = 0
|
28
|
-
DenominatorLeft = 0
|
29
|
-
DenominatorRight = 0
|
30
|
-
Numerator1 = 0
|
31
|
-
Numerator2 = 0
|
32
|
-
NumeratorPlus = 0
|
33
|
-
DenominatorSum = 0
|
34
|
-
NumeratorSum = 0
|
35
|
-
VCSResult = 0
|
36
|
-
for k in range(0, (line0size.size), 1):
|
37
|
-
DenominatorLeft = float(DenominatorLeft) + (float(str(line0[k]))-float(str(line0[k])))**2
|
38
|
-
DenominatorLeft = float(DenominatorLeft) + (float(str(nd))-float(str('0')))**2
|
39
|
-
DenominatorLeft = (float(DenominatorLeft)**0.5)
|
40
|
-
for k in range(0, (line0size.size), 1):
|
41
|
-
DenominatorRight = float(DenominatorRight) + (float(str(line0[k]))-float(str(line1[k])))**2
|
42
|
-
DenominatorRight = float(DenominatorRight) + (float(str(nd))-float(str('0')))**2
|
43
|
-
DenominatorRight = (float(DenominatorRight)**0.5)
|
44
|
-
for k in range(0, (line0size.size), 1):
|
45
|
-
NumeratorSum = NumeratorSum + (float(((float(str(line0[k]))-float(str(line0[k])))**2)**0.5) * float(((float(str(line0[k]))-float(str(line1[k])))**2)**0.5))
|
46
|
-
NumeratorPlus = (float(((float(str(nd))-float(str('0')))**2)**0.5) * float(((float(str(nd))-float(str('0')))**2)**0.5))
|
47
|
-
DenominatorSum = float(DenominatorLeft) * float(DenominatorRight)
|
48
|
-
NumeratorSum = NumeratorSum + NumeratorPlus
|
49
|
-
VCSResult = float(NumeratorSum)/float(DenominatorSum)
|
50
|
-
VCSResult_list.append(VCSResult)
|
51
|
-
VCSResult_list.sort(key=None, reverse=True)
|
52
|
-
for j in range(1, sn):
|
53
|
-
VCSTotal = VCSTotal + float(str(VCSResult_list[j]))
|
54
|
-
VCS_list.append([VCSTotal, str(line0), str(i)])
|
55
|
-
i = i + 1
|
56
|
-
return VCS_list
|
57
|
-
|
58
|
-
|
59
|
-
|
@@ -1 +0,0 @@
|
|
1
|
-
mdod
|
File without changes
|
File without changes
|
File without changes
|