-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo_main.m
More file actions
39 lines (28 loc) · 1.08 KB
/
demo_main.m
File metadata and controls
39 lines (28 loc) · 1.08 KB
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
%addpath(genpath('/Users/NiravMBA/Desktop/IIT Madras/Semester I/Pattern Recognition/Assignment/Assignment 5/4. Support vector machine based classifier (using linear kernel)/Digits/bosaris_toolkit'))
function [] = demo_main(test_data,type)
%,target1,nontarget1,target2,nontarget2,target3,nontarget3,target4,nontarget4,target5,nontarget5,caseno)
% To plot DET Curve
close all;
fprintf('You need to run this script in Matlab''s graphical mode to see the plots.\n');
% calculate an effective prior from target prior, Cmiss, and Cfa
prior = effective_prior(0.33,1,1);
%% Assign Target and Non Target Scores
% test_data.tar1 = target;
% test_data.non1 = nontarget;
% test_data.tar2 = target1;
% test_data.non2 = nontarget1;
%
% test_data.tar3 = target2;
% test_data.non3 = nontarget2;
%
% test_data.tar4 = target3;
% test_data.non4 = nontarget3;
%
% test_data.tar5 = target4;
% test_data.non5 = nontarget4;
%
% test_data.tar6 = target5;
% test_data.non6 = nontarget5;
%% make a DET plot for all the five cases.
demo_plot_det_for_fusion(test_data,prior,type);
end