-
Notifications
You must be signed in to change notification settings - Fork 2
/
globalVars.py
45 lines (36 loc) · 1.92 KB
/
globalVars.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# -*- coding: utf-8 -*-
"""
Created on Mon Oct 7 20:59:12 2019
@author: Sadman Sakib
"""
originalValue=[]
predictedValue=[]
#continuousFeatruesColumn=[0,5,6]
#categoricalFeaturesColumn=[13]
continuousFeatruesColumn=[0,1,2]
categoricalFeaturesColumn=[3,4]
CSVcontent1NN=[]
CSVcontentKNN=[]
CSVcontentWeightedKNN=[]
CSVcategoricalContent1NN=[]
CSVcategoricalContentKNN=[]
CSVcategoricalContentWeightedKNN=[]
def headerCSV():
global CSVcontent1NN
global CSVcontentKNN
global CSVcontentWeightedKNN
global CSVcategoricalContent1NN
global CSVcategoricalContentKNN
global CSVcategoricalContentWeightedKNN
CSVcontent1NN=[['','***** CONTINUOUS FEATURES *****'],['', 'Results of 1NN ', '', '', '', '', ''],
['', ' (5%) Euclidean', '(5%) Manhattan', '(10%) Euclidean', '(10%) Manhattan ', '(20%) Euclidean ', '(20%) Manhattan ']]
CSVcontentKNN=[['', 'Results of KNN ', '', '', '', '', ''],
['', ' (5%) Euclidean', '(5%) Manhattan', '(10%) Euclidean', '(10%) Manhattan ', '(20%) Euclidean ', '(20%) Manhattan ']]
CSVcontentWeightedKNN=[['', 'Results of WEIGHTED KNN ', '', '', '', '', ''],
['', ' (5%) Euclidean', '(5%) Manhattan', '(10%) Euclidean', '(10%) Manhattan ', '(20%) Euclidean ', '(20%) Manhattan ']]
CSVcategoricalContent1NN=[['','***** CATEGORICAL FEATURES *****'],['', 'Results of 1NN ', '', '', '', '', ''],
['', '(5%) Hamming distance ', '(10%) Hamming distance ', '(20%) Hamming distance ']]
CSVcategoricalContentKNN=[['', 'Results of KNN ', '', '', '', '', ''],
['', '(5%) Hamming distance ', '(10%) Hamming distance ', '(20%) Hamming distance ']]
CSVcategoricalContentWeightedKNN=[['', 'Results of WEIGHTED KNN ', '', '', '', '', ''],
['', '(5%) Hamming distance ', '(10%) Hamming distance ', '(20%) Hamming distance ']]