demo/js/regression.js
function reload() {
  eval($("#layerdef").val());

  // refresh buttons
  var t = '';
  for(var i=1;i<net.layers.length-1;i++) { // ignore input and regression layers (first and last)
    var butid = "button" + i;
    t += "<input id=\""+butid+"\" value=\"" + net.layers[i].layer_type +"\" type=\"submit\" onclick=\"updateLix("+i+")\" style=\"width:80px; height: 30px; margin:5px;\";>";
  }
  $("#layer_ixes").html(t);
  $("#button"+lix).css('background-color', '#FFA');
}
function reload() {
  eval($("#layerdef").val());

  // refresh buttons
  var t = '';
  for(var i=1;i<net.layers.length-1;i++) { // ignore input and regression layers (first and last)
    var butid = "button" + i;
    t += "<input id=\""+butid+"\" value=\"" + net.layers[i].layer_type +"\" type=\"submit\" onclick=\"updateLix("+i+")\" style=\"width:80px; height: 30px; margin:5px;\";>";
  }
  $("#layer_ixes").html(t);
  $("#button"+lix).css('background-color', '#FFA');
}
function reload ( ) { eval ( $ ( "#layerdef" ) . val ( ) ) ; // refresh buttons var t = '' ; for ( var i = 1 ; i < net . layers . length - 1 ; i ++ ) { // ignore input and regression layers (first and last) var butid = "button" + i ; t += "<input id=\"" + butid + "\" value=\"" + net . layers [ i ] . layer_type + "\" type=\"submit\" onclick=\"updateLix(" + i + ")\" style=\"width:80px; height: 30px; margin:5px;\";>" ; } $ ( "#layer_ixes" ) . html ( t ) ; $ ( "#button" + lix ) . css ( 'background-color' , '#FFA' ) ; }
layer id of layer we'd like to draw outputs of
layer id of layer we d like to draw outputs of