Subreport: Logs for com.simiacryptus.ref.lang.ReferenceCountingBase
Using Seed 5113514463300008960
SingleDerivativeTester.java:101 executed in 0.00 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.128 ], [ -0.608 ] ],
[ [ 0.7 ], [ 0.496 ], [ 1.764 ] ]
]
Inputs Statistics: {meanExponent=-0.403119694464533, negative=2, min=-0.608, max=1.764, mean=0.38399999999999995, count=6, sum=2.304, positive=4, stdDev=0.747821725636086, zeros=0}
Output: [
[ [ 0.08 ], [ 0.128 ], [ 0.608 ] ],
[ [ 0.7 ], [ 0.496 ], [ 1.764 ] ]
]
Outputs Statistics: {meanExponent=-0.403119694464533, negative=0, min=0.08, max=1.764, mean=0.6293333333333333, count=6, sum=3.776, positive=6, stdDev=0.5573444974958388, zeros=0}
We validate the agreement between the implemented derivative of the inputs apply finite difference estimations:
SingleDerivativeTester.java:117 executed in 0.02 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.128 ], [ -0.608 ] ],
[ [ 0.7 ], [ 0.496 ], [ 1.764 ] ]
]
Value Statistics: {meanExponent=-0.403119694464533, negative=2, min=-0.608, max=1.764, mean=0.38399999999999995, count=6, sum=2.304, positive=4, stdDev=0.747821725636086, zeros=0}
Implemented Feedback: [ [ 1.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, -1.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, -1.0, 0.0 ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] ]
Implemented Statistics: {meanExponent=0.0, negative=2, min=-1.0, max=1.0, mean=0.05555555555555555, count=36, sum=2.0, positive=4, stdDev=0.4044505494044732, zeros=30}
Measured Feedback: [ [ 1.0000000000000286, 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.9999999999998899, 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.9999999999998899, 0.0 ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.9999999999998899 ] ]
Measured Statistics: {meanExponent=-3.7785564564448525E-14, negative=2, min=-0.9999999999998899, max=1.0000000000000286, mean=0.05555555555555329, count=36, sum=1.9999999999999185, positive=4, stdDev=0.4044505494044377, zeros=30}
Feedback Error: [ [ 2.864375403532904E-14, 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, 1.1013412404281553E-13, 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, 1.1013412404281553E-13, 0.0 ], [ 0.0, 0.0, 0.0, 0.0, 0.0, -1.1013412404281553E-13 ] ]
Error Statistics: {meanExponent=-13.055560092401983, negative=3, min=-1.1013412404281553E-13, max=1.1013412404281553E-13, mean=-2.263621389096847E-15, count=36, sum=-8.149037000748649E-14, positive=3, stdDev=4.125921704906724E-14, zeros=30}
Returns
{
"absoluteTol" : {
"count" : 36,
"sum" : 5.793143742494067E-13,
"min" : 0.0,
"max" : 1.1013412404281553E-13,
"sumOfSquare" : 6.146809103862782E-26,
"standardDeviation" : 3.805906444872099E-14,
"average" : 1.609206595137241E-14
},
"relativeTol" : {
"count" : 6,
"sum" : 2.8965718712471834E-13,
"min" : 1.4321877017664317E-14,
"max" : 5.50670620214108E-14,
"sumOfSquare" : 1.536702275965862E-26,
"standardDeviation" : 1.518483390403035E-14,
"average" : 4.827619785411972E-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" : 36,
"sum" : 5.793143742494067E-13,
"min" : 0.0,
"max" : 1.1013412404281553E-13,
"sumOfSquare" : 6.146809103862782E-26,
"standardDeviation" : 3.805906444872099E-14,
"average" : 1.609206595137241E-14
},
"relativeTol" : {
"count" : 6,
"sum" : 2.8965718712471834E-13,
"min" : 1.4321877017664317E-14,
"max" : 5.50670620214108E-14,
"sumOfSquare" : 1.536702275965862E-26,
"standardDeviation" : 1.518483390403035E-14,
"average" : 4.827619785411972E-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: 1.6092e-14 +- 3.8059e-14 [0.0000e+00 - 1.1013e-13] (36#)
relativeTol: 4.8276e-14 +- 1.5185e-14 [1.4322e-14 - 5.5067e-14] (6#)
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=1.6092e-14 +- 3.8059e-14 [0.0000e+00 - 1.1013e-13] (36#), relativeTol=4.8276e-14 +- 1.5185e-14 [1.4322e-14 - 5.5067e-14] (6#)} | OK |
{
"result": "OK",
"performance": {
"execution_time": "0.161",
"gc_time": "0.101"
},
"created_on": 1586735275840,
"file_name": "derivativeTest",
"report": {
"simpleName": "Basic",
"canonicalName": "com.simiacryptus.mindseye.layers.java.AbsActivationLayerTest.Basic",
"link": "https://github.com/SimiaCryptus/mindseye-java/tree/93db34cedee48c0202777a2b25deddf1dfaf5731/src/test/java/com/simiacryptus/mindseye/layers/java/AbsActivationLayerTest.java",
"javaDoc": ""
},
"archive": "s3://code.simiacrypt.us/tests/com/simiacryptus/mindseye/layers/java/AbsActivationLayer/Basic/derivativeTest/202004124755",
"id": "1443f092-b9d5-4b9c-a17e-f1f020c6d569",
"report_type": "Components",
"display_name": "Derivative Validation",
"target": {
"simpleName": "AbsActivationLayer",
"canonicalName": "com.simiacryptus.mindseye.layers.java.AbsActivationLayer",
"link": "https://github.com/SimiaCryptus/mindseye-java/tree/93db34cedee48c0202777a2b25deddf1dfaf5731/src/main/java/com/simiacryptus/mindseye/layers/java/AbsActivationLayer.java",
"javaDoc": ""
}
}