Subreport: Logs for com.simiacryptus.ref.lang.ReferenceCountingBase
Using Seed 8642173701932907520
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 ], [ 1.208 ], [ 1.108 ], [ 1.032 ], [ 1.612 ], [ 1.552 ], [ -0.804 ], [ -1.832 ] ],
[ [ 0.7 ], [ -1.72 ], [ 0.028 ], [ 0.3 ], [ 1.64 ], [ 1.876 ], [ 0.148 ], [ 1.368 ] ],
[ [ -0.128 ], [ -1.028 ], [ -0.712 ], [ 0.636 ], [ 0.392 ], [ -0.408 ], [ -0.032 ], [ -1.54 ] ],
[ [ 0.496 ], [ -0.384 ], [ 1.048 ], [ -0.176 ], [ 0.092 ], [ -0.384 ], [ -0.892 ], [ -0.876 ] ],
[ [ -0.608 ], [ -0.852 ], [ -1.616 ], [ 1.556 ], [ -0.556 ], [ -1.572 ], [ 1.62 ], [ 1.652 ] ],
[ [ 1.764 ], [ 1.912 ], [ 1.356 ], [ 0.788 ], [ -1.476 ], [ -1.516 ], [ -1.856 ], [ -1.424 ] ],
[ [ 0.048 ], [ -1.688 ], [ 1.512 ], [ -0.768 ], [ 1.704 ], [ -0.636 ], [ 0.996 ], [ -0.464 ] ],
[ [ 1.524 ], [ -0.804 ], [ 1.556 ], [ -0.068 ], [ -1.228 ], [ -1.492 ], [ 0.048 ], [ -0.012 ] ]
]
Inputs Statistics: {meanExponent=-0.1923523558471011, negative=32, min=-1.856, max=1.912, mean=0.059375000000000025, count=64, sum=3.8000000000000016, positive=32, stdDev=1.1518728703181615, zeros=0}
Output: [
[ [ 0.0 ], [ 1.208 ], [ 1.108 ], [ 0.0 ], [ 0.0 ], [ 0.0 ], [ -0.0 ], [ -0.0 ] ],
[ [ 0.0 ], [ -0.0 ], [ 0.0 ], [ 0.0 ], [ 0.0 ], [ 1.876 ], [ 0.0 ], [ 1.368 ] ],
[ [ -0.0 ], [ -0.0 ], [ -0.0 ], [ 0.0 ], [ 0.392 ], [ -0.0 ], [ -0.032 ], [ -0.0 ] ],
[ [ 0.496 ], [ -0.0 ], [ 1.048 ], [ -0.0 ], [ 0.0 ], [ -0.0 ], [ -0.0 ], [ -0.0 ] ],
[ [ -0.0 ], [ -0.0 ], [ -0.0 ], [ 1.556 ], [ -0.556 ], [ -0.0 ], [ 0.0 ], [ 1.652 ] ],
[ [ 0.0 ], [ 1.912 ], [ 0.0 ], [ 0.0 ], [ -0.0 ], [ -0.0 ], [ -0.0 ], [ -0.0 ] ],
[ [ 0.0 ], [ -0.0 ], [ 0.0 ], [ -0.0 ], [ 1.704 ], [ -0.0 ], [ 0.996 ], [ -0.0 ] ],
[ [ 1.524 ], [ -0.0 ], [ 1.556 ], [ -0.0 ], [ -0.0 ], [ -0.0 ], [ 0.0 ], [ -0.0 ] ]
]
Outputs Statistics: {meanExponent=-0.03803059785907875, negative=2, min=-0.556, max=1.912, mean=0.27825, count=64, sum=17.808, positive=14, stdDev=0.5912925988882324, zeros=48}
We validate the agreement between the implemented derivative of the inputs apply finite difference estimations:
SingleDerivativeTester.java:117 executed in 0.13 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 ], [ 1.208 ], [ 1.108 ], [ 1.032 ], [ 1.612 ], [ 1.552 ], [ -0.804 ], [ -1.832 ] ],
[ [ 0.7 ], [ -1.72 ], [ 0.028 ], [ 0.3 ], [ 1.64 ], [ 1.876 ], [ 0.148 ], [ 1.368 ] ],
[ [ -0.128 ], [ -1.028 ], [ -0.712 ], [ 0.636 ], [ 0.392 ], [ -0.408 ], [ -0.032 ], [ -1.54 ] ],
[ [ 0.496 ], [ -0.384 ], [ 1.048 ], [ -0.176 ], [ 0.092 ], [ -0.384 ], [ -0.892 ], [ -0.876 ] ],
[ [ -0.608 ], [ -0.852 ], [ -1.616 ], [ 1.556 ], [ -0.556 ], [ -1.572 ], [ 1.62 ], [ 1.652 ] ],
[ [ 1.764 ], [ 1.912 ], [ 1.356 ], [ 0.788 ], [ -1.476 ], [ -1.516 ], [ -1.856 ], [ -1.424 ] ],
[ [ 0.048 ], [ -1.688 ], [ 1.512 ], [ -0.768 ], [ 1.704 ], [ -0.636 ], [ 0.996 ], [ -0.464 ] ],
[ [ 1.524 ], [ -0.804 ], [ 1.556 ], [ -0.068 ], [ -1.228 ], [ -1.492 ], [ 0.048 ], [ -0.012 ] ]
]
Value Statistics: {meanExponent=-0.1923523558471011, negative=32, min=-1.856, max=1.912, mean=0.059375000000000025, count=64, sum=3.8000000000000016, positive=32, stdDev=1.1518728703181615, 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, 1.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 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, ... ], ... ]
Implemented Statistics: {meanExponent=0.0, negative=0, min=0.0, max=1.0, mean=0.00390625, count=4096, sum=16.0, positive=16, stdDev=0.06237781024480981, zeros=4080}
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.9999999999998899, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.9999999999998899, ... ], ... ]
Measured Statistics: {meanExponent=-4.4063738174821724E-14, negative=0, min=0.0, max=1.0000000000000286, mean=0.0039062499999996036, count=4096, sum=15.999999999998376, positive=16, stdDev=0.06237781024480348, zeros=4080}
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, -1.1013412404281553E-13, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... ], [ 0.0, 0.0, 0.0, 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.1013412404281553E-13, ... ], ... ]
Error Statistics: {meanExponent=-12.994633845923758, negative=15, min=-1.1013412404281553E-13, max=2.864375403532904E-14, mean=-3.9633010415207615E-16, count=4096, sum=-1.6233681066069039E-12, positive=1, stdDev=6.668049147776914E-15, zeros=4080}
Returns
{
"absoluteTol" : {
"count" : 4096,
"sum" : 1.680655614677562E-12,
"min" : 0.0,
"max" : 1.1013412404281553E-13,
"sumOfSquare" : 1.827633438254106E-25,
"standardDeviation" : 6.667203125193276E-15,
"average" : 4.1031631217713915E-16
},
"relativeTol" : {
"count" : 16,
"sum" : 8.403278073388263E-13,
"min" : 1.4321877017664317E-14,
"max" : 5.50670620214108E-14,
"sumOfSquare" : 4.569083595635766E-26,
"standardDeviation" : 9.862838934853143E-15,
"average" : 5.2520487958676645E-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" : 4096,
"sum" : 1.680655614677562E-12,
"min" : 0.0,
"max" : 1.1013412404281553E-13,
"sumOfSquare" : 1.827633438254106E-25,
"standardDeviation" : 6.667203125193276E-15,
"average" : 4.1031631217713915E-16
},
"relativeTol" : {
"count" : 16,
"sum" : 8.403278073388263E-13,
"min" : 1.4321877017664317E-14,
"max" : 5.50670620214108E-14,
"sumOfSquare" : 4.569083595635766E-26,
"standardDeviation" : 9.862838934853143E-15,
"average" : 5.2520487958676645E-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: 4.1032e-16 +- 6.6672e-15 [0.0000e+00 - 1.1013e-13] (4096#)
relativeTol: 5.2520e-14 +- 9.8628e-15 [1.4322e-14 - 5.5067e-14] (16#)
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=4.1032e-16 +- 6.6672e-15 [0.0000e+00 - 1.1013e-13] (4096#), relativeTol=5.2520e-14 +- 9.8628e-15 [1.4322e-14 - 5.5067e-14] (16#)} | OK |
{
"result": "OK",
"performance": {
"execution_time": "0.289",
"gc_time": "0.117"
},
"created_on": 1586735048656,
"file_name": "derivativeTest",
"report": {
"simpleName": "Basic",
"canonicalName": "com.simiacryptus.mindseye.layers.java.MaxDropoutNoiseLayerTest.Basic",
"link": "https://github.com/SimiaCryptus/mindseye-java/tree/93db34cedee48c0202777a2b25deddf1dfaf5731/src/test/java/com/simiacryptus/mindseye/layers/java/MaxDropoutNoiseLayerTest.java",
"javaDoc": ""
},
"archive": "s3://code.simiacrypt.us/tests/com/simiacryptus/mindseye/layers/java/MaxDropoutNoiseLayer/Basic/derivativeTest/202004124408",
"id": "8438eaad-e95b-46e3-94fb-fb102657efc9",
"report_type": "Components",
"display_name": "Derivative Validation",
"target": {
"simpleName": "MaxDropoutNoiseLayer",
"canonicalName": "com.simiacryptus.mindseye.layers.java.MaxDropoutNoiseLayer",
"link": "https://github.com/SimiaCryptus/mindseye-java/tree/93db34cedee48c0202777a2b25deddf1dfaf5731/src/main/java/com/simiacryptus/mindseye/layers/java/MaxDropoutNoiseLayer.java",
"javaDoc": ""
}
}