facebookresearch / fisher_information_loss
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 61 units with 1,118 lines of code in units (80.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (220 lines of code)
    • 12 simple units (415 lines of code)
    • 45 very simple units (483 lines of code)
0% | 0% | 19% | 37% | 43%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
py0% | 0% | 19% | 37% | 43%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 0% | 26% | 33% | 39%
scripts0% | 0% | 0% | 46% | 53%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def __init__()
in dataloading.py
65 25 6
def line_plot()
in plotting.py
37 14 15
def run_inversion()
in private_model_inversion.py
54 11 4
def main()
in fisher_experiment.py
64 11 1
def private_inversion_accuracy()
in scripts/make_figures.py
51 10 2
def __init__()
in dataloading.py
29 8 5
def run_inversion()
in model_inversion.py
32 8 3
def main()
in reweighted.py
75 8 1
def main()
in scripts/make_figures.py
20 8 1
def pca()
in dataloading.py
26 7 3
def fredrikson14_inverter()
in model_inversion.py
41 7 6
def main()
in model_inversion.py
19 7 1
def private_mse_and_fil()
in scripts/make_figures.py
61 7 2
def main()
in private_model_inversion.py
22 7 1
def load_datasampler()
in dataloading.py
21 6 4
def get_weights()
in reweighted.py
18 6 3
def train()
in models.py
23 5 5
def __init__()
in model_inversion.py
23 5 7
def view_images()
in scripts/make_figures.py
25 5 4
def irfil_inversion()
in scripts/make_figures.py
51 5 3