1. Test Modules
  2. Differential Validation
    1. Feedback Validation
    2. Learning Validation
    3. Total Accuracy
    4. Frozen and Alive Status
  3. Results

Subreport: Logs for com.simiacryptus.ref.lang.ReferenceCountingBase

Test Modules

Using Seed 7132882771039156224

Differential Validation

SingleDerivativeTester.java:101 executed in 0.01 seconds (0.000 gc):

        log.info(RefString.format("Inputs: %s", prettyPrint(inputPrototype)));
        log.info(RefString.format("Inputs Statistics: %s", printStats(inputPrototype)));
        log.info(RefString.format("Output: %s", outputPrototype.prettyPrint()));
        assert outputPrototype != null;
        log.info(RefString.format("Outputs Statistics: %s", outputPrototype.getScalarStatistics()));
      },
      outputPrototype.addRef(),
      RefUtil.addRef(inputPrototype)));
Logging
Inputs: [
[ [ 0.08 ], [ 1.208 ], [ 1.108 ], [ 1.032 ], [ 1.612 ], [ 1.552 ] ],
[ [ 0.7 ], [ -1.72 ], [ 0.028 ], [ 0.3 ], [ 1.64 ], [ 1.876 ] ],
[ [ -0.128 ], [ -1.028 ], [ -0.712 ], [ 0.636 ], [ 0.392 ], [ -0.408 ] ],
[ [ 0.496 ], [ -0.384 ], [ 1.048 ], [ -0.176 ], [ 0.092 ], [ -0.384 ] ],
[ [ -0.608 ], [ -0.852 ], [ -1.616 ], [ 1.556 ], [ -0.556 ], [ -1.572 ] ],
[ [ 1.764 ], [ 1.912 ], [ 1.356 ], [ 0.788 ], [ -1.476 ], [ -1.516 ] ],
[ [ 0.048 ], [ -1.688 ], [ 1.512 ], [ -0.768 ], [ 1.704 ], [ -0.636 ] ],
[ [ 1.524 ], [ -0.804 ], [ 1.556 ], [ -0.068 ], [ -1.228 ], [ -1.492 ] ]
]
Inputs Statistics: {meanExponent=-0.15927984553930932, negative=22, min=-1.72, max=1.912, mean=0.1604166666666667, count=48, sum=7.700000000000002, positive=26, stdDev=1.1368718015042663, zeros=0}
Output: [
[ [ 0.08 ], [ 1.208 ], [ 1.108 ] ],
[ [ 0.7 ], [ -1.72 ], [ 0.028 ] ],
[ [ -0.128 ], [ -1.028 ], [ -0.712 ] ],
[ [ 0.496 ], [ -0.384 ], [ 1.048 ] ]
]
Outputs Statistics: {meanExponent=-0.3475551282180908, negative=5, min=-1.72, max=1.208, mean=0.058, count=12, sum=0.6960000000000001, positive=7, stdDev=0.8743584314608436, zeros=0}

Feedback Validation

We validate the agreement between the implemented derivative of the inputs apply finite difference estimations:

SingleDerivativeTester.java:117 executed in 0.54 seconds (0.000 gc):

        return testFeedback(
            statistics,
            component.addRef(),
            RefUtil.addRef(inputPrototype),
            outputPrototype.addRef());
      },
      outputPrototype.addRef(),
      RefUtil.addRef(inputPrototype),
      component.addRef()));
Logging
Feedback for input 0
Inputs Values: [
[ [ 0.08 ], [ 1.208 ], [ 1.108 ], [ 1.032 ], [ 1.612 ], [ 1.552 ] ],
[ [ 0.7 ], [ -1.72 ], [ 0.028 ], [ 0.3 ], [ 1.64 ], [ 1.876 ] ],
[ [ -0.128 ], [ -1.028 ], [ -0.712 ], [ 0.636 ], [ 0.392 ], [ -0.408 ] ],
[ [ 0.496 ], [ -0.384 ], [ 1.048 ], [ -0.176 ], [ 0.092 ], [ -0.384 ] ],
[ [ -0.608 ], [ -0.852 ], [ -1.616 ], [ 1.556 ], [ -0.556 ], [ -1.572 ] ],
[ [ 1.764 ], [ 1.912 ], [ 1.356 ], [ 0.788 ], [ -1.476 ], [ -1.516 ] ],
[ [ 0.048 ], [ -1.688 ], [ 1.512 ], [ -0.768 ], [ 1.704 ], [ -0.636 ] ],
[ [ 1.524 ], [ -0.804 ], [ 1.556 ], [ -0.068 ], [ -1.228 ], [ -1.492 ] ]
]
Value Statistics: {meanExponent=-0.15927984553930932, negative=22, min=-1.72, max=1.912, mean=0.1604166666666667, count=48, sum=7.700000000000002, positive=26, stdDev=1.1368718015042663, zeros=0}
Implemented Feedback: [ [ 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], ... ]
Implemented Statistics: {meanExponent=0.0, negative=0, min=0.0, max=1.0, mean=0.020833333333333332, count=576, sum=12.0, positive=12, stdDev=0.1428261375083551, zeros=564}
Measured Feedback: [ [ 1.0000000000000286, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.9999999999998899, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.9999999999998899, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.9999999999998899, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], ... ]
Measured Statistics: {meanExponent=-3.903919027096778E-14, negative=0, min=0.0, max=1.0000000000000286, mean=0.020833333333331462, count=576, sum=11.999999999998922, positive=12, stdDev=0.14282613750834225, zeros=564}
Feedback Error: [ [ 2.864375403532904E-14, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, -1.1013412404281553E-13, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, -1.1013412404281553E-13, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, -1.1013412404281553E-13, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], ... ]
Error Statistics: {meanExponent=-13.112162254580335, negative=11, min=-1.1013412404281553E-13, max=2.864375403532904E-14, mean=-1.8727303658434066E-15, count=576, sum=-1.078692690725802E-12, positive=1, stdDev=1.4441666627577286E-14, zeros=564}

