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).
def main() in #U5b9e#U8df5#U6848#U4f8b/B09-#U624b#U5199#U7b97#U5f0f#U8ba1#U7b97#U5668/src/tensorflow_model/mnist_extension.py
194
28
1
def train() in #U57fa#U7840#U6559#U7a0b/A2-#U795e#U7ecf#U7f51#U7edc#U57fa#U672c#U539f#U7406/#U7b2c7#U6b65 - #U6df1#U5ea6#U795e#U7ecf#U7f51#U7edc/src/ch15-DnnOptimization/MiniFramework/NeuralNet_4_1.py
33
20
4
def train() in #U57fa#U7840#U6559#U7a0b/A2-#U795e#U7ecf#U7f51#U7edc#U57fa#U672c#U539f#U7406/#U7b2c7#U6b65 - #U6df1#U5ea6#U795e#U7ecf#U7f51#U7edc/src/ch16-DnnRegularization/MiniFramework/NeuralNet_4_2.py
37
20
4
def train() in #U57fa#U7840#U6559#U7a0b/A2-#U795e#U7ecf#U7f51#U7edc#U57fa#U672c#U539f#U7406/#U7b2c8#U6b65 - #U5377#U79ef#U795e#U7ecf#U7f51#U7edc/src/ch17-CNNBasic/MiniFramework/NeuralNet_4_2.py
35
20
4
def train() in #U57fa#U7840#U6559#U7a0b/A2-#U795e#U7ecf#U7f51#U7edc#U57fa#U672c#U539f#U7406/#U7b2c8#U6b65 - #U5377#U79ef#U795e#U7ecf#U7f51#U7edc/src/ch18-CNNModel/MiniFramework/NeuralNet_4_2.py
33
20
4
def train() in #U57fa#U7840#U6559#U7a0b/A2-#U795e#U7ecf#U7f51#U7edc#U57fa#U672c#U539f#U7406/#U7b2c9#U6b65 - #U5faa#U73af#U795e#U7ecf#U7f51#U7edc/src/ch19-RNNBasic/MiniFramework/NeuralNet_4_2.py
35
20
4
def main() in #U5b9e#U8df5#U9879#U76ee/2019_MSC_#U9ec4#U91d1#U70b9/#U5fae#U8f6f#U9ec4#U91d1#U70b9#U7a0b#U5e8f#U5de5#U5177/OnlineGame/BotDemoInPython/RLBotDemo.py
86
19
3
def train() in #U57fa#U7840#U6559#U7a0b/A2-#U795e#U7ecf#U7f51#U7edc#U57fa#U672c#U539f#U7406/#U7b2c7#U6b65 - #U6df1#U5ea6#U795e#U7ecf#U7f51#U7edc/src/ch14-DnnBasic/MiniFramework/NeuralNet_4_0.py
31
18
4
private void writeArea_MouseUp() in #U5b9e#U8df5#U6848#U4f8b/B09-#U624b#U5199#U7b97#U5f0f#U8ba1#U7b97#U5668/src/extended_mnist_calculator/MNIST.App/MainWindow.cs
124
18
2
def batchnorm_forward() in #U57fa#U7840#U6559#U7a0b/A2-#U795e#U7ecf#U7f51#U7edc#U57fa#U672c#U539f#U7406/#U7b2c7#U6b65 - #U6df1#U5ea6#U795e#U7ecf#U7f51#U7edc/src/ch15-DnnOptimization/Level5_BatchNormTest.py
33
16
4
def Add() in #U57fa#U7840#U6559#U7a0b/A2-#U795e#U7ecf#U7f51#U7edc#U57fa#U672c#U539f#U7406/#U7b2c7#U6b65 - #U6df1#U5ea6#U795e#U7ecf#U7f51#U7edc/src/ch16-DnnRegularization/MiniFramework/TrainingHistory_3_0.py
27
16
8
def Add() in #U57fa#U7840#U6559#U7a0b/A2-#U795e#U7ecf#U7f51#U7edc#U57fa#U672c#U539f#U7406/#U7b2c8#U6b65 - #U5377#U79ef#U795e#U7ecf#U7f51#U7edc/src/ch17-CNNBasic/MiniFramework/TrainingHistory_3_0.py
27
16
8
def Add() in #U57fa#U7840#U6559#U7a0b/A2-#U795e#U7ecf#U7f51#U7edc#U57fa#U672c#U539f#U7406/#U7b2c8#U6b65 - #U5377#U79ef#U795e#U7ecf#U7f51#U7edc/src/ch18-CNNModel/MiniFramework/TrainingHistory_3_0.py
27
16
8
def Add() in #U57fa#U7840#U6559#U7a0b/A2-#U795e#U7ecf#U7f51#U7edc#U57fa#U672c#U539f#U7406/#U7b2c9#U6b65 - #U5faa#U73af#U795e#U7ecf#U7f51#U7edc/src/ch19-RNNBasic/MiniFramework/TrainingHistory_3_0.py
27
16
8
def Add() in #U57fa#U7840#U6559#U7a0b/A2-#U795e#U7ecf#U7f51#U7edc#U57fa#U672c#U539f#U7406/#U7b2c9#U6b65 - #U5faa#U73af#U795e#U7ecf#U7f51#U7edc/src/ch20-RNNModel/MiniFramework/TrainingHistory_3_0.py
27
16
8
def train() in #U57fa#U7840#U6559#U7a0b/A2-#U795e#U7ecf#U7f51#U7edc#U57fa#U672c#U539f#U7406/#U7b2c4#U6b65 - #U975e#U7ebf#U6027#U56de#U5f52/src/ch09-NonLinearRegression/HelperClass2/NeuralNet_2_0.py
27
15
4
def train() in #U57fa#U7840#U6559#U7a0b/A2-#U795e#U7ecf#U7f51#U7edc#U57fa#U672c#U539f#U7406/#U7b2c5#U6b65 - #U975e#U7ebf#U6027#U5206#U7c7b/src/ch10-NonLinearBinaryClassification/HelperClass2/NeuralNet_2_1.py
27
15
4
def train() in #U57fa#U7840#U6559#U7a0b/A2-#U795e#U7ecf#U7f51#U7edc#U57fa#U672c#U539f#U7406/#U7b2c5#U6b65 - #U975e#U7ebf#U6027#U5206#U7c7b/src/ch11-NonLinearMultipleClassification/HelperClass2/NeuralNet_2_2.py
27
15
4
def train() in #U57fa#U7840#U6559#U7a0b/A2-#U795e#U7ecf#U7f51#U7edc#U57fa#U672c#U539f#U7406/#U7b2c5#U6b65 - #U975e#U7ebf#U6027#U5206#U7c7b/src/ch12-MultipleLayerNetwork/HelperClass2/NeuralNet_3_0.py
31
15
4
def train() in #U57fa#U7840#U6559#U7a0b/A2-#U795e#U7ecf#U7f51#U7edc#U57fa#U672c#U539f#U7406/#U7b2c6#U6b65 - #U6a21#U578b#U90e8#U7f72/src/ch13-ModelInference/HelperClass2/NeuralNet_3_0.py