Subreport: Logs for com.simiacryptus.ref.lang.ReferenceCountingBase
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.556 ], [ 0.048, -0.408 ], [ -0.852, -0.804 ], [ -0.712, 0.996 ], [ 1.032, 1.652 ], [ -0.768, -1.156 ] ],
[ [ 0.7, -1.476 ], [ 1.524, -0.384 ], [ 1.912, 0.148 ], [ 1.048, 0.048 ], [ 0.3, -1.424 ], [ -0.068, 0.184 ] ],
[ [ -0.128, 1.704 ], [ 1.208, -1.572 ], [ -1.688, -0.032 ], [ -1.616, -1.832 ], [ 0.636, -0.464 ], [ 1.612, 1.98 ] ],
[ [ 0.496, -1.228 ], [ -1.72, -1.516 ], [ -0.804, -0.892 ], [ 1.356, 1.368 ], [ -0.176, -0.012 ], [ 1.64, -0.628 ] ],
[ [ -0.608, 1.552 ], [ -1.028, -0.636 ], [ 1.108, 1.62 ], [ 1.512, -1.54 ], [ 1.556, -0.472 ], [ 0.392, -0.368 ] ],
[ [ 1.764, 1.876 ], [ -0.384, -1.492 ], [ 0.028, -1.856 ], [ 1.556, -0.876 ], [ 0.788, -0.504 ], [ 0.092, -1.16 ] ]
]
Inputs Statistics: {meanExponent=-0.19279822139085617, negative=38, min=-1.856, max=1.98, mean=0.0232777777777778, count=72, sum=1.6760000000000017, positive=34, stdDev=1.1349579192177401, zeros=0}
Output: [
[ [ 0.08, -0.556 ], [ 0.048, -0.408 ], [ -0.852, -0.804 ], [ -0.712, 0.996 ], [ 1.032, 1.652 ], [ -0.768, -1.156 ] ],
[ [ 0.7, -1.476 ], [ 1.524, -0.384 ], [ 1.912, 0.148 ], [ 1.048, 0.048 ], [ 0.3, -1.424 ], [ -0.068, 0.184 ] ],
[ [ -0.128, 1.704 ], [ 1.208, -1.572 ], [ -1.688, -0.032 ], [ -1.616, -1.832 ], [ 0.636, -0.464 ], [ 1.612, 1.98 ] ],
[ [ 0.496, -1.228 ], [ -1.72, -1.516 ], [ -0.804, -0.892 ], [ 1.356, 1.368 ], [ -0.176, -0.012 ], [ 1.64, -0.628 ] ],
[ [ -0.608, 1.552 ], [ -1.028, -0.636 ], [ 1.108, 1.62 ], [ 1.512, -1.54 ], [ 1.556, -0.472 ], [ 0.392, -0.368 ] ],
[ [ 1.764, 1.876 ], [ -0.384, -1.492 ], [ 0.028, -1.856 ], [ 1.556, -0.876 ], [ 0.788, -0.504 ], [ 0.092, -1.16 ] ]
]
Outputs Statistics: {meanExponent=-0.19279822139085617, negative=38, min=-1.856, max=1.98, mean=0.0232777777777778, count=72, sum=1.6760000000000017, positive=34, stdDev=1.1349579192177401, zeros=0}
We validate the agreement between the implemented derivative of the inputs apply finite difference estimations:
SingleDerivativeTester.java:117 executed in 0.35 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.556 ], [ 0.048, -0.408 ], [ -0.852, -0.804 ], [ -0.712, 0.996 ], [ 1.032, 1.652 ], [ -0.768, -1.156 ] ],
[ [ 0.7, -1.476 ], [ 1.524, -0.384 ], [ 1.912, 0.148 ], [ 1.048, 0.048 ], [ 0.3, -1.424 ], [ -0.068, 0.184 ] ],
[ [ -0.128, 1.704 ], [ 1.208, -1.572 ], [ -1.688, -0.032 ], [ -1.616, -1.832 ], [ 0.636, -0.464 ], [ 1.612, 1.98 ] ],
[ [ 0.496, -1.228 ], [ -1.72, -1.516 ], [ -0.804, -0.892 ], [ 1.356, 1.368 ], [ -0.176, -0.012 ], [ 1.64, -0.628 ] ],
[ [ -0.608, 1.552 ], [ -1.028, -0.636 ], [ 1.108, 1.62 ], [ 1.512, -1.54 ], [ 1.556, -0.472 ], [ 0.392, -0.368 ] ],
[ [ 1.764, 1.876 ], [ -0.384, -1.492 ], [ 0.028, -1.856 ], [ 1.556, -0.876 ], [ 0.788, -0.504 ], [ 0.092, -1.16 ] ]
]
Value Statistics: {meanExponent=-0.19279822139085617, negative=38, min=-1.856, max=1.98, mean=0.0232777777777778, count=72, sum=1.6760000000000017, positive=34, stdDev=1.1349579192177401, zeros=0}
Implemented Feedback: [ [ 1.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, 0.0, 0.0, ... ], [ 0.0, 0.0, 1.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, ... ], [ 0.0, 0.0, 0.0, 0.0, 1.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, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, ... ], ... ]
Implemented Statistics: {meanExponent=0.0, negative=0, min=0.0, max=1.0, mean=0.013888888888888888, count=5184, sum=72.0, positive=72, stdDev=0.11702985796078275, zeros=5112}
Measured Feedback: [ [ 1.0000000000000286, 0.0, 0.0, 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.0, 0.0, 0.9999999999998899, 0.0, 0.0, 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.0, 0.0, 0.9999999999998899, 0.0, 0.0, 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.0, 0.0, 1.0000000000000286, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.9999999999998899, ... ], ... ]
Measured Statistics: {meanExponent=-4.155179905882063E-14, negative=0, min=0.0, max=1.0000000000000286, mean=0.013888888888887537, count=5184, sum=71.999999999993, positive=72, stdDev=0.11702985796077153, zeros=5112}
Feedback Error: [ [ 2.864375403532904E-14, 0.0, 0.0, 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, ... ], [ 0.0, 0.0, -1.1013412404281553E-13, 0.0, 0.0, 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, 0.0, 0.0, -1.1013412404281553E-13, 0.0, 0.0, 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, 0.0, 0.0, 2.864375403532904E-14, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.1013412404281553E-13, ... ], ... ]
Error Statistics: {meanExponent=-13.041933481673048, negative=66, min=-1.1013412404281553E-13, max=2.864375403532904E-14, mean=-1.3288410152766534E-15, count=5184, sum=-6.888711823194171E-12, positive=6, stdDev=1.2204297840200616E-14, zeros=5112}
Returns
{
"absoluteTol" : {
"count" : 5184,
"sum" : 7.23243687161812E-12,
"min" : 0.0,
"max" : 1.1013412404281553E-13,
"sumOfSquare" : 7.812842906568166E-25,
"standardDeviation" : 1.219689599245605E-14,
"average" : 1.3951460014695447E-15
},
"relativeTol" : {
"count" : 72,
"sum" : 3.616218435809253E-12,
"min" : 2.9976021664879317E-15,
"max" : 5.50670620214108E-14,
"sumOfSquare" : 1.953210726642255E-25,
"standardDeviation" : 1.3791893644892318E-14,
"average" : 5.022525605290629E-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" : 5184,
"sum" : 7.23243687161812E-12,
"min" : 0.0,
"max" : 1.1013412404281553E-13,
"sumOfSquare" : 7.812842906568166E-25,
"standardDeviation" : 1.219689599245605E-14,
"average" : 1.3951460014695447E-15
},
"relativeTol" : {
"count" : 72,
"sum" : 3.616218435809253E-12,
"min" : 2.9976021664879317E-15,
"max" : 5.50670620214108E-14,
"sumOfSquare" : 1.953210726642255E-25,
"standardDeviation" : 1.3791893644892318E-14,
"average" : 5.022525605290629E-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.3951e-15 +- 1.2197e-14 [0.0000e+00 - 1.1013e-13] (5184#)
relativeTol: 5.0225e-14 +- 1.3792e-14 [2.9976e-15 - 5.5067e-14] (72#)
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.3951e-15 +- 1.2197e-14 [0.0000e+00 - 1.1013e-13] (5184#), relativeTol=5.0225e-14 +- 1.3792e-14 [2.9976e-15 - 5.5067e-14] (72#)} | OK |
{
"result": "OK",
"performance": {
"execution_time": "0.563",
"gc_time": "0.167"
},
"created_on": 1586739550296,
"file_name": "derivativeTest",
"report": {
"simpleName": "Basic",
"canonicalName": "com.simiacryptus.mindseye.layers.java.RescaledSubnetLayerTest.Basic",
"link": "https://github.com/SimiaCryptus/mindseye-java/tree/93db34cedee48c0202777a2b25deddf1dfaf5731/src/test/java/com/simiacryptus/mindseye/layers/java/RescaledSubnetLayerTest.java",
"javaDoc": ""
},
"archive": "s3://code.simiacrypt.us/tests/com/simiacryptus/mindseye/layers/java/RescaledSubnetLayer/Basic/derivativeTest/202004135910",
"id": "4888b33a-6910-4add-b264-8e052fc146e9",
"report_type": "Components",
"display_name": "Derivative Validation",
"target": {
"simpleName": "RescaledSubnetLayer",
"canonicalName": "com.simiacryptus.mindseye.layers.java.RescaledSubnetLayer",
"link": "https://github.com/SimiaCryptus/mindseye-java/tree/93db34cedee48c0202777a2b25deddf1dfaf5731/src/main/java/com/simiacryptus/mindseye/layers/java/RescaledSubnetLayer.java",
"javaDoc": ""
}
}