Returns

    {
      "absoluteTol" : {
        "count" : 576,
        "sum" : 1.1359801987964602E-12,
        "min" : 0.0,
        "max" : 1.1013412404281553E-13,
        "sumOfSquare" : 1.2215165990701334E-25,
        "standardDeviation" : 1.4428420880634934E-14,
        "average" : 1.9721878451327434E-15
      },
      "relativeTol" : {
        "count" : 12,
        "sum" : 5.679900993982603E-13,
        "min" : 2.9976021664879317E-15,
        "max" : 5.50670620214108E-14,
        "sumOfSquare" : 3.0537914976756675E-26,
        "standardDeviation" : 1.7448779547147764E-14,
        "average" : 4.7332508283188356E-14
      }
    }

Learning Validation

We validate the agreement between the implemented derivative of the internal weights apply finite difference estimations:

SingleDerivativeTester.java:133 executed in 0.00 seconds (0.000 gc):

        return testLearning(
            statistics,
            component.addRef(),
            RefUtil.addRef(inputPrototype),
            outputPrototype.addRef());
      },
      outputPrototype.addRef(),
      RefUtil.addRef(inputPrototype),
      component.addRef()));

Returns

    {
      "absoluteTol" : {
        "count" : 576,
        "sum" : 1.1359801987964602E-12,
        "min" : 0.0,
        "max" : 1.1013412404281553E-13,
        "sumOfSquare" : 1.2215165990701334E-25,
        "standardDeviation" : 1.4428420880634934E-14,
        "average" : 1.9721878451327434E-15
      },
      "relativeTol" : {
        "count" : 12,
        "sum" : 5.679900993982603E-13,
        "min" : 2.9976021664879317E-15,
        "max" : 5.50670620214108E-14,
        "sumOfSquare" : 3.0537914976756675E-26,
        "standardDeviation" : 1.7448779547147764E-14,
        "average" : 4.7332508283188356E-14
      }
    }

Total Accuracy

The overall agreement accuracy between the implemented derivative and the finite difference estimations:

SingleDerivativeTester.java:148 executed in 0.00 seconds (0.000 gc):

    //log.info(String.format("Component: %s\nInputs: %s\noutput=%s", component, Arrays.toStream(inputPrototype), outputPrototype));
    log.info(RefString.format("Finite-Difference Derivative Accuracy:"));
    log.info(RefString.format("absoluteTol: %s", statistics.absoluteTol));
    log.info(RefString.format("relativeTol: %s", statistics.relativeTol));
Logging
Finite-Difference Derivative Accuracy:
absoluteTol: 1.9722e-15 +- 1.4428e-14 [0.0000e+00 - 1.1013e-13] (576#)
relativeTol: 4.7333e-14 +- 1.7449e-14 [2.9976e-15 - 5.5067e-14] (12#)

Frozen and Alive Status

SingleDerivativeTester.java:156 executed in 0.01 seconds (0.000 gc):

    testFrozen(component.addRef(), RefUtil.addRef(inputPrototype));
    testUnFrozen(component.addRef(), RefUtil.addRef(inputPrototype));

LayerTests.java:425 executed in 0.00 seconds (0.000 gc):

    throwException(exceptions.addRef());

Results

classdetailsresult
com.simiacryptus.mindseye.test.unit.SingleDerivativeTesterToleranceStatistics{absoluteTol=1.9722e-15 +- 1.4428e-14 [0.0000e+00 - 1.1013e-13] (576#), relativeTol=4.7333e-14 +- 1.7449e-14 [2.9976e-15 - 5.5067e-14] (12#)}OK
  {
    "result": "OK",
    "performance": {
      "execution_time": "0.762",
      "gc_time": "0.149"
    },
    "created_on": 1586736588509,
    "file_name": "derivativeTest",
    "report": {
      "simpleName": "UL",
      "canonicalName": "com.simiacryptus.mindseye.layers.cudnn.ImgTileSelectLayerTest.UL",
      "link": "https://github.com/SimiaCryptus/mindseye-cudnn/tree/59d5b3318556370acb2d83ee6ec123ce0fc6974f/src/test/java/com/simiacryptus/mindseye/layers/cudnn/ImgTileSelectLayerTest.java",
      "javaDoc": ""
    },
    "archive": "s3://code.simiacrypt.us/tests/com/simiacryptus/mindseye/layers/cudnn/ImgTileSelectLayer/UL/derivativeTest/202004130948",
    "id": "4ee05859-d4ed-4e9b-877a-6fffa454f6f0",
    "report_type": "Components",
    "display_name": "Derivative Validation",
    "target": {
      "simpleName": "ImgTileSelectLayer",
      "canonicalName": "com.simiacryptus.mindseye.layers.cudnn.ImgTileSelectLayer",
      "link": "https://github.com/SimiaCryptus/mindseye-cudnn/tree/59d5b3318556370acb2d83ee6ec123ce0fc6974f/src/main/java/com/simiacryptus/mindseye/layers/cudnn/ImgTileSelectLayer.java",
      "javaDoc": ""
    }
  }