Subreport: Logs for com.simiacryptus.ref.lang.ReferenceCountingBase
Using Seed 8882820388734234624
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)));
Inputs: [
[ [ 0.08 ], [ -0.608 ], [ 1.208 ], [ -0.852 ] ],
[ [ 0.7 ], [ 1.764 ], [ -1.72 ], [ 1.912 ] ],
[ [ -0.128 ], [ 0.048 ], [ -1.028 ], [ -1.688 ] ],
[ [ 0.496 ], [ 1.524 ], [ -0.384 ], [ -0.804 ] ]
]
Inputs Statistics: {meanExponent=-0.20600101677773192, negative=8, min=-1.72, max=1.912, mean=0.0325, count=16, sum=0.52, positive=8, stdDev=1.1193595266937248, zeros=0}
Output: [
[ [ 0.048 ], [ -1.028 ] ],
[ [ 1.524 ], [ -0.384 ] ]
]
Outputs Statistics: {meanExponent=-0.3848623641485108, negative=2, min=-1.028, max=1.524, mean=0.04000000000000001, count=4, sum=0.16000000000000003, positive=2, stdDev=0.938445523192476, zeros=0}
We validate the agreement between the implemented derivative of the inputs apply finite difference estimations:
SingleDerivativeTester.java:117 executed in 0.12 seconds (0.000 gc):
return testFeedback(
statistics,
component.addRef(),
RefUtil.addRef(inputPrototype),
outputPrototype.addRef());
},
outputPrototype.addRef(),
RefUtil.addRef(inputPrototype),
component.addRef()));
Feedback for input 0
Inputs Values: [
[ [ 0.08 ], [ -0.608 ], [ 1.208 ], [ -0.852 ] ],
[ [ 0.7 ], [ 1.764 ], [ -1.72 ], [ 1.912 ] ],
[ [ -0.128 ], [ 0.048 ], [ -1.028 ], [ -1.688 ] ],
[ [ 0.496 ], [ 1.524 ], [ -0.384 ], [ -0.804 ] ]
]
Value Statistics: {meanExponent=-0.20600101677773192, negative=8, min=-1.72, max=1.912, mean=0.0325, count=16, sum=0.52, positive=8, stdDev=1.1193595266937248, zeros=0}
Implemented Feedback: [ [ 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 ], [ 1.0, 0.0, 0.0, 0.0 ], [ 0.0, 1.0, 0.0, 0.0 ], ... ]
Implemented Statistics: {meanExponent=0.0, negative=0, min=0.0, max=1.0, mean=0.0625, count=64, sum=4.0, positive=4, stdDev=0.24206145913796356, zeros=60}
Measured Feedback: [ [ 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 ], [ 1.0000000000000286, 0.0, 0.0, 0.0 ], [ 0.0, 0.9999999999998899, 0.0, 0.0 ], ... ]
Measured Statistics: {meanExponent=-3.276302567614995E-14, negative=0, min=0.0, max=1.0000000000000286, mean=0.06249999999999528, count=64, sum=3.999999999999698, positive=4, stdDev=0.2420614591379453, zeros=60}
Feedback Error: [ [ 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 ], [ 2.864375403532904E-14, 0.0, 0.0, 0.0 ], [ 0.0, -1.1013412404281553E-13, 0.0, 0.0 ], ... ]
Error Statistics: {meanExponent=-13.104301089584563, negative=3, min=-1.1013412404281553E-13, max=2.864375403532904E-14, mean=-4.714978407704962E-15, count=64, sum=-3.0175861809311755E-13, positive=1, stdDev=2.3646569225465656E-14, zeros=60}
Returns
{
"absoluteTol" : {
"count" : 64,
"sum" : 3.590461261637756E-13,
"min" : 0.0,
"max" : 1.1013412404281553E-13,
"sumOfSquare" : 3.720904048127126E-26,
"standardDeviation" : 2.345033226881048E-14,
"average" : 5.610095721308994E-15
},
"relativeTol" : {
"count" : 4,
"sum" : 1.7952306308189672E-13,
"min" : 1.4321877017664317E-14,
"max" : 5.50670620214108E-14,
"sumOfSquare" : 9.302260120318813E-27,
"standardDeviation" : 1.7643182647570603E-14,
"average" : 4.488076577047418E-14
}
}
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" : 64,
"sum" : 3.590461261637756E-13,
"min" : 0.0,
"max" : 1.1013412404281553E-13,
"sumOfSquare" : 3.720904048127126E-26,
"standardDeviation" : 2.345033226881048E-14,
"average" : 5.610095721308994E-15
},
"relativeTol" : {
"count" : 4,
"sum" : 1.7952306308189672E-13,
"min" : 1.4321877017664317E-14,
"max" : 5.50670620214108E-14,
"sumOfSquare" : 9.302260120318813E-27,
"standardDeviation" : 1.7643182647570603E-14,
"average" : 4.488076577047418E-14
}
}
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));
Finite-Difference Derivative Accuracy:
absoluteTol: 5.6101e-15 +- 2.3450e-14 [0.0000e+00 - 1.1013e-13] (64#)
relativeTol: 4.4881e-14 +- 1.7643e-14 [1.4322e-14 - 5.5067e-14] (4#)
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());
class | details | result |
---|---|---|
com.simiacryptus.mindseye.test.unit.SingleDerivativeTester | ToleranceStatistics{absoluteTol=5.6101e-15 +- 2.3450e-14 [0.0000e+00 - 1.1013e-13] (64#), relativeTol=4.4881e-14 +- 1.7643e-14 [1.4322e-14 - 5.5067e-14] (4#)} | OK |
{
"result": "OK",
"performance": {
"execution_time": "0.331",
"gc_time": "0.144"
},
"created_on": 1586737013950,
"file_name": "derivativeTest",
"report": {
"simpleName": "Right",
"canonicalName": "com.simiacryptus.mindseye.layers.cudnn.ImgCropLayerTest.Right",
"link": "https://github.com/SimiaCryptus/mindseye-cudnn/tree/59d5b3318556370acb2d83ee6ec123ce0fc6974f/src/test/java/com/simiacryptus/mindseye/layers/cudnn/ImgCropLayerTest.java",
"javaDoc": ""
},
"archive": "s3://code.simiacrypt.us/tests/com/simiacryptus/mindseye/layers/cudnn/ImgCropLayer/Right/derivativeTest/202004131653",
"id": "879627bd-5a32-46a9-8981-91eab31753dc",
"report_type": "Components",
"display_name": "Derivative Validation",
"target": {
"simpleName": "ImgCropLayer",
"canonicalName": "com.simiacryptus.mindseye.layers.cudnn.ImgCropLayer",
"link": "https://github.com/SimiaCryptus/mindseye-cudnn/tree/59d5b3318556370acb2d83ee6ec123ce0fc6974f/src/main/java/com/simiacryptus/mindseye/layers/cudnn/ImgCropLayer.java",
"javaDoc": ""
}
}