facebookresearch / PoincareMaps
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 58 units with 1,264 lines of code in units (74.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (234 lines of code)
    • 12 simple units (444 lines of code)
    • 41 very simple units (586 lines of code)
0% | 0% | 18% | 35% | 46%
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% | 18% | 35% | 46%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 0% | 18% | 35% | 46%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def plot_pseudotime()
in poincare_maps.py
44 19 9
def plot_markers_radius()
in poincare_maps.py
38 16 6
def plot_poincare_disc()
in poincare_maps.py
66 15 17
def plot_markers()
in poincare_maps.py
36 11 7
def train()
in train.py
50 11 8
40 10 6
def plotPoincareDisc()
in visualize.py
72 10 12
def forward()
in model.py
28 10 2
def kMedoids()
in kmedoids.py
43 10 3
27 8 10
def plot_dtw_comparison()
in interpolation.py
61 8 18
def plot2D()
in visualize.py
36 7 11
def get_quality_metrics()
in embedding_quality_score.py
30 6 7
def plot()
in poincare_maps.py
25 6 19
def detect_lineages()
in poincare_maps.py
17 6 5
def plot_distances()
in poincare_maps.py
28 6 11
37 6 11
def step()
in rsgd.py
12 5 2
def get_coRanking()
in embedding_quality_score.py
10 5 2
def __init__()
in model.py
30 5 9