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 2221471000518354944

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.028 ], [ -1.616 ], [ -0.768 ], [ 1.552 ], [ -0.032 ], [ 1.652 ], [ -0.368 ], [ -1.552 ], [ -0.888 ] ],
[ [ 0.7 ], [ -0.384 ], [ 1.356 ], [ -0.068 ], [ 1.876 ], [ -0.892 ], [ -1.424 ], [ -1.16 ], [ 0.016 ], [ -1.256 ] ],
[ [ -0.128 ], [ -0.852 ], [ 1.512 ], [ 1.612 ], [ -0.408 ], [ 1.62 ], [ -0.464 ], [ -0.316 ], [ 1.288 ], [ 1.916 ] ],
[ [ 0.496 ], [ 1.912 ], [ 1.556 ], [ 1.64 ], [ -0.384 ], [ -1.856 ], [ -0.012 ], [ 1.156 ], [ 1.628 ], [ -1.724 ] ],
[ [ -0.608 ], [ -1.688 ], [ 1.032 ], [ 0.392 ], [ -1.572 ], [ 0.996 ], [ -0.472 ], [ 0.972 ], [ -1.564 ], [ -1.664 ] ],
[ [ 1.764 ], [ -0.804 ], [ 0.3 ], [ 0.092 ], [ -1.516 ], [ 0.048 ], [ -0.504 ], [ -1.116 ], [ -1.764 ], [ 0.82 ] ],
[ [ 0.048 ], [ 1.108 ], [ 0.636 ], [ -0.556 ], [ -0.636 ], [ -1.832 ], [ -1.156 ], [ 0.52 ], [ 0.692 ], [ -1.248 ] ],
[ [ 1.524 ], [ 0.028 ], [ -0.176 ], [ -1.476 ], [ -1.492 ], [ 1.368 ], [ 0.184 ], [ -1.456 ], [ 1.628 ], [ 1.324 ] ],
[ [ 1.208 ], [ -0.712 ], [ 1.556 ], [ 1.704 ], [ -0.804 ], [ -1.54 ], [ 1.98 ], [ -2.0 ], [ -1.484 ], [ 0.344 ] ],
[ [ -1.72 ], [ 1.048 ], [ 0.788 ], [ -1.228 ], [ 0.148 ], [ -0.876 ], [ -0.628 ], [ 1.42 ], [ 1.352 ], [ -1.34 ] ]
]
Inputs Statistics: {meanExponent=-0.13856456767882924, negative=52, min=-2.0, max=1.98, mean=-0.026199999999999984, count=100, sum=-2.6199999999999983, positive=48, stdDev=1.1910473206384373, zeros=0}
Output: [
[ [ 0.04756828231683131 ], [ -0.6112476124425719 ], [ -0.9608605296461656 ], [ -0.456653512073526 ], [ 0.9228080505064863 ], [ -0.019027313693913767 ], [ 0.9822649717863566 ], [ -0.21881388691564965 ], [ -0.9228080505064863 ], [ -0.5280048364014432 ] ],
[ [ 0.4162209606398589 ], [ -0.22832751356860514 ], [ 0.8062713050968423 ], [ -0.040433040507874676 ], [ 1.1154468314260164 ], [ -0.530383208243174 ], [ -0.8467025889906583 ], [ -0.6897331659261756 ], [ 0.009513656901755548 ], [ -0.7468132323034381 ] ],
[ [ -0.0761092460078702 ], [ -0.5065994729242834 ], [ 0.8990251642287194 ], [ 0.9584822548155258 ], [ -0.24259794858193123 ], [ 0.9632388037850249 ], [ -0.27589560518659956 ], [ -0.18789458345243606 ], [ 0.7658398534407879 ], [ 1.1392290500142432 ] ],
[ [ 0.2949228203528479 ], [ 1.1368508318179824 ], [ 0.9251863355083834 ], [ 0.9751301640426929 ], [ -0.22832751356860514 ], [ -1.1035556919101397 ], [ -0.0071352426823102656 ], [ 0.687354823455615 ], [ 0.9679953499805541 ], [ -1.0250736829717475 ] ],
[ [ -0.36151796065997477 ], [ -1.0036693566442432 ], [ 0.613625969900042 ], [ 0.23308432591556102 ], [ -0.934699468837859 ], [ 0.5922207370834685 ], [ -0.2806524102042736 ], [ 0.5779505626078263 ], [ -0.929942903512168 ], [ -0.9893997731653199 ] ],
[ [ 1.0488561976153483 ], [ -0.47805894254584613 ], [ 0.17838094684328257 ], [ 0.054703523817545514 ], [ -0.9014034557974431 ], [ 0.028540970266877345 ], [ -0.2996796220552254 ], [ -0.6635713718140697 ], [ -1.0488561976153483 ], [ 0.4875724583252749 ] ],
[ [ 0.028540970266877345 ], [ 0.6588146756978662 ], [ 0.37816671531951773 ], [ -0.3305988114710963 ], [ -0.37816671531951773 ], [ -1.089286298291393 ], [ -0.687354823455615 ], [ 0.30919322285706347 ], [ 0.41146418402643836 ], [ -0.742056571607985 ] ],
[ [ 0.9061600369862439 ], [ 0.016648899512142563 ], [ -0.1046502018079055 ], [ -0.8776205111886871 ], [ -0.8871336967103519 ], [ 0.8134062499787331 ], [ 0.10940702679961926 ], [ -0.8657290150826662 ], [ 0.9679953499805541 ], [ 0.7872447599957026 ] ],
[ [ 0.718273236348913 ], [ -0.4233561233081394 ], [ 0.9251863355083834 ], [ 1.0131823978677397 ], [ -0.47805894254584613 ], [ -0.9156731915213202 ], [ 1.177280428445887 ], [ -1.1891714400378928 ], [ -0.8823771052200818 ], [ 0.204543442244099 ] ],
[ [ -1.0226954274201088 ], [ 0.6231393952947948 ], [ 0.46854542125925536 ], [ -0.7301649105497184 ], [ 0.08800131205334621 ], [ -0.5208697186021584 ], [ -0.3734099296096363 ], [ 0.8443242829679839 ], [ 0.8038929889729446 ], [ -0.7967580371354201 ] ]
]
Outputs Statistics: {meanExponent=-0.3643416872635125, negative=52, min=-1.1891714400378928, max=1.177280428445887, mean=-0.01557883877367061, count=100, sum=-1.557883877367061, positive=48, stdDev=0.7081883552914396, zeros=0}

