Subreport: Logs for com.simiacryptus.ref.lang.ReferenceCountingBase
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:
Inputs Statistics:
Output: [ 0.1 ]
Outputs Statistics: {meanExponent=-1.0, negative=0, min=0.1, max=0.1, mean=0.1, count=1, sum=0.1, positive=1, stdDev=0.0, zeros=0}
We validate the agreement between the implemented derivative of the inputs apply finite difference estimations:
SingleDerivativeTester.java:117 executed in 0.00 seconds (0.000 gc):
return testFeedback(
statistics,
component.addRef(),
RefUtil.addRef(inputPrototype),
outputPrototype.addRef());
},
outputPrototype.addRef(),
RefUtil.addRef(inputPrototype),
component.addRef()));
Returns
{
"absoluteTol" : {
"count" : 0,
"sum" : 0.0,
"min" : "Infinity",
"max" : "-Infinity",
"sumOfSquare" : 0.0,
"standardDeviation" : 0.0,
"average" : 0.0
},
"relativeTol" : {
"count" : 0,
"sum" : 0.0,
"min" : "Infinity",
"max" : "-Infinity",
"sumOfSquare" : 0.0,
"standardDeviation" : 0.0,
"average" : 0.0
}
}
We validate the agreement between the implemented derivative of the internal weights apply finite difference estimations:
SingleDerivativeTester.java:133 executed in 0.01 seconds (0.000 gc):
return testLearning(
statistics,
component.addRef(),
RefUtil.addRef(inputPrototype),
outputPrototype.addRef());
},
outputPrototype.addRef(),
RefUtil.addRef(inputPrototype),
component.addRef()));
Learning Gradient for weight setByCoord 0
Weights: [ 0.1 ]
Implemented Gradient: [ [ 1.0 ] ]
Implemented Statistics: {meanExponent=0.0, negative=0, min=1.0, max=1.0, mean=1.0, count=1, sum=1.0, positive=1, stdDev=0.0, zeros=0}
Measured Gradient: [ [ 1.0000000000000286 ] ]
Measured Statistics: {meanExponent=1.2439824318537225E-14, negative=0, min=1.0000000000000286, max=1.0000000000000286, mean=1.0000000000000286, count=1, sum=1.0000000000000286, positive=1, stdDev=0.0, zeros=0}
Gradient Error: [ [ 2.864375403532904E-14 ] ]
Error Statistics: {meanExponent=-13.542970064227774, negative=0, min=2.864375403532904E-14, max=2.864375403532904E-14, mean=2.864375403532904E-14, count=1, sum=2.864375403532904E-14, positive=1, stdDev=0.0, zeros=0}
Returns
{
"absoluteTol" : {
"count" : 1,
"sum" : 2.864375403532904E-14,
"min" : 2.864375403532904E-14,
"max" : 2.864375403532904E-14,
"sumOfSquare" : 8.204646452364286E-28,
"standardDeviation" : 0.0,
"average" : 2.864375403532904E-14
},
"relativeTol" : {
"count" : 1,
"sum" : 1.4321877017664317E-14,
"min" : 1.4321877017664317E-14,
"max" : 1.4321877017664317E-14,
"sumOfSquare" : 2.0511616130910136E-28,
"standardDeviation" : 0.0,
"average" : 1.4321877017664317E-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: 2.8644e-14 +- 0.0000e+00 [2.8644e-14 - 2.8644e-14] (1#)
relativeTol: 1.4322e-14 +- 0.0000e+00 [1.4322e-14 - 1.4322e-14] (1#)
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=2.8644e-14 +- 0.0000e+00 [2.8644e-14 - 2.8644e-14] (1#), relativeTol=1.4322e-14 +- 0.0000e+00 [1.4322e-14 - 1.4322e-14] (1#)} | OK |
{
"result": "OK",
"performance": {
"execution_time": "0.134",
"gc_time": "0.092"
},
"created_on": 1586735179135,
"file_name": "derivativeTest",
"report": {
"simpleName": "Normal",
"canonicalName": "com.simiacryptus.mindseye.layers.java.ValueLayerTest.Normal",
"link": "https://github.com/SimiaCryptus/mindseye-java/tree/93db34cedee48c0202777a2b25deddf1dfaf5731/src/test/java/com/simiacryptus/mindseye/layers/java/ValueLayerTest.java",
"javaDoc": ""
},
"archive": "s3://code.simiacrypt.us/tests/com/simiacryptus/mindseye/layers/ValueLayer/Normal/derivativeTest/202004124619",
"id": "1001c784-2944-4eab-9e0a-d9b6d800d1c1",
"report_type": "Components",
"display_name": "Derivative Validation",
"target": {
"simpleName": "ValueLayer",
"canonicalName": "com.simiacryptus.mindseye.layers.ValueLayer",
"link": "https://github.com/SimiaCryptus/mindseye-core/tree/a09d39d97a7eff18f17aef61a4891b6f93a18cbe/src/main/java/com/simiacryptus/mindseye/layers/ValueLayer.java",
"javaDoc": ""
}
}