-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathjml.m
More file actions
24 lines (19 loc) · 706 Bytes
/
jml.m
File metadata and controls
24 lines (19 loc) · 706 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
% Machine Learning toolbox by Jingwei Too - 10/12/2020
function ML = jml(type,feat,label,opts)
switch type
case 'gmm' ; fun = @mGaussianMixtureModel;
case 'knn' ; fun = @mKNearestNeighbor;
case 'da' ; fun = @mDiscriminateAnalysis;
case 'nb' ; fun = @mNaiveBayesECOC;
case 'msvm' ; fun = @mMultiClassSupportVectorMachineECOC;
case 'svm' ; fun = @mSupportVectorMachine;
case 'dt' ; fun = @mDecisionTree;
case 'rf' ; fun = @mRandomForest;
case 'et' ; fun = @mEnsembleTree;
end
tic; ML = fun(feat,label,opts);
% Store
time = toc;
ML.t = time;
fprintf('\n Processing Time (s): %f % \n',time); fprintf('\n');
end