Subreport: Logs for com.simiacryptus.ref.lang.ReferenceCountingBase
Using Seed 1551762740351390720
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.472 ], [ 1.208, -0.316 ], [ 1.108, -1.552 ], [ 1.032, -1.484 ], [ 1.612, -1.248 ], [ 1.552, 0.56 ], [ -0.804, -0.312 ], [ -1.832, 0.812 ] ],
[ [ 0.7, -0.504 ], [ -1.72, 1.156 ], [ 0.028, 0.016 ], [ 0.3, 1.352 ], [ 1.64, 1.324 ], [ 1.876, -1.656 ], [ 0.148, -0.968 ], [ 1.368, -1.808 ] ],
[ [ -0.128, -1.156 ], [ -1.028, 0.972 ], [ -0.712, 1.288 ], [ 0.636, -0.888 ], [ 0.392, 0.344 ], [ -0.408, -0.856 ], [ -0.032, -0.892 ], [ -1.54, 0.644 ] ],
[ [ 0.496, 0.184 ], [ -0.384, -1.116 ], [ 1.048, 1.628 ], [ -0.176, -1.256 ], [ 0.092, -1.34 ], [ -0.384, -1.16 ], [ -0.892, -0.808 ], [ -0.876, 0.66 ] ],
[ [ -0.608, 1.98 ], [ -0.852, 0.52 ], [ -1.616, -1.564 ], [ 1.556, 1.916 ], [ -0.556, 1.776 ], [ -1.572, 0.688 ], [ 1.62, -1.1 ], [ 1.652, -1.76 ] ],
[ [ 1.764, -0.628 ], [ 1.912, -1.456 ], [ 1.356, -1.764 ], [ 0.788, -1.724 ], [ -1.476, 0.52 ], [ -1.516, -0.124 ], [ -1.856, -0.968 ], [ -1.424, 0.82 ] ],
[ [ 0.048, -0.368 ], [ -1.688, -2.0 ], [ 1.512, 0.692 ], [ -0.768, -1.664 ], [ 1.704, 1.444 ], [ -0.636, -1.176 ], [ 0.996, -0.784 ], [ -0.464, 1.24 ] ],
[ [ 1.524, -1.16 ], [ -0.804, 1.42 ], [ 1.556, 1.628 ], [ -0.068, 0.82 ], [ -1.228, 1.956 ], [ -1.492, -1.256 ], [ 0.048, 0.012 ], [ -0.012, -1.58 ] ]
]
Inputs Statistics: {meanExponent=-0.13117442306991567, negative=68, min=-2.0, max=1.98, mean=-0.06793749999999998, count=128, sum=-8.695999999999998, positive=60, stdDev=1.1762083132225136, zeros=0}
Output: [
[ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ],
[ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ],
[ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ]
]
Outputs Statistics: {meanExponent=NaN, negative=0, min=0.0, max=0.0, mean=0.0, count=12, sum=0.0, positive=0, stdDev=0.0, zeros=12}
We validate the agreement between the implemented derivative of the inputs apply finite difference estimations:
SingleDerivativeTester.java:117 executed in 0.14 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.472 ], [ 1.208, -0.316 ], [ 1.108, -1.552 ], [ 1.032, -1.484 ], [ 1.612, -1.248 ], [ 1.552, 0.56 ], [ -0.804, -0.312 ], [ -1.832, 0.812 ] ],
[ [ 0.7, -0.504 ], [ -1.72, 1.156 ], [ 0.028, 0.016 ], [ 0.3, 1.352 ], [ 1.64, 1.324 ], [ 1.876, -1.656 ], [ 0.148, -0.968 ], [ 1.368, -1.808 ] ],
[ [ -0.128, -1.156 ], [ -1.028, 0.972 ], [ -0.712, 1.288 ], [ 0.636, -0.888 ], [ 0.392, 0.344 ], [ -0.408, -0.856 ], [ -0.032, -0.892 ], [ -1.54, 0.644 ] ],
[ [ 0.496, 0.184 ], [ -0.384, -1.116 ], [ 1.048, 1.628 ], [ -0.176, -1.256 ], [ 0.092, -1.34 ], [ -0.384, -1.16 ], [ -0.892, -0.808 ], [ -0.876, 0.66 ] ],
[ [ -0.608, 1.98 ], [ -0.852, 0.52 ], [ -1.616, -1.564 ], [ 1.556, 1.916 ], [ -0.556, 1.776 ], [ -1.572, 0.688 ], [ 1.62, -1.1 ], [ 1.652, -1.76 ] ],
[ [ 1.764, -0.628 ], [ 1.912, -1.456 ], [ 1.356, -1.764 ], [ 0.788, -1.724 ], [ -1.476, 0.52 ], [ -1.516, -0.124 ], [ -1.856, -0.968 ], [ -1.424, 0.82 ] ],
[ [ 0.048, -0.368 ], [ -1.688, -2.0 ], [ 1.512, 0.692 ], [ -0.768, -1.664 ], [ 1.704, 1.444 ], [ -0.636, -1.176 ], [ 0.996, -0.784 ], [ -0.464, 1.24 ] ],
[ [ 1.524, -1.16 ], [ -0.804, 1.42 ], [ 1.556, 1.628 ], [ -0.068, 0.82 ], [ -1.228, 1.956 ], [ -1.492, -1.256 ], [ 0.048, 0.012 ], [ -0.012, -1.58 ] ]
]
Value Statistics: {meanExponent=-0.13117442306991567, negative=68, min=-2.0, max=1.98, mean=-0.06793749999999998, count=128, sum=-8.695999999999998, positive=60, stdDev=1.1762083132225136, 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, ... ], [ 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.0, 0.0, 0.0, 0.0, ... ], ... ]
Implemented Statistics: {meanExponent=NaN, negative=0, min=0.0, max=0.0, mean=0.0, count=1536, sum=0.0, positive=0, stdDev=0.0, zeros=1536}
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, ... ], [ 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.0, 0.0, 0.0, 0.0, ... ], ... ]
Measured Statistics: {meanExponent=NaN, negative=0, min=0.0, max=0.0, mean=0.0, count=1536, sum=0.0, positive=0, stdDev=0.0, zeros=1536}
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, ... ], [ 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.0, 0.0, 0.0, 0.0, ... ], ... ]
Error Statistics: {meanExponent=NaN, negative=0, min=0.0, max=0.0, mean=0.0, count=1536, sum=0.0, positive=0, stdDev=0.0, zeros=1536}
Returns
{
"absoluteTol" : {
"count" : 1536,
"sum" : 0.0,
"min" : 0.0,
"max" : 0.0,
"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.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" : 1536,
"sum" : 0.0,
"min" : 0.0,
"max" : 0.0,
"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
}
}
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: 0.0000e+00 +- 0.0000e+00 [0.0000e+00 - 0.0000e+00] (1536#)
relativeTol: 0.0000e+00 +- 0.0000e+00 [Infinity - -Infinity] (0#)
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=0.0000e+00 +- 0.0000e+00 [0.0000e+00 - 0.0000e+00] (1536#), relativeTol=0.0000e+00 +- 0.0000e+00 [Infinity - -Infinity] (0#)} | OK |
{
"result": "OK",
"performance": {
"execution_time": "0.297",
"gc_time": "0.105"
},
"created_on": 1586735575876,
"file_name": "derivativeTest",
"report": {
"simpleName": "Rotated",
"canonicalName": "com.simiacryptus.mindseye.layers.java.ImgViewLayerTest.Rotated",
"link": "https://github.com/SimiaCryptus/mindseye-java/tree/93db34cedee48c0202777a2b25deddf1dfaf5731/src/test/java/com/simiacryptus/mindseye/layers/java/ImgViewLayerTest.java",
"javaDoc": ""
},
"archive": "s3://code.simiacrypt.us/tests/com/simiacryptus/mindseye/layers/java/ImgViewLayer/Rotated/derivativeTest/202004125255",
"id": "6203a8e2-cec8-49b3-8392-49746118e989",
"report_type": "Components",
"display_name": "Derivative Validation",
"target": {
"simpleName": "ImgViewLayer",
"canonicalName": "com.simiacryptus.mindseye.layers.java.ImgViewLayer",
"link": "https://github.com/SimiaCryptus/mindseye-java/tree/93db34cedee48c0202777a2b25deddf1dfaf5731/src/main/java/com/simiacryptus/mindseye/layers/java/ImgViewLayer.java",
"javaDoc": ""
}
}