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
Function Name | Function Type | Calls |
cnn_train | function | 1 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
10 | model = newton(prob, prob_v, p... | 1 | 2204.788 s | 100.0% | ![]() |
4 | net = init_net(model, param); | 1 | 0.017 s | 0.0% | ![]() |
3 | model = init_model(net_config)... | 1 | 0.012 s | 0.0% | ![]() |
6 | [model.labels, ~, prob.y_mappe... | 1 | 0.010 s | 0.0% | ![]() |
17 | end | 1 | 0.000 s | 0.0% | ![]() |
All other lines | 0.000 s | 0.0% | ![]() | ||
Totals | 2204.827 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
newton | function | 1 | 2204.774 s | 100.0% | ![]() |
init_net | function | 1 | 0.015 s | 0.0% | ![]() |
train>init_model | subfunction | 1 | 0.012 s | 0.0% | ![]() |
unique | function | 1 | 0.009 s | 0.0% | ![]() |
Self time (built-ins, overhead, etc.) | 0.017 s | 0.0% | ![]() | ||
Totals | 2204.827 s | 100% |
Line number | Message |
16 | The format might not agree with the argument count. |
Total lines in function | 17 |
Non-code lines (comments, blank lines) | 4 |
Code lines (lines that can run) | 13 |
Code lines that did run | 7 |
Code lines that did not run | 6 |
Coverage (did run/can run) | 53.85 % |
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.