-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClassificationMethods.m
More file actions
25 lines (23 loc) · 895 Bytes
/
ClassificationMethods.m
File metadata and controls
25 lines (23 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
classdef ClassificationMethods
%Contains Classification Methods to be used
properties
chosenClassifier
end
methods
function obj = ClassificationMethods(methodName, datasetMapper)
switch methodName
case 'svm'
%disp('svm_OvO was chosen from ClassificationMethods');
obj.chosenClassifier = CM_SVM(datasetMapper);
case 'dt'
%disp('decision tree was chosen from ClassificationMethods');
obj.chosenClassifier = CM_DecisionTree();
case 'svm_OvA'
%disp('svm_OvA(adapted) was chosen from ClassificationMethods');
obj.chosenClassifier = CM_SVM_OvA(datasetMapper);
otherwise
error('NO VALID METHOD WAS CHOSEN');
end
end
end
end