gregH commited on
Commit
38e6083
1 Parent(s): eacf5c6

Update assets/js/calibration.js

Browse files
Files changed (1) hide show
  1. assets/js/calibration.js +1 -3
assets/js/calibration.js CHANGED
@@ -19,7 +19,7 @@ $(document).ready(function(){
19
  $(target).show(200);
20
  }
21
  });
22
-
23
  var diagram = document.getElementById("reliability-diagram"), cifar100_ece_data;
24
  $.getJSON("images/cifar100/cifar100_ece_value.json", function(data) {cifar100_ece_data = data;});
25
  $('input[type=radio][name=models]').change(function() {diagram.src = updateFigurePath();});
@@ -27,7 +27,6 @@ $(document).ready(function(){
27
  if(this.value !== 'ts') {
28
  $("#ts-slider").slider('disable');
29
  $("#bin-slider").slider('enable');
30
- var bin_handle = $("#bin-num");
31
  $( "#bin-slider" ).slider({
32
  step: 1,
33
  min: 4,
@@ -40,7 +39,6 @@ $(document).ready(function(){
40
  else {
41
  $("#bin-slider").slider('disable');
42
  $("#ts-slider").slider('enable');
43
- var bin_handle = $("#bin-num");
44
  $( "#bin-slider" ).slider({
45
  step: 1,
46
  min: 10,
 
19
  $(target).show(200);
20
  }
21
  });
22
+ var bin_handle = $("#bin-num");
23
  var diagram = document.getElementById("reliability-diagram"), cifar100_ece_data;
24
  $.getJSON("images/cifar100/cifar100_ece_value.json", function(data) {cifar100_ece_data = data;});
25
  $('input[type=radio][name=models]').change(function() {diagram.src = updateFigurePath();});
 
27
  if(this.value !== 'ts') {
28
  $("#ts-slider").slider('disable');
29
  $("#bin-slider").slider('enable');
 
30
  $( "#bin-slider" ).slider({
31
  step: 1,
32
  min: 4,
 
39
  else {
40
  $("#bin-slider").slider('disable');
41
  $("#ts-slider").slider('enable');
 
42
  $( "#bin-slider" ).slider({
43
  step: 1,
44
  min: 10,