This is a static copy of a profile report

Home

Optimizer_cpu>Optimizer_cpu.MoGEM (Calls: 9, Time: 5.674 sec)
Generated 28-May-2016 14:58:46 using performance time.
class method in file /home/johs/work/clustering/src/Optimizer_cpu.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...ll_classes_within_confidence_intervalclass method9
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
105
o = maximization(o, weights, s...
9002.799 s49.3%
103
pdfs = pdfs_from_samples(o, sa...
9002.372 s41.8%
104
weights = weights_from_pdfs(o,...
9000.360 s6.3%
108
log_likelihood = sum(log((samp...
9000.083 s1.5%
107
samplewise_total = sum(pdfs,1)...
9000.051 s0.9%
All other lines  0.009 s0.2%
Totals  5.674 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
Optimizer_cpu>Optimizer_cpu.maximizationclass method9002.795 s49.3%
...pu>Optimizer_cpu.pdfs_from_samplesclass method9002.368 s41.7%
...pu>Optimizer_cpu.weights_from_pdfsclass method9000.355 s6.3%
Self time (built-ins, overhead, etc.)  0.156 s2.8%
Totals  5.674 s100% 
Code Analyzer results
Line numberMessage
Coverage results
Show coverage for parent directory
Total lines in function15
Non-code lines (comments, blank lines)2
Code lines (lines that can run)13
Code lines that did run12
Code lines that did not run1
Coverage (did run/can run)92.31 %
Function listing
time 
Calls 
 line
 100 
        function [o, i] = MoGEM(o, samples)
< 0.01 
      9 
 101 
            log_likelihood_prev = 0.0; 
< 0.01 
      9 
 102 
            for i = 1:o.C.MAX_EM_ITERATIONS 
  2.37 
    900 
 103 
                pdfs = pdfs_from_samples(o, samples); 
  0.36 
    900 
 104 
                weights = weights_from_pdfs(o, pdfs); 
  2.80 
    900 
 105 
                o = maximization(o, weights, samples); 
 106 

  0.05 
    900 
 107 
                samplewise_total = sum(pdfs,1); 
  0.08 
    900 
 108 
                log_likelihood = sum(log((samplewise_total>0) .* samplewise_total)); 
< 0.01 
    900 
 109 
                if i >= o.C.MIN_EM_ITERATIONS && abs((log_likelihood_prev-log_likelihood) / log_likelihood) <= o.C.EM_EPSILON 
< 0.01 
      4 
 110 
                    break; 
 111 
                end
< 0.01 
    896 
 112 
                log_likelihood_prev = log_likelihood; 
< 0.01 
    896 
 113 
            end 
< 0.01 
      9 
 114 
        end 

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