|
a |
|
b/classification/RUSboost/runEnsembles.m |
|
|
1 |
%% Script Description |
|
|
2 |
% A script that runs both RUSBoosting and plots the final ensemble |
|
|
3 |
% error. |
|
|
4 |
|
|
|
5 |
|
|
|
6 |
%% Setup the workspace and load the data |
|
|
7 |
|
|
|
8 |
%clean up the variables and remove from the console window. |
|
|
9 |
clear all; |
|
|
10 |
clc; |
|
|
11 |
close all; |
|
|
12 |
|
|
|
13 |
addpath('data'); |
|
|
14 |
%load radiologist's dataset |
|
|
15 |
load('large slice radiologists.mat'); |
|
|
16 |
X = Xlargest; |
|
|
17 |
%round the averaged ratings |
|
|
18 |
Y = round(Yaverage); |
|
|
19 |
|
|
|
20 |
%% Run RUSBoost |
|
|
21 |
|
|
|
22 |
[allModels, allTraining, allTesting] = runRUSBoosting(X,Y); |
|
|
23 |
|
|
|
24 |
%% Plot the error for both training the testing |
|
|
25 |
|
|
|
26 |
tic |
|
|
27 |
plotEnsError( allModels,allTesting,X,Y,'Testing Accuracy'); |
|
|
28 |
plotEnsError( allModels,allTraining,X,Y,'Training Accuracy'); |
|
|
29 |
toc |