Update assets/js/calibration.js
Browse files- assets/js/calibration.js +10 -17
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,29 +27,22 @@ $(document).ready(function(){
|
|
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,
|
33 |
-
max: 40,
|
34 |
-
value: 15,
|
35 |
-
create: function() {bin_handle.text($(this).slider("value"));},
|
36 |
-
slide: function(event, ui) {bin_handle.text(ui.value);diagram.src = updateFigurePath(ui.value);},
|
37 |
-
});
|
38 |
}
|
39 |
else {
|
40 |
$("#bin-slider").slider('disable');
|
41 |
$("#ts-slider").slider('enable');
|
42 |
-
$( "#bin-slider" ).slider({
|
43 |
-
step: 1,
|
44 |
-
min: 10,
|
45 |
-
max: 20,
|
46 |
-
value: 15,
|
47 |
-
create: function() {bin_handle.text($(this).slider("value"));},
|
48 |
-
slide: function(event, ui) {bin_handle.text(ui.value);diagram.src = updateFigurePath(ui.value);},
|
49 |
-
});
|
50 |
}
|
51 |
diagram.src = updateFigurePath();
|
52 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
var ts_handle = $("#temp-scale");
|
54 |
$("#ts-slider").slider({
|
55 |
step: 0.2,
|
|
|
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 |
if(this.value !== 'ts') {
|
28 |
$("#ts-slider").slider('disable');
|
29 |
$("#bin-slider").slider('enable');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
}
|
31 |
else {
|
32 |
$("#bin-slider").slider('disable');
|
33 |
$("#ts-slider").slider('enable');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
}
|
35 |
diagram.src = updateFigurePath();
|
36 |
});
|
37 |
+
var bin_handle = $("#bin-num");
|
38 |
+
$( "#bin-slider" ).slider({
|
39 |
+
step: 1,
|
40 |
+
min: 4,
|
41 |
+
max: 40,
|
42 |
+
value: 15,
|
43 |
+
create: function() {bin_handle.text($(this).slider("value"));},
|
44 |
+
slide: function(event, ui) {bin_handle.text(ui.value);diagram.src = updateFigurePath(ui.value);},
|
45 |
+
});
|
46 |
var ts_handle = $("#temp-scale");
|
47 |
$("#ts-slider").slider({
|
48 |
step: 0.2,
|