This is a static copy of a profile report

Home

Function details for trainThis is a static copy of a profile report

Home

train (Calls: 1, Time: 2204.827 s)
Generated 19-Jun-2021 04:39:09 using performance time.
function in file /nfs/inm_phd/07/d07944009/2021/0618-proj6/simpleNN/MATLAB/cnn/train.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
cnn_trainfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
10
model = newton(prob, prob_v, p...
12204.788 s100.0%
4
net = init_net(model, param);
10.017 s0.0%
3
model = init_model(net_config)...
10.012 s0.0%
6
[model.labels, ~, prob.y_mappe...
10.010 s0.0%
17
end
10.000 s0.0%
All other lines  0.000 s0.0%
Totals  2204.827 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
newtonfunction12204.774 s100.0%
init_netfunction10.015 s0.0%
train>init_modelsubfunction10.012 s0.0%
uniquefunction10.009 s0.0%
Self time (built-ins, overhead, etc.)  0.017 s0.0%
Totals  2204.827 s100% 
Code Analyzer results
Line numberMessage
16The format might not agree with the argument count.
Coverage results
Show coverage for parent directory
Total lines in function17
Non-code lines (comments, blank lines)4
Code lines (lines that can run)13
Code lines that did run7
Code lines that did not run6
Coverage (did run/can run)53.85 %
Function listing
time 
Calls 
 line
   1 
function model = train(prob, prob_v, param, net_config)
   2 

  0.012 
      1 
   3
model = init_model(net_config); 
  0.017 
      1 
   4
net = init_net(model, param); 
   5 

  0.010 
      1 
   6
[model.labels, ~, prob.y_mapped] = unique(prob.y); 
   7 

< 0.001 
      1 
   8
switch param.solver 
< 0.001 
      1 
   9
	case 1 
 2204.788 
      1 
  10
		model = newton(prob, prob_v, param, model, net); 
  11 
	case 2
  12 
		model = sgd(prob, prob_v, param, model, net);
  13 
	case 3
  14 
		model = adam(prob, prob_v, param, model, net);
  15 
otherwise
  16 
	error('solver not correctly specified', param.solver);
< 0.001 
      1 
  17
end 

Other subfunctions in this file are not included in this listing.