-
Notifications
You must be signed in to change notification settings - Fork 9
/
SetParams.m
19 lines (19 loc) · 1.03 KB
/
SetParams.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
% Jun-Yan Zhu (junyanz at eecs dot berkeley dot edu)
% University of California, Berkeley
% Set Parameters for MCILBoost
% PARAMS = SetParams;
% MCILBoost(PARAMS);
function PARAMS = SetParams()
PARAMS.mode = 'train'; %'cross-validate'; %'cross-validate'; %'cross-validate';%'cross-validate'; %'cross-validate'; % train, test, cross-validate
PARAMS.dataFile = 'toy.data';
PARAMS.modelFile = 'toy.mcil'; % in train/test model, it's the model name in 'cross-validate' model, it's the name of the folder that stores all the data
PARAMS.resultFile = 'toy.result';
CLF.verbose = 2; % 0: none; 1: some; 2: more
CLF.softmaxType = 0; % 0: Gm, 1:Lse
CLF.numWeakClfs = 150; % number of weak classifiers
CLF.numCls = 2; % number of classes in the positive bags
PARAMS.CLF = CLF; % set classifier parameters
PARAMS.isFix = true; % if use the same data partition for cross-validation
PARAMS.nFold = 5; % #folds for cross-validation
PARAMS.thres = 0.5; % threshold for prediction
end