-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.m
34 lines (24 loc) · 792 Bytes
/
main.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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% STRATIFIED N TIMES K-FOLD CROSS VALIDATION AND FRIEDMAN TEST IN
% EVALUATING BAYESIAN, KNN AND ENSENBLE CLASSIFIERS
%
% by: JULIANA BARCELLOS MATTOS
%
% "Image Segmentation" dataset from UCI machine learning repository
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Load data
clear all; close all; clc
load('data_input.mat')
% Global variables
k = 10;
n = 30;
% N-Times K-fold cross validation:
% generates 30 different datasets and return its hit rate
rates_matrix = zeros(n,7);
for dataset = 21:n
rates_vector = dataset_classification_results(...
segmentation_view,shape_view,rgb_view,data_labels,classes,k,dataset);
rates_matrix(dataset,:) = rates_vector;
end