diff --git a/compile/build.xml b/compile/build.xml
index a6c26df5..cb2b22e0 100644
--- a/compile/build.xml
+++ b/compile/build.xml
@@ -13,7 +13,6 @@
-
diff --git a/demo/mnist.html b/demo/mnist.html
index 5752f4b6..2db46a3e 100644
--- a/demo/mnist.html
+++ b/demo/mnist.html
@@ -15,7 +15,7 @@
padding: 10px;
}
.layer_act {
- width: 500px;
+ width: 450px;
float: right;
}
.ltconv {
@@ -304,6 +304,18 @@
if(L.layer_type==='softmax' || L.layer_type==='fc') scale = 10; // for softmax
draw_activations(activations_div, L.out_act, scale);
+ // visualize data gradients
+ if(L.layer_type !== 'softmax') {
+ var grad_div = document.createElement('div');
+ grad_div.appendChild(document.createTextNode('Data Gradients:'));
+ grad_div.appendChild(document.createElement('br'));
+ grad_div.className = 'layer_grad';
+ var scale = 2;
+ if(L.layer_type==='softmax' || L.layer_type==='fc') scale = 10; // for softmax
+ draw_activations(grad_div, L.out_act, scale, true);
+ activations_div.appendChild(grad_div);
+ }
+
// visualize filters if they are of reasonable size
if(L.layer_type === 'conv') {
var filters_div = document.createElement('div');
@@ -312,14 +324,18 @@
filters_div.appendChild(document.createTextNode('Weights:'));
filters_div.appendChild(document.createElement('br'));
for(var j=0;jDescription
Training Stats