Ignore:
Timestamp:
Apr 12, 2026, 1:39:35 PM (2 weeks ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
2581f1e
Parents:
75ba2fa6
Message:

save draft of list perf fx-interaction plot

Location:
doc/theses/mike_brooks_MMath/plots
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/mike_brooks_MMath/plots/ListCommon.py

    r75ba2fa6 re35ecd0  
    372372
    373373
     374def trimPer( df, criteria ):
     375    for field, values in criteria.items():
     376        areMatches = df[ field ].isin(values)
     377        df = df[ areMatches ]
     378    return df
     379
    374380# The range from 0.9759 to 1.0247 (which is 1.05 x wide) has 1.0 in its centre.
    375381# This is the bucket with key 0.
     
    417423    tgtAccessor = 'all',
    418424    tgtInterleave = 0.0,
     425    earlyFilter = {}, # exclude from benchmarking
     426    lateFilter = {}, # exclude from output
    419427    drillOn = ['fx'],
    420428    marginalizeOn = None ):  # None means match drill-on
     
    434442                  szInc = ['SM', 'ML'],
    435443                  sExcl = [1] )
    436 
    437 
    438 #    annotateBaselines(timings)
    439 
     444   
     445    timings = trimPer( timings, earlyFilter )
    440446
    441447    options = timings.groupby(explanations)
    442 
    443448    aggregated = options.agg(
    444449        mean_op_dur_ns = ('mean_op_dur_ns', gMeanNoOutlr)
    445450    ).reset_index()
    446 
    447 
    448451    annotateBaseline(aggregated, marginalizeOn)
    449 #    annotateCommonBaselines(aggregated)
    450 
     452
     453    aggregated = trimPer( aggregated, lateFilter )
    451454
    452455    # if examining "why CFA slow" need both
     
    467470
    468471    drillgrp = aggregated.groupby(drillOn)
    469 
    470472
    471473    # print(f'measure is {measure}')
Note: See TracChangeset for help on using the changeset viewer.