Optimizer_cpu>Optimizer_cpu.split_until_all_classes_within_confidence_interval (Calls: 1, Time: 6.367 sec)
Generated 28-May-2016 14:58:45 using performance time.
class method in file /home/johs/work/clustering/src/Optimizer_cpu.m
Copy to new window for comparing multiple runs
Function Name | Function Type | Calls |
AMoG_cpu | function | 1 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
35 | [o, niteration] = MoGEM(o, sam... | 9 | 5.675 s | 89.1% | ![]() |
28 | scores = score(o, weights, sam... | 9 | 0.329 s | 5.2% | ![]() |
20 | o.Sigma = cov(samples'); | 1 | 0.201 s | 3.2% | ![]() |
26 | pdfs = pdfs_from_samples(o, sa... | 9 | 0.075 s | 1.2% | ![]() |
18 | o.P = ones(1, 1, 'single'); | 1 | 0.038 s | 0.6% | ![]() |
All other lines | 0.049 s | 0.8% | ![]() | ||
Totals | 6.367 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
Optimizer_cpu>Optimizer_cpu.MoGEM | class method | 9 | 5.674 s | 89.1% | ![]() |
Optimizer_cpu>Optimizer_cpu.score | class method | 9 | 0.327 s | 5.1% | ![]() |
cov | function | 1 | 0.199 s | 3.1% | ![]() |
...pu>Optimizer_cpu.pdfs_from_samples | class method | 9 | 0.073 s | 1.1% | ![]() |
Optimizer_cpu>Optimizer_cpu.split_class | class method | 9 | 0.010 s | 0.2% | ![]() |
...pu>Optimizer_cpu.weights_from_pdfs | class method | 9 | 0.006 s | 0.1% | ![]() |
mean | function | 1 | 0.003 s | 0.1% | ![]() |
...zer_cpu.determine_least_fitting_class | class method | 9 | 0.002 s | 0.0% | ![]() |
config_cpu | function | 1 | 0.000 s | 0.0% | ![]() |
Self time (built-ins, overhead, etc.) | 0.071 s | 1.1% | ![]() | ||
Totals | 6.367 s | 100% |
Line number | Message |
Total lines in function | 25 |
Non-code lines (comments, blank lines) | 5 |
Code lines (lines that can run) | 20 |
Code lines that did run | 18 |
Code lines that did not run | 2 |
Coverage (did run/can run) | 90.00 % |
time | Calls | line | |
---|---|---|---|
14 | function [o] = split_until_all_classes_within_confidence_interval(o, samples) | ||
< 0.01 | 1 | 15 | o.nclass = 1; |
< 0.01 | 1 | 16 | [o.nfeature, o.nsample] = size(samples); |
17 | |||
0.04 | 1 | 18 | o.P = ones(1, 1, 'single'); |
0.02 | 1 | 19 | o.mu = mean(samples, 2); |
0.20 | 1 | 20 | o.Sigma = cov(samples'); |
21 | |||
< 0.01 | 1 | 22 | o.C = config_cpu(); |
23 | |||
< 0.01 | 1 | 24 | while o.nclass < o.C.MAX_CLASSES |
< 0.01 | 9 | 25 | tsplit = toc; |
0.07 | 9 | 26 | pdfs = pdfs_from_samples(o, samples); |
< 0.01 | 9 | 27 | weights = weights_from_pdfs(o, pdfs); |
0.33 | 9 | 28 | scores = score(o, weights, samples); |
29 | |||
< 0.01 | 9 | 30 | [iclass,ifeature,worst_score] = determine_least_fitting_class(o, scores); |
< 0.01 | 9 | 31 | if o.nclass >= o.C.MIN_CLASSES && worst_score <= 1.0 |
32 | break | ||
33 | end | ||
0.01 | 9 | 34 | o = split_class(o, iclass, ifeature, worst_score); |
5.68 | 9 | 35 | [o, niteration] = MoGEM(o, samples); |
< 0.01 | 9 | 36 | fprintf('%-10s %10.6f %10.6f score %7.2f class %2d feature %d nMoGEMIteration %4lu\n', 'SPLIT', tsplit, toc, worst_score, iclass-1, ifeature-1, niteration); |
< 0.01 | 9 | 37 | end |
< 0.01 | 1 | 38 | end |
Other subfunctions in this file are not included in this listing.