-
Notifications
You must be signed in to change notification settings - Fork 0
/
createCNN1d7LayerHyperparamSearchRange.m
32 lines (26 loc) · 1.31 KB
/
createCNN1d7LayerHyperparamSearchRange.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
function createCNN1d7LayerHyperparamSearchRange()
% SPDX-License-Identifier: BSD-3-Clause
CLASSIFIER_NAME = "CNN1d7Layer";
% Set up data paths
beehiveDataSetup;
% Create the optimizable variables that will be used by bayesopt
optimizableParams = [
optimizableVariable("FilterSize1",[2,64],Type="integer"),...
optimizableVariable("FilterSize2",[2,64],Type="integer"),...
optimizableVariable("FilterSize3",[2,32],Type="integer"),...
optimizableVariable("FilterSize4",[2,16],Type="integer"),...
optimizableVariable("FilterSize5",[2,8],Type="integer"),...
optimizableVariable("FilterSize6",[2,8],Type="integer"),...
optimizableVariable("FilterSize7",[2,4],Type="integer"),...
optimizableVariable("NFilters1",[16,32],Type="integer"),...
optimizableVariable("NFilters2",[16,32],Type="integer"),...
optimizableVariable("NFilters3",[16,32],Type="integer"),...
optimizableVariable("NFilters4",[16,32],Type="integer"),...
optimizableVariable("NFilters5",[16,32],Type="integer"),...
optimizableVariable("NFilters6",[16,32],Type="integer"),...
optimizableVariable("NFilters7",[16,32],Type="integer"),...
optimizableVariable("FalseNegativeCost",[1 10],Type="integer")
];
save(trainingDataDir + filesep + CLASSIFIER_NAME ...
+ "HyperparameterSearchValues","optimizableParams","-v7.3");
end