Feedback Validation

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

SingleDerivativeTester.java:117 executed in 2.94 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.028 ], [ -1.616 ], [ -0.768 ], [ 1.552 ], [ -0.032 ], [ 1.652 ], [ -0.368 ], [ -1.552 ], [ -0.888 ] ],
[ [ 0.7 ], [ -0.384 ], [ 1.356 ], [ -0.068 ], [ 1.876 ], [ -0.892 ], [ -1.424 ], [ -1.16 ], [ 0.016 ], [ -1.256 ] ],
[ [ -0.128 ], [ -0.852 ], [ 1.512 ], [ 1.612 ], [ -0.408 ], [ 1.62 ], [ -0.464 ], [ -0.316 ], [ 1.288 ], [ 1.916 ] ],
[ [ 0.496 ], [ 1.912 ], [ 1.556 ], [ 1.64 ], [ -0.384 ], [ -1.856 ], [ -0.012 ], [ 1.156 ], [ 1.628 ], [ -1.724 ] ],
[ [ -0.608 ], [ -1.688 ], [ 1.032 ], [ 0.392 ], [ -1.572 ], [ 0.996 ], [ -0.472 ], [ 0.972 ], [ -1.564 ], [ -1.664 ] ],
[ [ 1.764 ], [ -0.804 ], [ 0.3 ], [ 0.092 ], [ -1.516 ], [ 0.048 ], [ -0.504 ], [ -1.116 ], [ -1.764 ], [ 0.82 ] ],
[ [ 0.048 ], [ 1.108 ], [ 0.636 ], [ -0.556 ], [ -0.636 ], [ -1.832 ], [ -1.156 ], [ 0.52 ], [ 0.692 ], [ -1.248 ] ],
[ [ 1.524 ], [ 0.028 ], [ -0.176 ], [ -1.476 ], [ -1.492 ], [ 1.368 ], [ 0.184 ], [ -1.456 ], [ 1.628 ], [ 1.324 ] ],
[ [ 1.208 ], [ -0.712 ], [ 1.556 ], [ 1.704 ], [ -0.804 ], [ -1.54 ], [ 1.98 ], [ -2.0 ], [ -1.484 ], [ 0.344 ] ],
[ [ -1.72 ], [ 1.048 ], [ 0.788 ], [ -1.228 ], [ 0.148 ], [ -0.876 ], [ -0.628 ], [ 1.42 ], [ 1.352 ], [ -1.34 ] ]
]
Value Statistics: {meanExponent=-0.13856456767882924, negative=52, min=-2.0, max=1.98, mean=-0.026199999999999984, count=100, sum=-2.6199999999999983, positive=48, stdDev=1.1910473206384373, zeros=0}
Implemented Feedback: [ [ 0.5946034718784562, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.5945970020439834, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.5946033383067575, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.594600266168421, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.5945986119486084, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.5945619293164042, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5946035266771132, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.594572485784868, ... ], ... ]
Implemented Statistics: {meanExponent=-0.22578636531294397, negative=0, min=0.0, max=0.5946035555748451, mean=0.005945845702054104, count=10000, sum=59.45845702054104, positive=100, stdDev=0.05916041778567161, zeros=9900}
Measured Feedback: [ [ 0.5946034717714543, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.5945970011067558, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.5946033384779392, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.594600265504952, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.5945986127620095, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.594561926956505, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5946035266128635, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5945724837486122, ... ], ... ]
Measured Statistics: {meanExponent=-0.22578636528749754, negative=0, min=0.0, max=0.5946035555908554, mean=0.0059458457024025154, count=10000, sum=59.45845702402515, positive=100, stdDev=0.059160417789138525, zeros=9900}
Feedback Error: [ [ -1.0700185182344057E-10, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, -9.372275178165523E-10, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 1.7118173545327409E-10, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, -6.634689464490862E-10, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 8.134011242333372E-10, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, -2.3598991649720347E-9, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -6.424971665808243E-11, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -2.036255830617506E-9, ... ], ... ]
Error Statistics: {meanExponent=-9.01218650885594, negative=48, min=-2.6464909153034455E-9, max=2.6774308325983043E-9, mean=3.4841036722355055E-13, count=10000, sum=3.4841036722355057E-9, positive=52, stdDev=1.5937616093816308E-10, zeros=9900}

