Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
synthetic cases results are the same as using the original code
  • Loading branch information
Tatiana Dembelova committed Jun 11, 2017
1 parent 7168cf4 commit 57d60b4
Show file tree
Hide file tree
Showing 34 changed files with 889,628 additions and 2,114 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -3,7 +3,7 @@
*.iml

logs/*

*.png
# Mobile Tools for Java (J2ME)
.mtj.tmp/

Expand Down
7 changes: 5 additions & 2 deletions constants.py
Expand Up @@ -4,16 +4,19 @@ class Method(Enum):
ORIGINAL = 1
EXTENDED = 2

class Correlation_measure(Enum):

class CorrelationMeasure(Enum):
UDS = 1
CMI = 2
MAC = 3

ID_THRESHOLD_QUANTILE = 0.8

ID_THRESHOLD_QUANTILE = 1.0 / 3

NORMALIZATION_RADIUS = 1

FILE_DATA_OUTPUT = "out.txt"
FILE_DATA_CUTS = 'cut.txt'
FILE_NAME_PATTERN = '(?:.*/)*(.*)$'

MAX_SUBSPACE_SIZE = 5
1,994 changes: 1,994 additions & 0 deletions data/crime.csv

Large diffs are not rendered by default.

1,994 changes: 0 additions & 1,994 deletions data/crime_small.csv

This file was deleted.

13,910 changes: 13,910 additions & 0 deletions data/gas.csv

Large diffs are not rendered by default.

311,029 changes: 311,029 additions & 0 deletions data/kdd.csv

Large diffs are not rendered by default.

5,875 changes: 5,875 additions & 0 deletions data/parkinson.csv

Large diffs are not rendered by default.

6,435 changes: 6,435 additions & 0 deletions data/satimage.csv

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions data_generation.py
Expand Up @@ -63,8 +63,8 @@ def synthetic_data_0(m):


if __name__ == '__main__':
data__ = np.concatenate((synthetic_data_1(20000, 2, 0, 0), np.zeros((20000, 1))), axis=1)
file = 'synthetic_data_example_20000.csv'
data__ = np.concatenate((synthetic_data_1(20000, 9, 0, 0), np.zeros((20000, 1))), axis=1)
file = 'synthetic_10d_parity_problem.csv'

if os.path.isfile(file):
raise ValueError
Expand Down
8 changes: 8 additions & 0 deletions example/cuts.txt
@@ -0,0 +1,8 @@
dimension 0 (2 bins)
0.534924
1.0
-------------------------------------
dimension 1 (2 bins)
0.52343
1.0
-------------------------------------
216 changes: 216 additions & 0 deletions example/out.txt
@@ -0,0 +1,216 @@
@relation DB

@attribute dim0 {1,2}
@attribute dim1 {3,4}
@attribute class {"0"}

@data
2,4,"0"
1,4,"0"
1,4,"0"
1,4,"0"
1,4,"0"
1,4,"0"
1,4,"0"
1,4,"0"
1,4,"0"
1,4,"0"
2,3,"0"
2,3,"0"
2,4,"0"
1,4,"0"
2,3,"0"
2,3,"0"
2,3,"0"
2,3,"0"
2,3,"0"
2,4,"0"
2,3,"0"
2,3,"0"
2,4,"0"
2,4,"0"
2,3,"0"
2,4,"0"
2,3,"0"
2,3,"0"
2,4,"0"
2,3,"0"
1,4,"0"
1,4,"0"
1,3,"0"
1,4,"0"
2,4,"0"
2,4,"0"
1,3,"0"
1,3,"0"
1,4,"0"
1,3,"0"
1,3,"0"
1,3,"0"
1,4,"0"
1,4,"0"
2,4,"0"
2,4,"0"
2,3,"0"
2,3,"0"
2,3,"0"
2,4,"0"
2,3,"0"
2,3,"0"
2,4,"0"
2,3,"0"
2,3,"0"
2,4,"0"
2,4,"0"
2,3,"0"
2,3,"0"
2,3,"0"
2,3,"0"
2,3,"0"
2,3,"0"
2,4,"0"
2,4,"0"
2,4,"0"
2,3,"0"
2,3,"0"
2,3,"0"
2,3,"0"
2,4,"0"
2,4,"0"
2,3,"0"
2,3,"0"
2,4,"0"
2,4,"0"
2,4,"0"
2,4,"0"
2,3,"0"
2,4,"0"
2,3,"0"
2,3,"0"
2,3,"0"
2,3,"0"
2,3,"0"
2,3,"0"
2,3,"0"
2,3,"0"
2,4,"0"
2,4,"0"
2,4,"0"
2,4,"0"
2,3,"0"
2,4,"0"
2,4,"0"
1,4,"0"
1,4,"0"
1,4,"0"
1,4,"0"
2,3,"0"
2,3,"0"
2,4,"0"
2,3,"0"
2,3,"0"
2,3,"0"
2,3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