aws / sagemaker-spark
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 571 units with 4,172 lines of code in units (57.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (43 lines of code)
    • 6 simple units (156 lines of code)
    • 564 very simple units (3,973 lines of code)
0% | 0% | 1% | 3% | 95%
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
scala0% | 0% | 2% | 7% | 89%
py0% | 0% | 0% | <1% | 99%
java0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
sagemaker-spark-sdk/src/main/scala0% | 0% | 2% | 7% | 89%
sagemaker-pyspark-sdk/src/sagemaker_pyspark0% | 0% | 0% | 2% | 97%
sagemaker-pyspark-sdk/src/sagemaker_pyspark/algorithms0% | 0% | 0% | 0% | 100%
sagemaker-pyspark-sdk/src/sagemaker_pyspark/transformation0% | 0% | 0% | 0% | 100%
sagemaker-pyspark-sdk0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private def setFeatures()
in sagemaker-spark-sdk/src/main/scala/com/amazonaws/services/sagemaker/sparksdk/protobuf/ProtobufConverter.scala
43 11 2
private def awaitTrainingCompletion()
in sagemaker-spark-sdk/src/main/scala/com/amazonaws/services/sagemaker/sparksdk/SageMakerEstimator.scala
36 10 1
private def awaitEndpointCompletion()
in sagemaker-spark-sdk/src/main/scala/com/amazonaws/services/sagemaker/sparksdk/SageMakerModel.scala
33 9 1
private[sparksdk] def resolveS3Path()
in sagemaker-spark-sdk/src/main/scala/com/amazonaws/services/sagemaker/sparksdk/SageMakerEstimator.scala
37 9 3
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
20 5 1
private[sparksdk] def makeHyperParameters()
in sagemaker-spark-sdk/src/main/scala/com/amazonaws/services/sagemaker/sparksdk/SageMakerEstimator.scala
10 5 0
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
6 5 2
def setPositiveExampleWeightMult()
in sagemaker-pyspark-sdk/src/sagemaker_pyspark/algorithms/LinearLearnerSageMakerEstimator.py
8 5 2
def setCenterFactor()
in sagemaker-pyspark-sdk/src/sagemaker_pyspark/algorithms/KMeansSageMakerEstimator.py
6 5 2
def setTrialNum()
in sagemaker-pyspark-sdk/src/sagemaker_pyspark/algorithms/KMeansSageMakerEstimator.py
6 5 2