Returns

    {
      "absoluteTol" : {
        "count" : 10000,
        "sum" : 1.3886766025983377E-7,
        "min" : 0.0,
        "max" : 2.6774308325983043E-9,
        "sumOfSquare" : 2.540088206517128E-16,
        "standardDeviation" : 1.5877039961690237E-10,
        "average" : 1.3886766025983377E-11
      },
      "relativeTol" : {
        "count" : 100,
        "sum" : 1.1677871412486175E-7,
        "min" : 1.346300744688671E-11,
        "max" : 2.2516446203475385E-9,
        "sumOfSquare" : 1.7963054611812947E-16,
        "standardDeviation" : 6.577071186445199E-10,
        "average" : 1.1677871412486174E-9
      }
    }

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" : 10000,
        "sum" : 1.3886766025983377E-7,
        "min" : 0.0,
        "max" : 2.6774308325983043E-9,
        "sumOfSquare" : 2.540088206517128E-16,
        "standardDeviation" : 1.5877039961690237E-10,
        "average" : 1.3886766025983377E-11
      },
      "relativeTol" : {
        "count" : 100,
        "sum" : 1.1677871412486175E-7,
        "min" : 1.346300744688671E-11,
        "max" : 2.2516446203475385E-9,
        "sumOfSquare" : 1.7963054611812947E-16,
        "standardDeviation" : 6.577071186445199E-10,
        "average" : 1.1677871412486174E-9
      }
    }

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.3887e-11 +- 1.5877e-10 [0.0000e+00 - 2.6774e-09] (10000#)
relativeTol: 1.1678e-09 +- 6.5771e-10 [1.3463e-11 - 2.2516e-09] (100#)

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.3887e-11 +- 1.5877e-10 [0.0000e+00 - 2.6774e-09] (10000#), relativeTol=1.1678e-09 +- 6.5771e-10 [1.3463e-11 - 2.2516e-09] (100#)}OK
  {
    "result": "OK",
    "performance": {
      "execution_time": "3.637",
      "gc_time": "0.627"
    },
    "created_on": 1586745400986,
    "file_name": "derivativeTest",
    "report": {
      "simpleName": "LRNLayerTest",
      "canonicalName": "com.simiacryptus.mindseye.layers.cudnn.LRNLayerTest",
      "link": "https://github.com/SimiaCryptus/mindseye-cudnn/tree/59d5b3318556370acb2d83ee6ec123ce0fc6974f/src/test/java/com/simiacryptus/mindseye/layers/cudnn/LRNLayerTest.java",
      "javaDoc": ""
    },
    "archive": "s3://code.simiacrypt.us/tests/com/simiacryptus/mindseye/layers/cudnn/LRNLayer/LRNLayerTest/derivativeTest/202004133640",
    "id": "c3e9d72d-5048-4a49-9b3e-d55cfe89dcee",
    "report_type": "Components",
    "display_name": "Derivative Validation",
    "target": {
      "simpleName": "LRNLayer",
      "canonicalName": "com.simiacryptus.mindseye.layers.cudnn.LRNLayer",
      "link": "https://github.com/SimiaCryptus/mindseye-cudnn/tree/59d5b3318556370acb2d83ee6ec123ce0fc6974f/src/main/java/com/simiacryptus/mindseye/layers/cudnn/LRNLayer.java",
      "javaDoc": ""
    }
  }