-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathFRIQ_init_constants.m
110 lines (102 loc) · 7.68 KB
/
FRIQ_init_constants.m
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
function FRIQ_init_constants()
% FRIQ_init_constants: define constants
%
% FRIQ-learning framework v0.70
% https://github.com/szaguldo-kamaz/
%
% Author: David Vincze <david.vincze@uni-miskolc.hu>
% Copyright (c) 2013-2022 by David Vincze
%
%% Define constants - for the names of the strategies
global FRIQ_const_reduction_strategy__MIN_Q
global FRIQ_const_reduction_strategy__MAX_Q
global FRIQ_const_reduction_strategy__HALF_GROUP_REMOVAL
global FRIQ_const_reduction_strategy__BUILD_MINANDMAXQ
global FRIQ_const_reduction_strategy__ANTECEDENT_REDUNDANCY
global FRIQ_const_reduction_strategy__ELIMINATE_DUPLICATED__FIRST
global FRIQ_const_reduction_strategy__ELIMINATE_DUPLICATED__MINQ
global FRIQ_const_reduction_strategy__ELIMINATE_DUPLICATED__MAXQ
global FRIQ_const_reduction_strategy__ELIMINATE_DUPLICATED__MERGE_MEAN
global FRIQ_const_reduction_strategy__ELIMINATE_SIMILAR__FIRST
global FRIQ_const_reduction_strategy__ELIMINATE_SIMILAR__MINQ
global FRIQ_const_reduction_strategy__ELIMINATE_SIMILAR__MAXQ
global FRIQ_const_reduction_strategy__ELIMINATE_SIMILAR__MERGE_MEAN
global FRIQ_const_reduction_strategy__CLUSTER__KMEANS_REMOVE_ONE
global FRIQ_const_reduction_strategy__CLUSTER__KMEANS_REMOVE_MANY
global FRIQ_const_reduction_strategy__CLUSTER__KMEANS_REPLACE_ONE
global FRIQ_const_reduction_strategy__CLUSTER__KMEANS_REPLACE_MANY
global FRIQ_const_reduction_strategy__CLUSTER__KMEANS_BUILD_CENTROID
global FRIQ_const_reduction_strategy__CLUSTER__KMEANS_BUILD_MINANDMAXQ
global FRIQ_const_reduction_strategy__CLUSTER__KMEANS_BUILD_MAXABSQ
global FRIQ_const_reduction_strategy__CLUSTER__KMEANS_BUILD_MINABSQ
global FRIQ_const_reduction_strategy__CLUSTER__HIERARCHICAL
% special value to run all the reduction strategies on the same rule-base
global FRIQ_const_reduction_strategy__ALL FRIQ_const_reduction_strategy__ALL_CLUSTER_KMEANS
FRIQ_const_reduction_strategy__MIN_Q=1;
FRIQ_const_reduction_strategy__MAX_Q=2;
FRIQ_const_reduction_strategy__HALF_GROUP_REMOVAL=3;
FRIQ_const_reduction_strategy__BUILD_MINANDMAXQ=4;
FRIQ_const_reduction_strategy__ANTECEDENT_REDUNDANCY=5;
FRIQ_const_reduction_strategy__ELIMINATE_DUPLICATED__FIRST=6;
FRIQ_const_reduction_strategy__ELIMINATE_DUPLICATED__MINQ=7;
FRIQ_const_reduction_strategy__ELIMINATE_DUPLICATED__MAXQ=8;
FRIQ_const_reduction_strategy__ELIMINATE_DUPLICATED__MERGE_MEAN=9;
FRIQ_const_reduction_strategy__ELIMINATE_SIMILAR__FIRST=10;
FRIQ_const_reduction_strategy__ELIMINATE_SIMILAR__MINQ=11;
FRIQ_const_reduction_strategy__ELIMINATE_SIMILAR__MAXQ=12;
FRIQ_const_reduction_strategy__ELIMINATE_SIMILAR__MERGE_MEAN=13;
FRIQ_const_reduction_strategy__CLUSTER__KMEANS_REMOVE_ONE=14;
FRIQ_const_reduction_strategy__CLUSTER__KMEANS_REMOVE_MANY=15;
FRIQ_const_reduction_strategy__CLUSTER__KMEANS_REPLACE_ONE=16;
FRIQ_const_reduction_strategy__CLUSTER__KMEANS_REPLACE_MANY=17;
FRIQ_const_reduction_strategy__CLUSTER__KMEANS_BUILD_CENTROID=18;
FRIQ_const_reduction_strategy__CLUSTER__KMEANS_BUILD_MINANDMAXQ=19;
FRIQ_const_reduction_strategy__CLUSTER__KMEANS_BUILD_MAXABSQ=20;
FRIQ_const_reduction_strategy__CLUSTER__KMEANS_BUILD_MINABSQ=21;
FRIQ_const_reduction_strategy__CLUSTER__HIERARCHICAL=22;
FRIQ_const_reduction_strategy__ALL=1000;
FRIQ_const_reduction_strategy__ALL_CLUSTER_KMEANS=1001;
global FRIQ_const_reduction_secondary_strategies
FRIQ_const_reduction_secondary_strategies=[ ...
FRIQ_const_reduction_strategy__ELIMINATE_DUPLICATED__FIRST, ...
FRIQ_const_reduction_strategy__ELIMINATE_DUPLICATED__MINQ, ...
FRIQ_const_reduction_strategy__ELIMINATE_DUPLICATED__MAXQ, ...
FRIQ_const_reduction_strategy__ELIMINATE_DUPLICATED__MERGE_MEAN ...
FRIQ_const_reduction_strategy__ELIMINATE_SIMILAR__FIRST ...
FRIQ_const_reduction_strategy__ELIMINATE_SIMILAR__MINQ ...
FRIQ_const_reduction_strategy__ELIMINATE_SIMILAR__MAXQ ...
FRIQ_const_reduction_strategy__ELIMINATE_SIMILAR__MERGE_MEAN ];
global FRIQ_const_reduction_strategies__all_cluster_kmeans
FRIQ_const_reduction_strategies__all_cluster_kmeans=[ ...
FRIQ_const_reduction_strategy__CLUSTER__KMEANS_REMOVE_ONE ...
FRIQ_const_reduction_strategy__CLUSTER__KMEANS_REMOVE_MANY ...
FRIQ_const_reduction_strategy__CLUSTER__KMEANS_REPLACE_ONE ...
FRIQ_const_reduction_strategy__CLUSTER__KMEANS_REPLACE_MANY ...
FRIQ_const_reduction_strategy__CLUSTER__KMEANS_BUILD_CENTROID ...
FRIQ_const_reduction_strategy__CLUSTER__KMEANS_BUILD_MINANDMAXQ ...
FRIQ_const_reduction_strategy__CLUSTER__KMEANS_BUILD_MAXABSQ ...
FRIQ_const_reduction_strategy__CLUSTER__KMEANS_BUILD_MINABSQ ];
global FRIQ_const_reduction_strategy__names
FRIQ_const_reduction_strategy__names={};
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__MIN_Q}='MIN_Q';
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__MAX_Q}='MAX_Q';
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__HALF_GROUP_REMOVAL}='HALF_GROUP_REMOVAL';
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__BUILD_MINANDMAXQ}='BUILD_MINANDMAXQ';
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__ANTECEDENT_REDUNDANCY}='ANTECEDENT_REDUNDANCY';
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__ELIMINATE_DUPLICATED__FIRST}='ELIMINATE_DUPLICATED__FIRST';
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__ELIMINATE_DUPLICATED__MINQ}= 'ELIMINATE_DUPLICATED__MINQ';
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__ELIMINATE_DUPLICATED__MAXQ}= 'ELIMINATE_DUPLICATED__MAXQ';
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__ELIMINATE_DUPLICATED__MERGE_MEAN}='ELIMINATE_DUPLICATED__MERGE_MEAN';
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__ELIMINATE_SIMILAR__FIRST}='ELIMINATE_SIMILAR__FIRST';
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__ELIMINATE_SIMILAR__MINQ}= 'ELIMINATE_SIMILAR__MINQ';
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__ELIMINATE_SIMILAR__MAXQ}= 'ELIMINATE_SIMILAR__MAXQ';
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__ELIMINATE_SIMILAR__MERGE_MEAN}='ELIMINATE_SIMILAR__MERGE_MEAN';
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__CLUSTER__KMEANS_REMOVE_ONE}= 'CLUSTER__KMEANS_REMOVE_ONE';
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__CLUSTER__KMEANS_REMOVE_MANY}='CLUSTER__KMEANS_REMOVE_MANY';
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__CLUSTER__KMEANS_REPLACE_ONE}= 'CLUSTER__KMEANS_REPLACE_ONE';
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__CLUSTER__KMEANS_REPLACE_MANY}='CLUSTER__KMEANS_REPLACE_MANY';
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__CLUSTER__KMEANS_BUILD_CENTROID}= 'CLUSTER__KMEANS_BUILD_CENTROID';
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__CLUSTER__KMEANS_BUILD_MINANDMAXQ}='CLUSTER__KMEANS_BUILD_MINANDMAXQ';
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__CLUSTER__KMEANS_BUILD_MAXABSQ}='CLUSTER__KMEANS_BUILD_MAXABSQ';
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__CLUSTER__KMEANS_BUILD_MINABSQ}='CLUSTER__KMEANS_BUILD_MINABSQ';
FRIQ_const_reduction_strategy__names{FRIQ_const_reduction_strategy__CLUSTER__HIERARCHICAL}='CLUSTER__HIERARCHICAL';