From a5d0fd4c9647d1ff9b2eaaf74e655d0123775f0f Mon Sep 17 00:00:00 2001 From: karpathy Date: Sun, 31 Aug 2014 16:24:29 -0700 Subject: [PATCH] fixing the build script and tweaking mnist demo tiny bit --- compile/build.xml | 1 - demo/mnist.html | 27 ++++++++++++++++++++++++--- 2 files changed, 24 insertions(+), 4 deletions(-) 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

- Current image: +