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 _from_java() in sagemaker-pyspark-sdk/src/sagemaker_pyspark/wrapper.py
14
8
2
def rowToProtobuf() in sagemaker-spark-sdk/src/main/scala/com/amazonaws/services/sagemaker/sparksdk/protobuf/ProtobufConverter.scala
25
7
3
private def tryDescribe[T]() in sagemaker-spark-sdk/src/main/scala/com/amazonaws/services/sagemaker/sparksdk/SageMakerResourceCleanup.scala
11
6
1
def getImage() in sagemaker-spark-sdk/src/main/scala/com/amazonaws/services/sagemaker/sparksdk/algorithms/ImageURIProvider.scala
12
5
5
def getMiniBatchSize: Int = $() in sagemaker-spark-sdk/src/main/scala/com/amazonaws/services/sagemaker/sparksdk/algorithms/SageMakerAlgorithmParams.scala
override def fit() in sagemaker-spark-sdk/src/main/scala/com/amazonaws/services/sagemaker/sparksdk/SageMakerEstimator.scala
51
5
1
private def setFeatures() in sagemaker-spark-sdk/src/main/scala/com/amazonaws/services/sagemaker/sparksdk/protobuf/ProtobufConverter.scala
22
5
2
def labeledSchemaValidator() in sagemaker-spark-sdk/src/main/scala/com/amazonaws/services/sagemaker/sparksdk/transformation/serializers/SchemaValidators.scala
10
5
3
def _py2j() in sagemaker-pyspark-sdk/src/sagemaker_pyspark/wrapper.py
13
5
2
def __init__() in sagemaker-pyspark-sdk/src/sagemaker_pyspark/SageMakerEstimator.py
44
5
11
def setNumModels() in sagemaker-pyspark-sdk/src/sagemaker_pyspark/algorithms/LinearLearnerSageMakerEstimator.py
6
5
2
def setLearningRate() in sagemaker-pyspark-sdk/src/sagemaker_pyspark/algorithms/LinearLearnerSageMakerEstimator.py