benchmarks / div2k_gaussian_deblurring /benchmarks_results.html
jtachella's picture
Upload 4 files
ee10cab verified
<!DOCTYPE html>
<html>
<head>
<meta HTTP-EQUIV="Access-Control-Allow-Origin" CONTENT="*">
<meta charset="utf-8" />
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>📈</text></svg>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Kanit:wght@300&display=swap" rel="stylesheet">
<title>Result on benchmarks benchmark</title>
<style>
/*
! tailwindcss v3.1.2 | MIT License | https://tailwindcss.com
*/
/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/
*,
::before,
::after {
box-sizing: border-box;
/* 1 */
border-width: 0;
/* 2 */
border-style: solid;
/* 2 */
border-color: #e5e7eb;
/* 2 */
}
::before,
::after {
--tw-content: '';
}
/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
*/
html {
line-height: 1.5;
/* 1 */
-webkit-text-size-adjust: 100%;
/* 2 */
-moz-tab-size: 4;
/* 3 */
-o-tab-size: 4;
tab-size: 4;
/* 3 */
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
/* 4 */
}
/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/
body {
margin: 0;
/* 1 */
line-height: inherit;
/* 2 */
}
/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/
hr {
height: 0;
/* 1 */
color: inherit;
/* 2 */
border-top-width: 1px;
/* 3 */
}
/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/
abbr:where([title]) {
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
/*
Remove the default font size and weight for headings.
*/
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: inherit;
font-weight: inherit;
}
/*
Reset links to optimize for opt-in styling instead of opt-out.
*/
a {
color: inherit;
text-decoration: inherit;
}
/*
Add the correct font weight in Edge and Safari.
*/
b,
strong {
font-weight: bolder;
}
/*
1. Use the user's configured `mono` font family by default.
2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp,
pre {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
/* 1 */
font-size: 1em;
/* 2 */
}
/*
Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/
table {
text-indent: 0;
/* 1 */
border-color: inherit;
/* 2 */
border-collapse: collapse;
/* 3 */
}
/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/
button,
input,
optgroup,
select,
textarea {
font-family: inherit;
/* 1 */
font-size: 100%;
/* 1 */
font-weight: inherit;
/* 1 */
line-height: inherit;
/* 1 */
color: inherit;
/* 1 */
margin: 0;
/* 2 */
padding: 0;
/* 3 */
}
/*
Remove the inheritance of text transform in Edge and Firefox.
*/
button,
select {
text-transform: none;
}
/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/
button,
[type='button'],
[type='reset'],
[type='submit'] {
-webkit-appearance: button;
/* 1 */
background-color: transparent;
/* 2 */
background-image: none;
/* 2 */
}
/*
Use the modern Firefox focus style for all focusable elements.
*/
:-moz-focusring {
outline: auto;
}
/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/
:-moz-ui-invalid {
box-shadow: none;
}
/*
Add the correct vertical alignment in Chrome and Firefox.
*/
progress {
vertical-align: baseline;
}
/*
Correct the cursor style of increment and decrement buttons in Safari.
*/
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
height: auto;
}
/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/
[type='search'] {
-webkit-appearance: textfield;
/* 1 */
outline-offset: -2px;
/* 2 */
}
/*
Remove the inner padding in Chrome and Safari on macOS.
*/
::-webkit-search-decoration {
-webkit-appearance: none;
}
/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button;
/* 1 */
font: inherit;
/* 2 */
}
/*
Add the correct display in Chrome and Safari.
*/
summary {
display: list-item;
}
/*
Removes the default spacing and border for appropriate elements.
*/
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
margin: 0;
}
fieldset {
margin: 0;
padding: 0;
}
legend {
padding: 0;
}
ol,
ul,
menu {
list-style: none;
margin: 0;
padding: 0;
}
/*
Prevent resizing textareas horizontally by default.
*/
textarea {
resize: vertical;
}
/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/
input::-moz-placeholder, textarea::-moz-placeholder {
opacity: 1;
/* 1 */
color: #9ca3af;
/* 2 */
}
input:-ms-input-placeholder, textarea:-ms-input-placeholder {
opacity: 1;
/* 1 */
color: #9ca3af;
/* 2 */
}
input::placeholder,
textarea::placeholder {
opacity: 1;
/* 1 */
color: #9ca3af;
/* 2 */
}
/*
Set the default cursor for buttons.
*/
button,
[role="button"] {
cursor: pointer;
}
/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
cursor: default;
}
/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
This can trigger a poorly considered lint error in some tools but is included by design.
*/
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
display: block;
/* 1 */
vertical-align: middle;
/* 2 */
}
/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/
img,
video {
max-width: 100%;
height: auto;
}
*, ::before, ::after {
--tw-border-spacing-x: 0;
--tw-border-spacing-y: 0;
--tw-translate-x: 0;
--tw-translate-y: 0;
--tw-rotate: 0;
--tw-skew-x: 0;
--tw-skew-y: 0;
--tw-scale-x: 1;
--tw-scale-y: 1;
--tw-pan-x: ;
--tw-pan-y: ;
--tw-pinch-zoom: ;
--tw-scroll-snap-strictness: proximity;
--tw-ordinal: ;
--tw-slashed-zero: ;
--tw-numeric-figure: ;
--tw-numeric-spacing: ;
--tw-numeric-fraction: ;
--tw-ring-inset: ;
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: rgb(59 130 246 / 0.5);
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
--tw-shadow: 0 0 #0000;
--tw-shadow-colored: 0 0 #0000;
--tw-blur: ;
--tw-brightness: ;
--tw-contrast: ;
--tw-grayscale: ;
--tw-hue-rotate: ;
--tw-invert: ;
--tw-saturate: ;
--tw-sepia: ;
--tw-drop-shadow: ;
--tw-backdrop-blur: ;
--tw-backdrop-brightness: ;
--tw-backdrop-contrast: ;
--tw-backdrop-grayscale: ;
--tw-backdrop-hue-rotate: ;
--tw-backdrop-invert: ;
--tw-backdrop-opacity: ;
--tw-backdrop-saturate: ;
--tw-backdrop-sepia: ;
}
::-webkit-backdrop {
--tw-border-spacing-x: 0;
--tw-border-spacing-y: 0;
--tw-translate-x: 0;
--tw-translate-y: 0;
--tw-rotate: 0;
--tw-skew-x: 0;
--tw-skew-y: 0;
--tw-scale-x: 1;
--tw-scale-y: 1;
--tw-pan-x: ;
--tw-pan-y: ;
--tw-pinch-zoom: ;
--tw-scroll-snap-strictness: proximity;
--tw-ordinal: ;
--tw-slashed-zero: ;
--tw-numeric-figure: ;
--tw-numeric-spacing: ;
--tw-numeric-fraction: ;
--tw-ring-inset: ;
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: rgb(59 130 246 / 0.5);
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
--tw-shadow: 0 0 #0000;
--tw-shadow-colored: 0 0 #0000;
--tw-blur: ;
--tw-brightness: ;
--tw-contrast: ;
--tw-grayscale: ;
--tw-hue-rotate: ;
--tw-invert: ;
--tw-saturate: ;
--tw-sepia: ;
--tw-drop-shadow: ;
--tw-backdrop-blur: ;
--tw-backdrop-brightness: ;
--tw-backdrop-contrast: ;
--tw-backdrop-grayscale: ;
--tw-backdrop-hue-rotate: ;
--tw-backdrop-invert: ;
--tw-backdrop-opacity: ;
--tw-backdrop-saturate: ;
--tw-backdrop-sepia: ;
}
::backdrop {
--tw-border-spacing-x: 0;
--tw-border-spacing-y: 0;
--tw-translate-x: 0;
--tw-translate-y: 0;
--tw-rotate: 0;
--tw-skew-x: 0;
--tw-skew-y: 0;
--tw-scale-x: 1;
--tw-scale-y: 1;
--tw-pan-x: ;
--tw-pan-y: ;
--tw-pinch-zoom: ;
--tw-scroll-snap-strictness: proximity;
--tw-ordinal: ;
--tw-slashed-zero: ;
--tw-numeric-figure: ;
--tw-numeric-spacing: ;
--tw-numeric-fraction: ;
--tw-ring-inset: ;
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: rgb(59 130 246 / 0.5);
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
--tw-shadow: 0 0 #0000;
--tw-shadow-colored: 0 0 #0000;
--tw-blur: ;
--tw-brightness: ;
--tw-contrast: ;
--tw-grayscale: ;
--tw-hue-rotate: ;
--tw-invert: ;
--tw-saturate: ;
--tw-sepia: ;
--tw-drop-shadow: ;
--tw-backdrop-blur: ;
--tw-backdrop-brightness: ;
--tw-backdrop-contrast: ;
--tw-backdrop-grayscale: ;
--tw-backdrop-hue-rotate: ;
--tw-backdrop-invert: ;
--tw-backdrop-opacity: ;
--tw-backdrop-saturate: ;
--tw-backdrop-sepia: ;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.fixed {
position: fixed;
}
.absolute {
position: absolute;
}
.relative {
position: relative;
}
.inset-0 {
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
}
.left-0 {
left: 0;
}
.bottom-0 {
bottom: 0;
}
.z-10 {
z-index: 10;
}
.mx-auto {
margin-left: auto;
margin-right: auto;
}
.mt-10 {
margin-top: 2.5rem;
}
.mt-1 {
margin-top: 0.25rem;
}
.mt-8 {
margin-top: 2rem;
}
.mt-2 {
margin-top: 0.5rem;
}
.mt-5 {
margin-top: 1.25rem;
}
.mt-3 {
margin-top: 0.75rem;
}
.block {
display: block;
}
.inline {
display: inline;
}
.flex {
display: flex;
}
.inline-flex {
display: inline-flex;
}
.table {
display: table;
}
.grid {
display: grid;
}
.hidden {
display: none;
}
.h-screen {
height: 100vh;
}
.h-16 {
height: 4rem;
}
.h-10 {
height: 2.5rem;
}
.h-8 {
height: 2rem;
}
.h-6 {
height: 1.5rem;
}
.h-5 {
height: 1.25rem;
}
.h-4 {
height: 1rem;
}
.h-12 {
height: 3rem;
}
.min-h-full {
min-height: 100%;
}
.w-96 {
width: 24rem;
}
.w-full {
width: 100%;
}
.w-6 {
width: 1.5rem;
}
.w-5 {
width: 1.25rem;
}
.w-4 {
width: 1rem;
}
.w-12 {
width: 3rem;
}
.min-w-0 {
min-width: 0px;
}
.flex-1 {
flex: 1 1 0%;
}
.flex-shrink-0 {
flex-shrink: 0;
}
.transform {
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.flex-col {
flex-direction: column;
}
.flex-wrap {
flex-wrap: wrap;
}
.items-end {
align-items: flex-end;
}
.items-center {
align-items: center;
}
.justify-center {
justify-content: center;
}
.justify-between {
justify-content: space-between;
}
.space-x-4 > :not([hidden]) ~ :not([hidden]) {
--tw-space-x-reverse: 0;
margin-right: calc(1rem * var(--tw-space-x-reverse));
margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-x-3 > * + * {
margin-left: 0.75rem; /* 12px */
}
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
--tw-space-y-reverse: 0;
margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
--tw-space-y-reverse: 0;
margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
--tw-space-x-reverse: 0;
margin-right: calc(0.5rem * var(--tw-space-x-reverse));
margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}
.overflow-hidden {
overflow: hidden;
}
.overflow-y-auto {
overflow-y: auto;
}
.rounded-md {
border-radius: 0.375rem;
}
.rounded-lg {
border-radius: 0.5rem;
}
.rounded-full {
border-radius: 9999px;
}
.border {
border-width: 1px;
}
.border-gray-300 {
--tw-border-opacity: 1;
border-color: rgb(209 213 219 / var(--tw-border-opacity));
}
.border-blue-600 {
border-color: rgb(37 99 235);
}
.border-gray-800 {
--tw-border-opacity: 1;
border-color: rgb(31 41 55 / var(--tw-border-opacity));
}
.hover\:border-gray-300:hover {
--tw-border-opacity: 1;
border-color: rgb(209 213 219 / var(--tw-border-opacity));
}
.hover\:border-gray-700:hover {
border-color: rgb(55 65 81);
}
.border-transparent {
border-color: transparent;
}
.border-t {
border-top-width: 1px;
}
.border-t-2 {
border-top-width: 2px;
}
.border-b {
border-bottom-width: 1px;
}
.border-b-2 {
border-bottom-width: 2px;
}
.bg-gray-700 {
--tw-bg-opacity: 1;
background-color: rgb(55 65 81 / var(--tw-bg-opacity));
}
.bg-gray-800 {
--tw-bg-opacity: 1;
background-color: rgb(31 41 55 / var(--tw-bg-opacity));
}
.bg-blue-600 {
--tw-bg-opacity: 1;
background-color: rgb(37 99 235 / var(--tw-bg-opacity));
}
.bg-white {
--tw-bg-opacity: 1;
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}
.bg-gray-500 {
--tw-bg-opacity: 1;
background-color: rgb(107 114 128 / var(--tw-bg-opacity));
}
.bg-slate-200 {
--tw-bg-opacity: 1;
background-color: rgb(241 245 249 / var(--tw-bg-opacity));
}
.bg-blue-100 {
--tw-bg-opacity: 1;
background-color: rgb(219 234 254 / var(--tw-bg-opacity));
}
.bg-gray-50 {
--tw-bg-opacity: 1;
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
}
.bg-opacity-75 {
--tw-bg-opacity: 0.75;
}
.p-1 {
padding: 0.25rem;
}
.p-2 {
padding: 0.5rem;
}
.p-4 {
padding: 1rem;
}
.p-10 {
padding: 2.5rem;
}
.px-8 {
padding-left: 2rem;
padding-right: 2rem;
}
.px-4 {
padding-left: 1rem;
padding-right: 1rem;
}
.px-3 {
padding-left: 0.75rem;
padding-right: 0.75rem;
}
.py-2 {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
.px-2 {
padding-left: 0.5rem;
padding-right: 0.5rem;
}
.py-4 {
padding-top: 1rem;
padding-bottom: 1rem;
}
.py-1 {
padding-top: 0.25rem;
padding-bottom: 0.25rem;
}
.py-3 {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
}
.pt-2 {
padding-top: 0.5rem;
}
.pt-4 {
padding-top: 1rem;
}
.pb-0 {
padding-bottom: 0;
}
.pb-1 {
padding-bottom: 0.25rem;
}
.pb-3 {
padding-bottom: 0.75rem;
}
.pt-5 {
padding-top: 1.25rem;
}
.pb-4 {
padding-bottom: 1rem;
}
.pb-10 {
padding-bottom: 2.5rem; /* 40px */
}
.text-left {
text-align: left;
}
.text-center {
text-align: center;
}
.text-2xl {
font-size: 1.5rem;
line-height: 2rem;
}
.text-sm {
font-size: 0.875rem;
line-height: 1.25rem;
}
.text-xl {
font-size: 1.25rem;
line-height: 1.75rem;
}
.text-base {
font-size: 1rem;
line-height: 1.5rem;
}
.text-lg {
font-size: 1.125rem;
line-height: 1.75rem;
}
.font-medium {
font-weight: 500;
}
.font-semibold {
font-weight: 600;
}
.hover\:font-semibold:hover {
font-weight: 600;
}
.font-bold {
font-weight: 700;
}
.capitalize {
text-transform: capitalize;
}
.leading-5 {
line-height: 1.25rem;
}
.leading-7 {
line-height: 1.75rem;
}
.leading-6 {
line-height: 1.5rem;
}
.text-white {
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
}
.text-gray-100 {
--tw-text-opacity: 1;
color: rgb(243 244 246 / var(--tw-text-opacity));
}
.text-gray-400 {
color: rgb(156 163 175);
}
.text-gray-500 {
--tw-text-opacity: 1;
color: rgb(107 114 128 / var(--tw-text-opacity));
}
.hover\:text-gray-500:hover {
--tw-text-opacity: 1;
color: rgb(107 114 128 / var(--tw-text-opacity));
}
.text-gray-900 {
--tw-text-opacity: 1;
color: rgb(17 24 39 / var(--tw-text-opacity));
}
.text-black {
--tw-text-opacity: 1;
color: rgb(0 0 0 / var(--tw-text-opacity));
}
.text-blue-600 {
--tw-text-opacity: 1;
color: rgb(37 99 235 / var(--tw-text-opacity));
}
.text-gray-700 {
--tw-text-opacity: 1;
color: rgb(55 65 81 / var(--tw-text-opacity));
}
.hover\:text-gray-700:hover {
--tw-text-opacity: 1;
color: rgb(55 65 81 / var(--tw-text-opacity));
}
.shadow-sm {
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-xl {
--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.transition-opacity {
transition-property: opacity;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 150ms;
}
.transition-all {
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 150ms;
}
.hover\:bg-blue-800:hover {
--tw-bg-opacity: 1;
background-color: rgb(30 64 175 / var(--tw-bg-opacity));
}
.hover\:bg-gray-100:hover {
--tw-bg-opacity: 1;
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
}
.hover\:bg-blue-700:hover {
--tw-bg-opacity: 1;
background-color: rgb(29 78 216 / var(--tw-bg-opacity));
}
.hover\:bg-gray-50:hover {
--tw-bg-opacity: 1;
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
}
.hover\:text-white:hover {
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
}
.focus\:border-blue-500:focus {
--tw-border-opacity: 1;
border-color: rgb(59 130 246 / var(--tw-border-opacity));
}
.focus\:outline-none:focus {
outline: 2px solid transparent;
outline-offset: 2px;
}
.focus\:ring-2:focus {
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus\:ring-inset:focus {
--tw-ring-inset: inset;
}
.focus\:ring-blue-500:focus {
--tw-ring-opacity: 1;
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
}
.focus\:ring-white:focus {
--tw-ring-opacity: 1;
--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity));
}
.focus\:ring-gray-500:focus {
--tw-ring-opacity: 1;
--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity));
}
.focus\:ring-offset-2:focus {
--tw-ring-offset-width: 2px;
}
@media (min-width: 640px) {
.sm\:my-8 {
margin-top: 2rem;
margin-bottom: 2rem;
}
.sm\:mx-0 {
margin-left: 0px;
margin-right: 0px;
}
.sm\:mt-0 {
margin-top: 0px;
}
.sm\:ml-3 {
margin-left: 0.75rem;
}
.sm\:ml-4 {
margin-left: 1rem;
}
.sm\:block {
display: block;
}
.sm\:flex {
display: flex;
}
.sm\:hidden {
display: none;
}
.sm\:h-10 {
height: 2.5rem;
}
.sm\:w-full {
width: 100%;
}
.sm\:w-10 {
width: 2.5rem;
}
.sm\:w-auto {
width: auto;
}
.sm\:max-w-lg {
max-width: 32rem;
}
.sm\:flex-row-reverse {
flex-direction: row-reverse;
}
.sm\:items-start {
align-items: flex-start;
}
.sm\:items-center {
align-items: center;
}
.sm\:items-stretch {
align-items: stretch;
}
.sm\:justify-start {
justify-content: flex-start;
}
.sm\:space-x-6 > :not([hidden]) ~ :not([hidden]) {
--tw-space-x-reverse: 0;
margin-right: calc(1.5rem * var(--tw-space-x-reverse));
margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
}
.sm\:truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sm\:p-0 {
padding: 0px;
}
.sm\:p-6 {
padding: 1.5rem;
}
.sm\:px-6 {
padding-left: 1.5rem;
padding-right: 1.5rem;
}
.sm\:pb-4 {
padding-bottom: 1rem;
}
.sm\:text-left {
text-align: left;
}
.sm\:text-sm {
font-size: 0.875rem;
line-height: 1.25rem;
}
.sm\:text-3xl {
font-size: 1.875rem;
line-height: 2.25rem;
}
.sm\:mr-6 {
margin-right: 1.5rem; /* 24px */
}
}
@media (min-width: 768px) {
.md\:inline {
display: inline;
}
.md\:flex {
display: flex;
}
.md\:hidden {
display: none;
}
.md\:justify-start {
justify-content: flex-start;
}
.md\:text-left {
text-align: left;
}
.md\:block {
display: block;
}
.md\:inline-block {
display: inline-block;
}
}
@media (min-width: 1024px) {
.lg\:mt-0 {
margin-top: 0px;
}
.lg\:ml-4 {
margin-left: 1rem;
}
.lg\:flex {
display: flex;
}
.lg\:items-center {
align-items: center;
}
.lg\:justify-between {
justify-content: space-between;
}
.lg\:inline {
display: inline;
}
.lg\:hidden {
display: none;
}
.lg\:justify-start {
justify-content: flex-start;
}
.lg\:text-left {
text-align: left;
}
.lg\:block {
display:block;
}
}
.overflow-scroll {
overflow: scroll;
}
.overflow-x-auto {
overflow-x: auto;
}
.absolute {
position: absolute;
}
.px-1 {
padding-left: 0.25rem; /* 4px */
padding-right: 0.25rem; /* 4px */
}
.px-10 {
padding-left: 2.5rem; /* 40px */
padding-right: 2.5rem; /* 40px */
}
.py-10 {
padding-top: 2.5rem; /* 40px */
padding-bottom: 2.5rem; /* 40px */
}
.mb-4 {
margin-bottom: 1rem; /* 16px */
}
.-mb-px {
margin-bottom: 1px;
}
.mt-4 {
margin-top: 1rem; /* 16px */
}
.mr-6 {
margin-right: 1.5rem; /* 24px */
}
.mr-4 {
margin-right: 1rem; /* 24px */
}
.rounded {
border-radius: 0.25rem; /* 4px */
}
.whitespace-nowrap {
white-space: nowrap;
}
.cursor-pointer {
cursor: pointer;
}
/*----------------------------------------*/
/***** Stylesheet for the hover index *****/
/*----------------------------------------*/
/* Place rectangles in a grid */
.grid {
position: relative;
/* each rectangle is dependant of others */
margin: 0 auto;
padding: 1em 0 4em;
/* padding top horizontal bottom */
display: grid;
/* type of boxes generated */
max-width: 1000px;
list-style: none;
/* no item */
text-align: center;
column-gap: 2em;
/* space between columns */
}
/* Figure inside grid */
.grid figure {
position: relative;
float: left;
overflow: hidden;
/* overflow not taken into account */
margin: 10px 1%;
width: 100%;
/* 100% of the column */
background: #3085a3;
text-align: center;
cursor: pointer;
/* change shape cursor */
border-radius: 30px;
/* rounded corners */
}
/* Each figure contains an img */
.grid figure img {
position: relative;
display: block;
max-height: 100%;
max-width: 100%;
opacity: 1;
/* over a dummy image */
}
/* Style caption (title of benchmarks) */
.grid figure figcaption {
padding: 0.1em;
/* add space */
color: #fff;
/* writing color */
text-transform: uppercase;
/* title in uppercase */
font-size: 1.25em;
}
/* Small sized screens */
@media (min-width: 600px) {
.grid {
grid-template-columns: repeat(2, 1fr);
}
/* split in 2 columns */
}
/* Larger sized screens */
@media (min-width: 900px) {
.grid {
grid-template-columns: repeat(3, 1fr);
}
/* split in 3 columns */
}
/* Position and style of <a> elements (the View more) */
.grid figure figcaption,
.grid figure figcaption>a {
position: absolute;
top: 0em;
/* no space offset top */
left: 0;
width: 100%;
height: 100%;
}
/* only to figcaption <a> tag */
.grid figure figcaption>a {
z-index: 1000;
/* top level */
text-indent: 0%;
white-space: nowrap;
font-size: 0;
/* do not display the View more */
opacity: 1;
}
/* h2: Problem name (LASSO, ...) */
.grid figure h2 {
word-spacing: 0em;
font-weight: 300;
}
.grid figure h2 span {
font-weight: 800;
}
.grid figure h2,
.grid figure p {
margin: 0;
}
/* p: number of files */
.grid figure p {
letter-spacing: 1px;
font-size: 70%;
}
/* Default color */
figure.effect-ruby {
height: 150px;
background-color: #2c3e50;
}
/* Color when hovering */
figure.effect-ruby:hover {
background-color: DodgerBlue;
}
/* Define transformation */
figure.effect-ruby img {
opacity: 0;
transition: opacity 0.35s, transform 0.35s;
/* transition time */
transform: scale(1.15);
/* size transformation -> bigger */
}
/* transformation with hovering */
figure.effect-ruby:hover img {
opacity: 0;
transform: scale(1);
/* size -> smaller */
}
/* Apply effect to problem name */
figure.effect-ruby h2 {
margin-top: 0;
transition: transform 0.35s;
/* transition time */
transform: translate3d(0, calc((150px - 100%)/2), 0);
font-size: 1.25em;
/* default font */
}
figure.effect-ruby p {
margin: 2em -1em 2em -1em;
padding: 1em 0em 1em 0em;
border: 1px solid #fff;
/* create sort of white frame */
opacity: 0;
transition: opacity 0.35s, transform 0.35s;
transform: translate3d(0, 20px, 0) scale(1.1);
/* size transform */
}
/* Transform title on hover */
figure.effect-ruby:hover h2 {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0px, 10px, 0) scale(0.8);
/* smaller */
margin-top: 0em;
/* move up */
}
figure.effect-ruby:hover p {
opacity: 1;
transform: translate3d(0, 0, 0) scale(1.2);
/* placement in box */
}
/* Button for inside the table with system informations */
.buttoncent {
border: none;
background-color: transparent;
outline: none;
text-align: center;
}
/* button for inside text
in benchmark page above graph for system informations */
.buttonleft {
border: none;
background-color: transparent;
outline: none;
text-align: center;
margin-left: 1px;
/* add margin */
}
/* switch slider with an adaptable height.
Change switch-height and switch-padding, and all the dimensions are adjusted.
See https://stackoverflow.com/questions/70590125/how-to-change-the-size-of-a-css-toggle-switch */
* {
--switch-height: 20px;
--switch-padding: 2px;
--switch-width: calc((var(--switch-height) * 2) - var(--switch-padding));
--slider-height: calc(var(--switch-height) - var(--switch-padding));
--slider-on: calc(var(--switch-height) - var(--switch-padding));
}
.switch {
position: relative;
display: inline-block;
width: var(--switch-width);
height: var(--switch-height);
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
content: "";
position: absolute;
height: var(--slider-height);
width: var(--slider-height);
left: calc(var(--switch-padding) / 2);
bottom: calc(var(--switch-padding) / 2);
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked+.slider {
background-color: #2196F3;
}
input:focus+.slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked+.slider:before {
-webkit-transform: translateX(var(--slider-on));
-ms-transform: translateX(var(--slider-on));
transform: translateX(var(--slider-on));
}
.slider.round {
border-radius: var(--slider-height);
}
.slider.round:before {
border-radius: 50%;
}
/*----------------------------------------*/
/***** Brand text animated *****/
/*----------------------------------------*/
.ml11 .text-wrapper {
position: relative;
display: inline-block;
padding-top: 0.1em;
padding-right: 0.05em;
padding-bottom: 0.15em;
}
.ml11 .line {
opacity: 0;
position: absolute;
left: 0;
height: 100%;
width: 3px;
background-color: #fff;
transform-origin: 0 50%;
}
.ml11 .line1 {
top: 0;
left: 0;
}
.ml11 .letter {
display: inline-block;
line-height: 1em;
font-family: 'Kanit', sans-serif;
}
/*----------------------------------------*/
/***** Plot *****/
/*----------------------------------------*/
@media (min-width: 768px) {
#unique_plot {
flex: 1 1 0%;
}
}
@media (max-width: 767px) {
#unique_plot {
flex: initial;
flex-shrink: 0;
}
}
.js-plotly-plot .plotly .modebar {
transform: translateX(-30px);
}
/*----------------------------------------*/
/***** Custom legend *****/
/*----------------------------------------*/
#plot_legend {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
#legend_title {
font-size: 1.2rem;
font-weight: bold;
}
#legend_help {
font-size: 0.75rem;
color: #475569;
}
.space-r-2>* {
margin-right: 0.5rem;
}
.objective-description-content {
visibility: hidden;
background-color: rgb(55 65 81);
color: #fff;
border-radius: 6px;
margin-top: 1.5em;
padding-right: 0.5em;
padding-left: 0.5em;
padding-top: 1em;
padding-bottom: 1em;
opacity: 90%;
max-width: 80ch;
max-height: 200px;
overflow-y: auto;
white-space: pre-wrap;
position: absolute;
z-index: 99999;
}
.objective-description-trigger {
display: flex;
flex-direction: row;
}
.objective-description-icon {
width: 1.25rem;
align-self: center;
border-radius: 50%;
}
.objective-description-trigger:hover .objective-description-content {
visibility: visible;
}
/* Description solver when hovered */
.curve-description-container {
position: relative;
display: inline-flex;
}
.curve-description-content {
display: flex;
flex-direction: column;
visibility: hidden;
background-color: rgb(55 65 81);
color: #fff;
border-radius: 6px;
padding-top: 0.5em;
padding-bottom: 0.6em;
padding-left: 0.5em;
padding-right: 0.5rem;
opacity: 90%;
width: max-content;
max-width: 80ch;
max-height: 500px;
white-space: pre-wrap;
/* position description with respect to container and put it top-center */
position: absolute;
transform: translate(0, -100%);
z-index: 99999;
}
/* Show description when hovered */
.curve-description-container:hover .curve-description-content {
visibility: visible;
}
/*Arrow at the bottom of the description*/
.curve-description-container .curve-description-content::after {
content: " ";
position: absolute;
top: 100%;
left: 20px;
margin-left: -5px;
border-width: 7px;
border-style: solid;
border-color: rgb(55 65 81) transparent transparent transparent;
}
.curve-description-title {
margin-bottom: 1em;
font-weight: bolder;
}
.curve-description-body {
max-height: 450px;
overflow-y: auto;
}
/*Plot config styling as a bag of tags*/
#plot_config_title {
font-weight: bold;
}
.config-item, .config-ctrl {
border-radius: 9999px;
padding-left: 1em;
padding-right: 1em;
color: white;
margin-left: 2ex;
cursor: pointer;
/* font styles*/
font-size: 0.875rem;
line-height: 1.25rem;
font-weight: 400;
}
.config-item {
background-color: rgb(91, 78, 255);
border-color: rgb(55 65 81);
}
.config-ctrl {
font-size: medium;
font-weight: bold;
background-color: rgb(34, 30, 94);
border-color: rgb(23, 37, 59);
}
.view_selector_label {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.view_selector_select {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
background-position: right 0.5rem center;
background-repeat: no-repeat;
background-size: 1.5em 1.5em;
padding-right: 2.5rem;
-webkit-print-color-adjust: exact;
color-adjust: exact;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-color: #fff;
border-width: 1px;
font-size: 1rem;
line-height: 1.5rem;
--tw-shadow: 0 0 #0000;
--tw-border-opacity: 1;
border-color: rgb(209 213 219 / var(--tw-border-opacity));
}
.view.active {
border-color: rgb(37 99 235);!important;
color: rgb(37 99 235);!important;
}
/* Hide q1, q3, max, min, upper fence, lower fence on boxplot */
g.hovertext:has(path + [data-unformatted*="q1"]),
g.hovertext:has(path + [data-unformatted*="q3"]),
g.hovertext:has(path + [data-unformatted*="max"]),
g.hovertext:has(path + [data-unformatted*="min"]),
g.hovertext:has(path + [data-unformatted*="upper fence"]),
g.hovertext:has(path + [data-unformatted*="lower fence"])
{
display: none;
}
/* Fixed aspect ratio for plot containers on mobile devices for better readability */
/* plot_with_legend_container is used for scatter plots and is always present */
/* Mobile portrait: Use taller aspect ratio to fill vertical space */
@media (max-width: 767px) and (orientation: portrait) {
#plot_with_legend_container {
aspect-ratio: 3 / 4; /* Taller aspect ratio for portrait */
min-height: 400px;
max-height: 70vh;
}
#plot_container.js-plotly-plot {
aspect-ratio: 3 / 4;
min-height: 400px;
max-height: 70vh;
}
}
/* Mobile landscape: Use wider aspect ratio */
@media (max-width: 767px) and (orientation: landscape) {
#plot_with_legend_container {
aspect-ratio: 4 / 3;
min-height: 300px;
max-height: 80vh; /* Use most of screen height in landscape */
}
#plot_container.js-plotly-plot {
aspect-ratio: 4 / 3;
min-height: 300px;
max-height: 80vh;
}
}
/* Desktop: Remove aspect ratio constraints for flexibility */
@media (min-width: 768px) {
#plot_with_legend_container {
aspect-ratio: auto;
min-height: 600px;
max-height: none;
}
#plot_container.js-plotly-plot {
aspect-ratio: auto;
min-height: 0;
max-height: none;
}
}
</style>
</head>
<body>
<!-- Two main columns container -->
<div class="flex">
<!-- Left column on big screen (plot selectors) -->
<div class="hidden lg:flex flex-col w-96 bg-gray-700">
<div class="h-screen" onchange="setAllViewsToNonActive()">
<div class="px-8 h-16 flex items-center bg-gray-800">
<h1 class="ml11">
<span class="text-wrapper">
<span class="line line1"></span>
<span id="brand" class="hidden letters text-2xl text-white">Benchopt</span>
</span>
</h1>
</div>
<div class="mt-8 px-8">
<label for="plot_kind" class="block text-sm font-medium text-white">Chart type</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="plot_kind" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({plot_kind: this.value, scale: (this.value === 'boxplot' || this.value === 'bar_chart' ? 'linear' : state().scale)})">
<option value="objective_curve">
Objective curve
</option>
<option value="bar_chart">
Bar chart
</option>
<option value="boxplot">
Boxplot
</option>
<option value="table">
Table
</option>
</select>
</div>
</div>
<div class="flex-1 flex flex-col">
<div id="scale-form-group" class="mt-8 px-8">
<label for="change_scale" class="block text-sm font-medium text-white">Scale</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_scale" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({scale: this.value})">
<option value="linear">linear</option>
<!-- Options for other plots -->
<option class="other_plot_option" value="semilog-y">semilog-y</option>
<option class="other_plot_option" value="semilog-x">semilog-x</option>
<option class="other_plot_option" value="loglog">loglog</option>
<!-- Option for boxplot -->
<option class="boxplot_option" value="log">log</option>
</select>
</div>
</div>
<div id="change-shades-form-group" class="flex items-center justify-between mt-8 px-8">
<div class="block text-sm font-medium text-white">Quantiles</div>
<label class="block switch">
<input id="change_shades" type="checkbox" checked onchange="setState({with_quantiles: this.checked})">
<span class="slider round"></span>
</label>
</div>
<div id="change-relative-suboptimal-form-group" class="flex items-center justify-between mt-8 px-8">
<div class="block text-sm font-medium text-white">Suboptimal Curve</div>
<label class="block switch">
<input id="change_suboptimal" type="checkbox" onchange="setState({suboptimal_curve: this.checked})">
<span class="slider round"></span>
</label>
</div>
<div id="change-relative-suboptimal-form-group" class="flex items-center justify-between mt-8 px-8">
<div class="block text-sm font-medium text-white">Relative Curve</div>
<label class="block switch">
<input id="change_relative" type="checkbox" onchange="setState({relative_curve: this.checked})">
<span class="slider round"></span>
</label>
</div>
<div id="objective_curve-custom-params-container">
<div id="objective_curve_dataset_form_group" class="mt-8 px-8">
<label for="change_objective_curve_dataset" class="block text-sm font-medium text-white">dataset</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_objective_curve_dataset" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({objective_curve_dataset: this.value})">
<option value="DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]">DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]</option>
</select>
</div>
</div>
<div id="objective_curve_objective_form_group" class="mt-8 px-8">
<label for="change_objective_curve_objective" class="block text-sm font-medium text-white">objective</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_objective_curve_objective" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({objective_curve_objective: this.value})">
<option value="DIV2K Gaussian Deblurring">DIV2K Gaussian Deblurring</option>
</select>
</div>
</div>
<div id="objective_curve_objective_column_form_group" class="mt-8 px-8">
<label for="change_objective_curve_objective_column" class="block text-sm font-medium text-white">objective_column</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_objective_curve_objective_column" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({objective_curve_objective_column: this.value})">
<option value="objective_PSNR">objective_PSNR</option>
<option value="objective_PSNR_std">objective_PSNR_std</option>
<option value="objective_NIQE">objective_NIQE</option>
<option value="objective_NIQE_std">objective_NIQE_std</option>
<option value="objective_runtime">objective_runtime</option>
<option value="objective_runtime_std">objective_runtime_std</option>
</select>
</div>
</div>
<div id="objective_curve_X_axis_form_group" class="mt-8 px-8">
<label for="change_objective_curve_X_axis" class="block text-sm font-medium text-white">X_axis</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_objective_curve_X_axis" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({objective_curve_X_axis: this.value})">
<option value="Time">Time</option>
<option value="Iteration">Iteration</option>
</select>
</div>
</div>
</div>
<div id="bar_chart-custom-params-container">
<div id="bar_chart_dataset_form_group" class="mt-8 px-8">
<label for="change_bar_chart_dataset" class="block text-sm font-medium text-white">dataset</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_bar_chart_dataset" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({bar_chart_dataset: this.value})">
<option value="DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]">DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]</option>
</select>
</div>
</div>
<div id="bar_chart_objective_form_group" class="mt-8 px-8">
<label for="change_bar_chart_objective" class="block text-sm font-medium text-white">objective</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_bar_chart_objective" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({bar_chart_objective: this.value})">
<option value="DIV2K Gaussian Deblurring">DIV2K Gaussian Deblurring</option>
</select>
</div>
</div>
<div id="bar_chart_objective_column_form_group" class="mt-8 px-8">
<label for="change_bar_chart_objective_column" class="block text-sm font-medium text-white">objective_column</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_bar_chart_objective_column" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({bar_chart_objective_column: this.value})">
<option value="objective_PSNR">objective_PSNR</option>
<option value="objective_PSNR_std">objective_PSNR_std</option>
<option value="objective_NIQE">objective_NIQE</option>
<option value="objective_NIQE_std">objective_NIQE_std</option>
<option value="objective_runtime">objective_runtime</option>
<option value="objective_runtime_std">objective_runtime_std</option>
</select>
</div>
</div>
</div>
<div id="boxplot-custom-params-container">
<div id="boxplot_dataset_form_group" class="mt-8 px-8">
<label for="change_boxplot_dataset" class="block text-sm font-medium text-white">dataset</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_boxplot_dataset" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({boxplot_dataset: this.value})">
<option value="DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]">DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]</option>
</select>
</div>
</div>
<div id="boxplot_objective_form_group" class="mt-8 px-8">
<label for="change_boxplot_objective" class="block text-sm font-medium text-white">objective</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_boxplot_objective" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({boxplot_objective: this.value})">
<option value="DIV2K Gaussian Deblurring">DIV2K Gaussian Deblurring</option>
</select>
</div>
</div>
<div id="boxplot_objective_column_form_group" class="mt-8 px-8">
<label for="change_boxplot_objective_column" class="block text-sm font-medium text-white">objective_column</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_boxplot_objective_column" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({boxplot_objective_column: this.value})">
<option value="objective_PSNR">objective_PSNR</option>
<option value="objective_PSNR_std">objective_PSNR_std</option>
<option value="objective_NIQE">objective_NIQE</option>
<option value="objective_NIQE_std">objective_NIQE_std</option>
<option value="objective_runtime">objective_runtime</option>
<option value="objective_runtime_std">objective_runtime_std</option>
</select>
</div>
</div>
<div id="boxplot_X_axis_form_group" class="mt-8 px-8">
<label for="change_boxplot_X_axis" class="block text-sm font-medium text-white">X_axis</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_boxplot_X_axis" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({boxplot_X_axis: this.value})">
<option value="Solver">Solver</option>
<option value="Iteration">Iteration</option>
</select>
</div>
</div>
<div id="boxplot_Y_axis_form_group" class="mt-8 px-8">
<label for="change_boxplot_Y_axis" class="block text-sm font-medium text-white">Y_axis</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_boxplot_Y_axis" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({boxplot_Y_axis: this.value})">
<option value="Time">Time</option>
<option value="Objective Metric">Objective Metric</option>
</select>
</div>
</div>
</div>
<div id="table-custom-params-container">
<div id="table_dataset_form_group" class="mt-8 px-8">
<label for="change_table_dataset" class="block text-sm font-medium text-white">dataset</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_table_dataset" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({table_dataset: this.value})">
<option value="DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]">DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]</option>
</select>
</div>
</div>
<div id="table_objective_form_group" class="mt-8 px-8">
<label for="change_table_objective" class="block text-sm font-medium text-white">objective</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_table_objective" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({table_objective: this.value})">
<option value="DIV2K Gaussian Deblurring">DIV2K Gaussian Deblurring</option>
</select>
</div>
</div>
</div>
<div class="flex items-center justify-between mt-8 px-8">
<a href="#" class="w-full inline-flex items-center justify-center px-4 py-2 space-x-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500" onclick="return saveView()">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 6.878V6a2.25 2.25 0 012.25-2.25h7.5A2.25 2.25 0 0118 6v.878m-12 0c.235-.083.487-.128.75-.128h10.5c.263 0 .515.045.75.128m-12 0A2.25 2.25 0 004.5 9v.878m13.5-3A2.25 2.25 0 0119.5 9v.878m0 0a2.246 2.246 0 00-.75-.128H5.25c-.263 0-.515.045-.75.128m15 0A2.25 2.25 0 0121 12v6a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 18v-6c0-.98.626-1.813 1.5-2.122" />
</svg>
<span class="hidden lg:inline">Save as view</span>
</a>
</div>
</div>
</div>
</div>
<!-- Right column on big screen and main column on mobile -->
<div class="w-full flex flex-col overflow-scroll">
<!-- Main menu -->
<nav class="bg-blue-600">
<div class="px-4">
<div class="relative flex items-center justify-between h-16">
<!-- mobile navbar -->
<div class="absolute inset-0 flex items-center justify-between lg:hidden">
<!-- Mobile menu brand text -->
<span class="text-white text-xl">
Benchopt
</span>
<!-- Mobile menu button-->
<button type="button" id="btn-main-menu" class="inline-flex items-center justify-center p-2 rounded-md text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white" aria-controls="mobile-menu" aria-expanded="false">
<span class="sr-only">Open main menu</span>
<svg class="block h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h16" />
</svg>
<svg class="hidden h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
<!-- big screen navbar-->
<div class="flex-1 flex items-center justify-center lg:items-stretch lg:justify-start">
<div class="hidden lg:block">
<div class="flex space-x-4">
<a href="benchmarks.html" class="text-gray-100 hover:bg-blue-800 hover:text-white px-3 py-2 rounded-md text-sm font-medium" aria-current="page">Home</a>
<a href="https://benchopt.github.io" class="text-gray-100 hover:bg-blue-800 hover:text-white px-3 py-2 rounded-md text-sm font-medium" target="_blank">Website</a>
<a href="https://github.com/benchopt/benchopt" class="text-gray-100 hover:bg-blue-800 hover:text-white px-3 py-2 rounded-md text-sm font-medium" target="_blank">Github</a>
</div>
</div>
</div>
</div>
</div>
<!-- Mobile menu, show/hide based on menu state. -->
<div class="hidden" id="mobile-menu">
<div class="px-2 pt-2 pb-3 space-y-1">
<a href="benchmarks.html" class="text-white block px-3 py-2 rounded-md text-base font-medium" aria-current="page">Home</a>
<a href="https://benchopt.github.io" class="text-white block px-3 py-2 rounded-md text-base font-medium">Website</a>
<a href="https://github.com/benchopt/benchopt" class="text-white block px-3 py-2 rounded-md text-base font-medium">Github</a>
<a href="#" class="text-white block px-3 py-2 rounded-md text-base font-medium" onclick="return exportConfigs()">Download config</a>
<a href="#" class="text-white block px-3 py-2 rounded-md text-base font-medium" onclick="return exportHTML()">Download HTML</a>
<a href="results.parquet" class="text-white block px-3 py-2 rounded-md text-base font-medium">Download data</a>
</div>
</div>
</nav>
<!-- Plot menu for mobiles -->
<nav class="lg:hidden bg-gray-700">
<div class="px-4" id="btn-plot-config">
<div class="relative flex items-center justify-between h-10">
<div class="absolute inset-0 flex items-center justify-between lg:hidden">
<!-- Mobile menu button-->
<span class="flex items-center space-x-2 text-white">
<span>Change plot</span>
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M13 5l7 7-7 7M5 5l7 7-7 7" />
</svg>
</span>
<button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white" aria-controls="mobile-menu" aria-expanded="false">
<span class="sr-only">Open main menu</span>
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" />
<path stroke-linecap="round" stroke-linejoin="round" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
</svg>
</button>
</div>
</div>
</div>
<!-- Mobile menu, show/hide based on menu state. -->
<div class="hidden" id="mobile-plot-form">
<div class="px-2 pt-2 pb-3 space-y-4" onchange="setAllViewsToNonActive()">
<div class="px-8">
<label for="plot_kind" class="block text-sm font-medium text-white">Chart type</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="plot_kind" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({plot_kind: this.value, scale: (this.value === 'boxplot' || this.value === 'bar_chart' ? 'linear' : state().scale)})">
<option value="objective_curve">objective_curve</option>
<option value="bar_chart">bar_chart</option>
<option value="boxplot">boxplot</option>
<option value="table">table</option>
</select>
</div>
</div>
<div id="scale-form-group" class="px-8">
<label for="change_scale" class="block text-sm font-medium text-white">Scale</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_scale" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({scale: this.value})">
<option value="linear">linear</option>
<!-- Options for other plots -->
<option class="other_plot_option" value="semilog-y">semilog-y</option>
<option class="other_plot_option" value="semilog-x">semilog-x</option>
<option class="other_plot_option" value="loglog">loglog</option>
<!-- Option for boxplot -->
<option class="boxplot_option" value="log">log</option>
</select>
</div>
</div>
<div id="change-shades-form-group" class="flex items-center justify-between mt-8 px-8">
<div class="block text-sm font-medium text-white">Quantiles</div>
<label class="block switch">
<input id="change_shades" type="checkbox" checked onchange="setState({with_quantiles: this.checked})">
<span class="slider round"></span>
</label>
</div>
<div id="change-relative-suboptimal-form-group" class="flex items-center justify-between mt-8 px-8">
<div class="block text-sm font-medium text-white">Suboptimal Curve</div>
<label class="block switch">
<input id="change_suboptimal" type="checkbox" onchange="setState({suboptimal_curve: this.checked})">
<span class="slider round"></span>
</label>
</div>
<div id="change-relative-suboptimal-form-group" class="flex items-center justify-between mt-8 px-8">
<div class="block text-sm font-medium text-white">Relative Curve</div>
<label class="block switch">
<input id="change_relative" type="checkbox" onchange="setState({relative_curve: this.checked})">
<span class="slider round"></span>
</label>
</div>
<div>
<div>
<div id="objective_curve-custom-params-container">
<div id="objective_curve_dataset_form_group" class="mt-8 px-8">
<label for="change_objective_curve_dataset" class="block text-sm font-medium text-white">dataset</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_objective_curve_dataset" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({objective_curve_dataset: this.value})">
<option value="DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]">DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]</option>
</select>
</div>
</div>
<div id="objective_curve_objective_form_group" class="mt-8 px-8">
<label for="change_objective_curve_objective" class="block text-sm font-medium text-white">objective</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_objective_curve_objective" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({objective_curve_objective: this.value})">
<option value="DIV2K Gaussian Deblurring">DIV2K Gaussian Deblurring</option>
</select>
</div>
</div>
<div id="objective_curve_objective_column_form_group" class="mt-8 px-8">
<label for="change_objective_curve_objective_column" class="block text-sm font-medium text-white">objective_column</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_objective_curve_objective_column" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({objective_curve_objective_column: this.value})">
<option value="objective_PSNR">objective_PSNR</option>
<option value="objective_PSNR_std">objective_PSNR_std</option>
<option value="objective_NIQE">objective_NIQE</option>
<option value="objective_NIQE_std">objective_NIQE_std</option>
<option value="objective_runtime">objective_runtime</option>
<option value="objective_runtime_std">objective_runtime_std</option>
</select>
</div>
</div>
<div id="objective_curve_X_axis_form_group" class="mt-8 px-8">
<label for="change_objective_curve_X_axis" class="block text-sm font-medium text-white">X_axis</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_objective_curve_X_axis" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({objective_curve_X_axis: this.value})">
<option value="Time">Time</option>
<option value="Iteration">Iteration</option>
</select>
</div>
</div>
</div>
<div id="bar_chart-custom-params-container">
<div id="bar_chart_dataset_form_group" class="mt-8 px-8">
<label for="change_bar_chart_dataset" class="block text-sm font-medium text-white">dataset</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_bar_chart_dataset" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({bar_chart_dataset: this.value})">
<option value="DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]">DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]</option>
</select>
</div>
</div>
<div id="bar_chart_objective_form_group" class="mt-8 px-8">
<label for="change_bar_chart_objective" class="block text-sm font-medium text-white">objective</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_bar_chart_objective" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({bar_chart_objective: this.value})">
<option value="DIV2K Gaussian Deblurring">DIV2K Gaussian Deblurring</option>
</select>
</div>
</div>
<div id="bar_chart_objective_column_form_group" class="mt-8 px-8">
<label for="change_bar_chart_objective_column" class="block text-sm font-medium text-white">objective_column</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_bar_chart_objective_column" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({bar_chart_objective_column: this.value})">
<option value="objective_PSNR">objective_PSNR</option>
<option value="objective_PSNR_std">objective_PSNR_std</option>
<option value="objective_NIQE">objective_NIQE</option>
<option value="objective_NIQE_std">objective_NIQE_std</option>
<option value="objective_runtime">objective_runtime</option>
<option value="objective_runtime_std">objective_runtime_std</option>
</select>
</div>
</div>
</div>
<div id="boxplot-custom-params-container">
<div id="boxplot_dataset_form_group" class="mt-8 px-8">
<label for="change_boxplot_dataset" class="block text-sm font-medium text-white">dataset</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_boxplot_dataset" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({boxplot_dataset: this.value})">
<option value="DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]">DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]</option>
</select>
</div>
</div>
<div id="boxplot_objective_form_group" class="mt-8 px-8">
<label for="change_boxplot_objective" class="block text-sm font-medium text-white">objective</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_boxplot_objective" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({boxplot_objective: this.value})">
<option value="DIV2K Gaussian Deblurring">DIV2K Gaussian Deblurring</option>
</select>
</div>
</div>
<div id="boxplot_objective_column_form_group" class="mt-8 px-8">
<label for="change_boxplot_objective_column" class="block text-sm font-medium text-white">objective_column</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_boxplot_objective_column" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({boxplot_objective_column: this.value})">
<option value="objective_PSNR">objective_PSNR</option>
<option value="objective_PSNR_std">objective_PSNR_std</option>
<option value="objective_NIQE">objective_NIQE</option>
<option value="objective_NIQE_std">objective_NIQE_std</option>
<option value="objective_runtime">objective_runtime</option>
<option value="objective_runtime_std">objective_runtime_std</option>
</select>
</div>
</div>
<div id="boxplot_X_axis_form_group" class="mt-8 px-8">
<label for="change_boxplot_X_axis" class="block text-sm font-medium text-white">X_axis</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_boxplot_X_axis" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({boxplot_X_axis: this.value})">
<option value="Solver">Solver</option>
<option value="Iteration">Iteration</option>
</select>
</div>
</div>
<div id="boxplot_Y_axis_form_group" class="mt-8 px-8">
<label for="change_boxplot_Y_axis" class="block text-sm font-medium text-white">Y_axis</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_boxplot_Y_axis" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({boxplot_Y_axis: this.value})">
<option value="Time">Time</option>
<option value="Objective Metric">Objective Metric</option>
</select>
</div>
</div>
</div>
<div id="table-custom-params-container">
<div id="table_dataset_form_group" class="mt-8 px-8">
<label for="change_table_dataset" class="block text-sm font-medium text-white">dataset</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_table_dataset" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({table_dataset: this.value})">
<option value="DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]">DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]</option>
</select>
</div>
</div>
<div id="table_objective_form_group" class="mt-8 px-8">
<label for="change_table_objective" class="block text-sm font-medium text-white">objective</label>
<div class="mt-1 rounded-md shadow-sm">
<select id="change_table_objective" class="focus:ring-blue-500 focus:border-blue-500 block w-full h-8 px-4 sm:text-sm border-gray-300 rounded-md" onchange="setState({table_objective: this.value})">
<option value="DIV2K Gaussian Deblurring">DIV2K Gaussian Deblurring</option>
</select>
</div>
</div>
</div>
</div>
<div class="flex items-center justify-between mt-8 px-8">
<a href="#"
class="w-full inline-flex items-center px-4 py-2 space-x-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
onclick="saveView()">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 6.878V6a2.25 2.25 0 012.25-2.25h7.5A2.25 2.25 0 0118 6v.878m-12 0c.235-.083.487-.128.75-.128h10.5c.263 0 .515.045.75.128m-12 0A2.25 2.25 0 004.5 9v.878m13.5-3A2.25 2.25 0 0119.5 9v.878m0 0a2.246 2.246 0 00-.75-.128H5.25c-.263 0-.515.045-.75.128m15 0A2.25 2.25 0 0121 12v6a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 18v-6c0-.98.626-1.813 1.5-2.122"/>
</svg>
<span>Save as view</span>
</a>
</div>
</div>
</div>
</nav>
<!-- Page heading -->
<div class="px-4 pt-4 pb-1 md:py-4 lg:flex lg:items-center lg:justify-between">
<div class="flex-1 min-w-0">
<h2 class="w-full text-center lg:text-left text-2xl font-bold leading-7 text-gray-900 sm:text-3xl sm:truncate">Result on benchmarks benchmark</h2>
<div class="mt-1 flex flex-wrap justify-center lg:justify-start sm:mt-0">
<div class="mt-2 sm:mr-6 hidden md:flex items-center text-sm text-gray-500">
<span class="font-bold"></span>CPU : 32
</div>
<div class="mt-2 sm:mr-6 hidden md:flex items-center text-sm text-gray-500">
<span class="font-bold"></span>RAM (GB) : 63
</div>
<div class="mt-2 sm:mr-6 hidden md:flex items-center text-sm text-gray-500">
<span class="font-bold"></span>CUDA : NVIDIA GeForce RTX 4090: cuda_12.4
</div>
<div class="mt-2">
<button class="inline-flex items-center px-2 py-1 space-x-2 border border-gray-500 rounded-md shadow-sm text-sm font-medium text-gray-500 bg-white hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500" onclick="document.getElementById('system-modal').style.display = 'block'">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
<span class="hidden md:inline-block text-sm">Show more</span>
<span class="md:hidden text-sm">Show system information</span>
</button>
</div>
</div>
</div>
<div class="hidden lg:flex mt-5 lg:mt-0 lg:ml-4 space-x-4 items-center">
<span class="font-bold">Download :</span>
<span>
<a href="#" class="inline-flex items-center px-4 py-2 space-x-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500" onclick="return exportConfigs()">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" />
</svg>
<span class="hidden lg:inline">Configs</span>
</a>
</span>
<span>
<a href="#" class="inline-flex items-center px-4 py-2 space-x-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500" onclick="return exportHTML()">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"/>
</svg>
<span class="hidden lg:inline">HTML</span>
</a>
</span>
<span>
<a href="results.parquet" class="inline-flex items-center px-4 py-2 space-x-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"/>
</svg>
<span class="hidden lg:inline">Data</span>
</a>
</span>
</div>
</div>
<!-- Plot configuration -->
<div id="config_container" class="mt-8">
<div>
<div class="sm:hidden px-4">
<label for="tabs" class="view_selector_label">Select a tab</label>
<select id="tabs" name="tabs" class="block w-full rounded-md px-4 py-2 view_selector_select" onchange="setConfig(this)">
<option value="no_selected_view" >No selected view</option>
</select>
</div>
<div class="hidden sm:block">
<div class="border-t border-b">
<nav id="view-tabs" class="flex space-x-3 px-4 overflow-x-auto items-center" aria-label="Tabs">
<p class="view mr-6 py-4 px-1 text-sm font-medium border-b-2 border-transparent text-gray-700 whitespace-nowrap">Available plot views : </p>
<p id="no_view_available" class="text-sm text-gray-400 whitespace-nowrap border-b-2 border-transparent">No plot view available</p>
</nav>
</div>
</div>
</div>
</div>
<!-- Plot -->
<div id="table_container" class="flex flex-col flex-1 gap-4 p-10">
</div>
<div id="plot_container" class="flex flex-col flex-1">
<div id="plot_with_legend_container" class="flex-1"></div>
<div id="legend_container" class="pb-10 bg-slate-200">
<div class="px-10 mb-4 mt-4 text-base font-medium text-gray-700">
Solvers
<span class="text-sm font-medium text-gray-400">(Click on a solver to hide it or double click to hide all the others)</span>
</div>
<div id="plot_legend" class="px-10 space-r-2"></div>
</div>
</div>
</div>
</div>
<!-- System information modal -->
<div id="system-modal" class="hidden relative z-10" aria-labelledby="modal-title" role="dialog" aria-modal="true">
<div class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"></div>
<div class="fixed z-10 inset-0 overflow-y-auto">
<div class="flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0">
<div class="relative bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-lg sm:w-full">
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
<div class="sm:flex sm:items-start">
<div class="mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-100 sm:mx-0 sm:h-10 sm:w-10">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-blue-600" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
</div>
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
<h3 class="text-lg leading-6 font-medium text-gray-900" id="modal-title">System information</h3>
<div class="mt-2">
<ul class="text-sm text-gray-500">
<li> <b>CPU</b>: 32 </li>
<li> <b>RAM (GB)</b>: 63 </li>
<li> <b>CUDA</b>: NVIDIA GeForce RTX 4090: cuda_12.4 </li>
<li> <b>platform</b>: Linux6.12.43+deb13-amd64-x86_64 </li>
<li> <b>processor</b>: AMD Ryzen Threadripper 1950X 16-Core Processor </li>
<li> <b>numpy</b>: 2.0.1 </li>
<li> <b>scipy</b>: 1.16.2 </li>
</ul>
</div>
</div>
</div>
</div>
<div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse">
<button type="button" class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm" onclick="document.getElementById('system-modal').style.display = 'none'">Close</button>
</div>
</div>
</div>
</div>
</div>
<!-- Text area to copy config from export -->
<textarea id="config_export" class="hidden"></textarea>
<script src="https://cdn.plot.ly/plotly-2.12.1.min.js"></script>
<!-- Used for the brand animation -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/2.0.2/anime.min.js"></script>
<!-- Define the brand animation -->
<script>
var textWrapper = document.querySelector('.ml11 .letters');
textWrapper.innerHTML = textWrapper.textContent.replace(/([^\x00-\x80]|\w)/g, "<span class='letter'>$&</span>");
window.addEventListener('load', () => {
document.getElementById('brand').style.display = 'inline';
anime.timeline({loop: false})
.add({
targets: '.ml11 .line',
scaleY: [0,1],
opacity: [0.5,1],
easing: "easeOutExpo",
duration: 700
})
.add({
targets: '.ml11 .line',
translateX: [0, document.querySelector('.ml11 .letters').getBoundingClientRect().width + 10],
easing: "easeOutExpo",
duration: 700,
delay: 100
}).add({
targets: '.ml11 .letter',
opacity: [0,1],
easing: "easeOutExpo",
duration: 600,
offset: '-=775',
delay: (el, i) => 34 * (i+1)
}).add({
targets: '.ml11 .line',
scaleY: [1,0],
opacity: [1,0.5],
easing: "easeOutExpo",
duration: 700,
translateX: [document.querySelector('.ml11 .letters').getBoundingClientRect().width + 10, document.querySelector('.ml11 .letters').getBoundingClientRect().width + 10],
});
});
</script>
<!-- Manage plot -->
<script>
window._plots = {"objective_curve": {"objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Time", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [8.419156074523926e-07], "y": [22.30521011352539], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0, "x_low": [8.419156074523926e-07], "x_high": [8.419156074523926e-07]}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_Iteration": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Iteration", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [1], "y": [22.30521011352539], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_std_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Time", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [8.419156074523926e-07], "y": [1.1566289783538821], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0, "x_low": [8.419156074523926e-07], "x_high": [8.419156074523926e-07]}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_std_Iteration": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Iteration", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [1], "y": [1.1566289783538821], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Time", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [8.419156074523926e-07], "y": [13.917359352111816], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0, "x_low": [8.419156074523926e-07], "x_high": [8.419156074523926e-07]}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_Iteration": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Iteration", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [1], "y": [13.917359352111816], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_std_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Time", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [8.419156074523926e-07], "y": [7.8843620463271895], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0, "x_low": [8.419156074523926e-07], "x_high": [8.419156074523926e-07]}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_std_Iteration": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Iteration", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [1], "y": [7.8843620463271895], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Time", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [8.419156074523926e-07], "y": [1.310122575610876], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0, "x_low": [8.419156074523926e-07], "x_high": [8.419156074523926e-07]}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_Iteration": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Iteration", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [1], "y": [1.310122575610876], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_std_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Time", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [8.419156074523926e-07], "y": [0.18450522399247649], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0, "x_low": [8.419156074523926e-07], "x_high": [8.419156074523926e-07]}]}, "objective_curve_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_std_Iteration": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1] ", "xlabel": "Iteration", "ylabel": "Objective Value", "type": "scatter", "data": [{"x": [1], "y": [0.18450522399247649], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)", "marker": 0}]}}, "bar_chart": {"bar_chart_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "ylabel": "Time [sec]", "type": "bar_chart", "data": [{"y": [8.419156074523926e-07], "text": "", "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "bar_chart_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_std": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "ylabel": "Time [sec]", "type": "bar_chart", "data": [{"y": [8.419156074523926e-07], "text": "", "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "bar_chart_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "ylabel": "Time [sec]", "type": "bar_chart", "data": [{"y": [8.419156074523926e-07], "text": "", "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "bar_chart_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_std": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "ylabel": "Time [sec]", "type": "bar_chart", "data": [{"y": [8.419156074523926e-07], "text": "", "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "bar_chart_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "ylabel": "Time [sec]", "type": "bar_chart", "data": [{"y": [8.419156074523926e-07], "text": "", "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "bar_chart_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_std": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "ylabel": "Time [sec]", "type": "bar_chart", "data": [{"y": [8.419156074523926e-07], "text": "", "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}}, "boxplot": {"boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_Solver_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Time", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_Solver_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[22.30521011352539]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_Iteration_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Time", "type": "boxplot", "data": [{"x": [0], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_Iteration_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": [0], "y": [[22.30521011352539]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_std_Solver_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Time", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_std_Solver_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[1.1566289783538821]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_std_Iteration_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Time", "type": "boxplot", "data": [{"x": [0], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_PSNR_std_Iteration_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": [0], "y": [[1.1566289783538821]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_Solver_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Time", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_Solver_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[13.917359352111816]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_Iteration_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Time", "type": "boxplot", "data": [{"x": [0], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_Iteration_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": [0], "y": [[13.917359352111816]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_std_Solver_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Time", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_std_Solver_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[7.8843620463271895]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_std_Iteration_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Time", "type": "boxplot", "data": [{"x": [0], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_NIQE_std_Iteration_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": [0], "y": [[7.8843620463271895]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_Solver_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Time", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_Solver_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[1.310122575610876]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_Iteration_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Time", "type": "boxplot", "data": [{"x": [0], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_Iteration_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": [0], "y": [[1.310122575610876]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_std_Solver_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Time", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_std_Solver_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Solver", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": ["RAM"], "y": [[0.18450522399247649]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_std_Iteration_Time": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Time", "type": "boxplot", "data": [{"x": [0], "y": [[8.419156074523926e-07]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}, "boxplot_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring_objective_runtime_std_Iteration_Objective Metric": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "xlabel": "Iteration", "ylabel": "Objective Metric", "type": "boxplot", "data": [{"x": [0], "y": [[0.18450522399247649]], "label": "RAM", "color": "rgba(31, 119, 180, 1.0)"}]}}, "table": {"table_DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]_DIV2K Gaussian Deblurring": {"title": "DIV2K Gaussian Deblurring<br />Data: DIV2K[debug=True,img_size=256,noise=GaussianNoise,physics=Blur,sigma=0.1]", "columns": ["solver", "PSNR", "PSNR_std", "NIQE", "NIQE_std", "runtime", "runtime_std", "time (s)"], "type": "table", "data": [["RAM", 22.30521011352539, 1.1566289783538821, 13.917359352111816, 7.8843620463271895, 1.310122575610876, 0.18450522399247649, 8.419156074523926e-07]]}}};
window.metadata = {"plot_configs": {}, "solvers_description": {"RAM": ""}, "obj_description": ""};
window.addEventListener("load", () => {
// Initialize plot state
setState({
'plot_kind': document.getElementById('plot_kind').value,
'scale': document.getElementById('change_scale').value,
'with_quantiles': document.getElementById('change_shades').checked,
'suboptimal_curve': document.getElementById('change_suboptimal').checked,
'relative_curve': document.getElementById('change_relative').checked,
'hidden_curves': [],
'objective_curve_dataset': document.getElementById('change_objective_curve_dataset').value,
'objective_curve_objective': document.getElementById('change_objective_curve_objective').value,
'objective_curve_objective_column': document.getElementById('change_objective_curve_objective_column').value,
'objective_curve_X_axis': document.getElementById('change_objective_curve_X_axis').value,
'bar_chart_dataset': document.getElementById('change_bar_chart_dataset').value,
'bar_chart_objective': document.getElementById('change_bar_chart_objective').value,
'bar_chart_objective_column': document.getElementById('change_bar_chart_objective_column').value,
'boxplot_dataset': document.getElementById('change_boxplot_dataset').value,
'boxplot_objective': document.getElementById('change_boxplot_objective').value,
'boxplot_objective_column': document.getElementById('change_boxplot_objective_column').value,
'boxplot_X_axis': document.getElementById('change_boxplot_X_axis').value,
'boxplot_Y_axis': document.getElementById('change_boxplot_Y_axis').value,
'table_dataset': document.getElementById('change_table_dataset').value,
'table_objective': document.getElementById('change_table_objective').value,
});
const plot_configs = document.getElementsByClassName('view');
if (plot_configs.length > 0 ){
setConfig(plot_configs[1]); // [0] is the span with text : "Available plot views :"
}
});
</script>
<script type="text/javascript">
/**
* Round with precision control
* https://github.com/plotly/d3/blob/6bb40cd42f6479be84efda3e50c8444b50d5905d/d3.js#L2189
*/
const d3round = (x, n) => {
return n ? Math.round(x * (n = Math.pow(10, n))) / n : Math.round(x);
};
/**
* Container of function that create path for SVG plot marker
* https://github.com/plotly/plotly.js/blob/b2df3710d7877ff5b4f85256015a88c8ea8fbe1d/src/components/drawing/symbol_defs.js#L13
*/
const SYMBOLDEFS = {
circle: {
n: 0,
f: r => {
var rs = d3round(r, 2);
return 'M' + rs + ',0A' + rs + ',' + rs + ' 0 1,1 0,-' + rs +
'A' + rs + ',' + rs + ' 0 0,1 ' + rs + ',0Z';
}
},
square: {
n: 1,
f: r => {
var rs = d3round(r, 2);
return 'M' + rs + ',' + rs + 'H-' + rs + 'V-' + rs + 'H' + rs + 'Z';
}
},
diamond: {
n: 2,
f: r => {
var rd = d3round(r * 1.3, 2);
return 'M' + rd + ',0L0,' + rd + 'L-' + rd + ',0L0,-' + rd + 'Z';
}
},
cross: {
n: 3,
f: r => {
var rc = d3round(r * 0.4, 2);
var rc2 = d3round(r * 1.2, 2);
return 'M' + rc2 + ',' + rc + 'H' + rc + 'V' + rc2 + 'H-' + rc +
'V' + rc + 'H-' + rc2 + 'V-' + rc + 'H-' + rc + 'V-' + rc2 +
'H' + rc + 'V-' + rc + 'H' + rc2 + 'Z';
}
},
x: {
n: 4,
f: r => {
var rx = d3round(r * 0.8 / Math.sqrt(2), 2);
var ne = 'l' + rx + ',' + rx;
var se = 'l' + rx + ',-' + rx;
var sw = 'l-' + rx + ',-' + rx;
var nw = 'l-' + rx + ',' + rx;
return 'M0,' + rx + ne + se + sw + se + sw + nw + sw + nw + ne + nw + ne + 'Z';
}
},
'triangle-up': {
n: 5,
f: r => {
var rt = d3round(r * 2 / Math.sqrt(3), 2);
var r2 = d3round(r / 2, 2);
var rs = d3round(r, 2);
return 'M-' + rt + ',' + r2 + 'H' + rt + 'L0,-' + rs + 'Z';
}
},
'triangle-down': {
n: 6,
f: r => {
var rt = d3round(r * 2 / Math.sqrt(3), 2);
var r2 = d3round(r / 2, 2);
var rs = d3round(r, 2);
return 'M-' + rt + ',-' + r2 + 'H' + rt + 'L0,' + rs + 'Z';
}
},
'triangle-left': {
n: 7,
f: r => {
var rt = d3round(r * 2 / Math.sqrt(3), 2);
var r2 = d3round(r / 2, 2);
var rs = d3round(r, 2);
return 'M' + r2 + ',-' + rt + 'V' + rt + 'L-' + rs + ',0Z';
}
},
'triangle-right': {
n: 8,
f: r => {
var rt = d3round(r * 2 / Math.sqrt(3), 2);
var r2 = d3round(r / 2, 2);
var rs = d3round(r, 2);
return 'M-' + r2 + ',-' + rt + 'V' + rt + 'L' + rs + ',0Z';
}
},
'triangle-ne': {
n: 9,
f: r => {
var r1 = d3round(r * 0.6, 2);
var r2 = d3round(r * 1.2, 2);
return 'M-' + r2 + ',-' + r1 + 'H' + r1 + 'V' + r2 + 'Z';
}
},
'triangle-se': {
n: 10,
f: r => {
var r1 = d3round(r * 0.6, 2);
var r2 = d3round(r * 1.2, 2);
return 'M' + r1 + ',-' + r2 + 'V' + r1 + 'H-' + r2 + 'Z';
}
},
'triangle-sw': {
n: 11,
f: r => {
var r1 = d3round(r * 0.6, 2);
var r2 = d3round(r * 1.2, 2);
return 'M' + r2 + ',' + r1 + 'H-' + r1 + 'V-' + r2 + 'Z';
}
},
'triangle-nw': {
n: 12,
f: r => {
var r1 = d3round(r * 0.6, 2);
var r2 = d3round(r * 1.2, 2);
return 'M-' + r1 + ',' + r2 + 'V-' + r1 + 'H' + r2 + 'Z';
}
},
pentagon: {
n: 13,
f: r => {
var x1 = d3round(r * 0.951, 2);
var x2 = d3round(r * 0.588, 2);
var y0 = d3round(-r, 2);
var y1 = d3round(r * -0.309, 2);
var y2 = d3round(r * 0.809, 2);
return 'M' + x1 + ',' + y1 + 'L' + x2 + ',' + y2 + 'H-' + x2 +
'L-' + x1 + ',' + y1 + 'L0,' + y0 + 'Z';
}
},
hexagon: {
n: 14,
f: r => {
var y0 = d3round(r, 2);
var y1 = d3round(r / 2, 2);
var x = d3round(r * Math.sqrt(3) / 2, 2);
return 'M' + x + ',-' + y1 + 'V' + y1 + 'L0,' + y0 +
'L-' + x + ',' + y1 + 'V-' + y1 + 'L0,-' + y0 + 'Z';
}
},
hexagon2: {
n: 15,
f: r => {
var x0 = d3round(r, 2);
var x1 = d3round(r / 2, 2);
var y = d3round(r * Math.sqrt(3) / 2, 2);
return 'M-' + x1 + ',' + y + 'H' + x1 + 'L' + x0 +
',0L' + x1 + ',-' + y + 'H-' + x1 + 'L-' + x0 + ',0Z';
}
},
octagon: {
n: 16,
f: r => {
var a = d3round(r * 0.924, 2);
var b = d3round(r * 0.383, 2);
return 'M-' + b + ',-' + a + 'H' + b + 'L' + a + ',-' + b + 'V' + b +
'L' + b + ',' + a + 'H-' + b + 'L-' + a + ',' + b + 'V-' + b + 'Z';
}
},
star: {
n: 17,
f: r => {
var rs = r * 1.4;
var x1 = d3round(rs * 0.225, 2);
var x2 = d3round(rs * 0.951, 2);
var x3 = d3round(rs * 0.363, 2);
var x4 = d3round(rs * 0.588, 2);
var y0 = d3round(-rs, 2);
var y1 = d3round(rs * -0.309, 2);
var y3 = d3round(rs * 0.118, 2);
var y4 = d3round(rs * 0.809, 2);
var y5 = d3round(rs * 0.382, 2);
return 'M' + x1 + ',' + y1 + 'H' + x2 + 'L' + x3 + ',' + y3 +
'L' + x4 + ',' + y4 + 'L0,' + y5 + 'L-' + x4 + ',' + y4 +
'L-' + x3 + ',' + y3 + 'L-' + x2 + ',' + y1 + 'H-' + x1 +
'L0,' + y0 + 'Z';
}
},
hexagram: {
n: 18,
f: r => {
var y = d3round(r * 0.66, 2);
var x1 = d3round(r * 0.38, 2);
var x2 = d3round(r * 0.76, 2);
return 'M-' + x2 + ',0l-' + x1 + ',-' + y + 'h' + x2 +
'l' + x1 + ',-' + y + 'l' + x1 + ',' + y + 'h' + x2 +
'l-' + x1 + ',' + y + 'l' + x1 + ',' + y + 'h-' + x2 +
'l-' + x1 + ',' + y + 'l-' + x1 + ',-' + y + 'h-' + x2 + 'Z';
}
},
'star-triangle-up': {
n: 19,
f: r => {
var x = d3round(r * Math.sqrt(3) * 0.8, 2);
var y1 = d3round(r * 0.8, 2);
var y2 = d3round(r * 1.6, 2);
var rc = d3round(r * 4, 2);
var aPart = 'A ' + rc + ',' + rc + ' 0 0 1 ';
return 'M-' + x + ',' + y1 + aPart + x + ',' + y1 +
aPart + '0,-' + y2 + aPart + '-' + x + ',' + y1 + 'Z';
}
},
'star-triangle-down': {
n: 20,
f: r => {
var x = d3round(r * Math.sqrt(3) * 0.8, 2);
var y1 = d3round(r * 0.8, 2);
var y2 = d3round(r * 1.6, 2);
var rc = d3round(r * 4, 2);
var aPart = 'A ' + rc + ',' + rc + ' 0 0 1 ';
return 'M' + x + ',-' + y1 + aPart + '-' + x + ',-' + y1 +
aPart + '0,' + y2 + aPart + x + ',-' + y1 + 'Z';
}
},
'star-square': {
n: 21,
f: r => {
var rp = d3round(r * 1.1, 2);
var rc = d3round(r * 2, 2);
var aPart = 'A ' + rc + ',' + rc + ' 0 0 1 ';
return 'M-' + rp + ',-' + rp + aPart + '-' + rp + ',' + rp +
aPart + rp + ',' + rp + aPart + rp + ',-' + rp +
aPart + '-' + rp + ',-' + rp + 'Z';
}
},
'star-diamond': {
n: 22,
f: r => {
var rp = d3round(r * 1.4, 2);
var rc = d3round(r * 1.9, 2);
var aPart = 'A ' + rc + ',' + rc + ' 0 0 1 ';
return 'M-' + rp + ',0' + aPart + '0,' + rp +
aPart + rp + ',0' + aPart + '0,-' + rp +
aPart + '-' + rp + ',0' + 'Z';
}
},
'diamond-tall': {
n: 23,
f: r => {
var x = d3round(r * 0.7, 2);
var y = d3round(r * 1.4, 2);
return 'M0,' + y + 'L' + x + ',0L0,-' + y + 'L-' + x + ',0Z';
}
},
'diamond-wide': {
n: 24,
f: r => {
var x = d3round(r * 1.4, 2);
var y = d3round(r * 0.7, 2);
return 'M0,' + y + 'L' + x + ',0L0,-' + y + 'L-' + x + ',0Z';
}
},
hourglass: {
n: 25,
f: r => {
var rs = d3round(r, 2);
return 'M' + rs + ',' + rs + 'H-' + rs + 'L' + rs + ',-' + rs + 'H-' + rs + 'Z';
},
noDot: true
},
bowtie: {
n: 26,
f: r => {
var rs = d3round(r, 2);
return 'M' + rs + ',' + rs + 'V-' + rs + 'L-' + rs + ',' + rs + 'V-' + rs + 'Z';
},
noDot: true
},
'circle-cross': {
n: 27,
f: r => {
var rs = d3round(r, 2);
return 'M0,' + rs + 'V-' + rs + 'M' + rs + ',0H-' + rs +
'M' + rs + ',0A' + rs + ',' + rs + ' 0 1,1 0,-' + rs +
'A' + rs + ',' + rs + ' 0 0,1 ' + rs + ',0Z';
},
needLine: true,
noDot: true
},
'circle-x': {
n: 28,
f: r => {
var rs = d3round(r, 2);
var rc = d3round(r / Math.sqrt(2), 2);
return 'M' + rc + ',' + rc + 'L-' + rc + ',-' + rc +
'M' + rc + ',-' + rc + 'L-' + rc + ',' + rc +
'M' + rs + ',0A' + rs + ',' + rs + ' 0 1,1 0,-' + rs +
'A' + rs + ',' + rs + ' 0 0,1 ' + rs + ',0Z';
},
needLine: true,
noDot: true
},
'square-cross': {
n: 29,
f: r => {
var rs = d3round(r, 2);
return 'M0,' + rs + 'V-' + rs + 'M' + rs + ',0H-' + rs +
'M' + rs + ',' + rs + 'H-' + rs + 'V-' + rs + 'H' + rs + 'Z';
},
needLine: true,
noDot: true
},
'square-x': {
n: 30,
f: r => {
var rs = d3round(r, 2);
return 'M' + rs + ',' + rs + 'L-' + rs + ',-' + rs +
'M' + rs + ',-' + rs + 'L-' + rs + ',' + rs +
'M' + rs + ',' + rs + 'H-' + rs + 'V-' + rs + 'H' + rs + 'Z';
},
needLine: true,
noDot: true
},
'diamond-cross': {
n: 31,
f: r => {
var rd = d3round(r * 1.3, 2);
return 'M' + rd + ',0L0,' + rd + 'L-' + rd + ',0L0,-' + rd + 'Z' +
'M0,-' + rd + 'V' + rd + 'M-' + rd + ',0H' + rd;
},
needLine: true,
noDot: true
},
'diamond-x': {
n: 32,
f: r => {
var rd = d3round(r * 1.3, 2);
var r2 = d3round(r * 0.65, 2);
return 'M' + rd + ',0L0,' + rd + 'L-' + rd + ',0L0,-' + rd + 'Z' +
'M-' + r2 + ',-' + r2 + 'L' + r2 + ',' + r2 +
'M-' + r2 + ',' + r2 + 'L' + r2 + ',-' + r2;
},
needLine: true,
noDot: true
},
'cross-thin': {
n: 33,
f: r => {
var rc = d3round(r * 1.4, 2);
return 'M0,' + rc + 'V-' + rc + 'M' + rc + ',0H-' + rc;
},
needLine: true,
noDot: true,
noFill: true
},
'x-thin': {
n: 34,
f: r => {
var rx = d3round(r, 2);
return 'M' + rx + ',' + rx + 'L-' + rx + ',-' + rx +
'M' + rx + ',-' + rx + 'L-' + rx + ',' + rx;
},
needLine: true,
noDot: true,
noFill: true
},
asterisk: {
n: 35,
f: r => {
var rc = d3round(r * 1.2, 2);
var rs = d3round(r * 0.85, 2);
return 'M0,' + rc + 'V-' + rc + 'M' + rc + ',0H-' + rc +
'M' + rs + ',' + rs + 'L-' + rs + ',-' + rs +
'M' + rs + ',-' + rs + 'L-' + rs + ',' + rs;
},
needLine: true,
noDot: true,
noFill: true
},
hash: {
n: 36,
f: r => {
var r1 = d3round(r / 2, 2);
var r2 = d3round(r, 2);
return 'M' + r1 + ',' + r2 + 'V-' + r2 +
'm-' + r2 + ',0V' + r2 +
'M' + r2 + ',' + r1 + 'H-' + r2 +
'm0,-' + r2 + 'H' + r2;
},
needLine: true,
noFill: true
},
'y-up': {
n: 37,
f: r => {
var x = d3round(r * 1.2, 2);
var y0 = d3round(r * 1.6, 2);
var y1 = d3round(r * 0.8, 2);
return 'M-' + x + ',' + y1 + 'L0,0M' + x + ',' + y1 + 'L0,0M0,-' + y0 + 'L0,0';
},
needLine: true,
noDot: true,
noFill: true
},
'y-down': {
n: 38,
f: r => {
var x = d3round(r * 1.2, 2);
var y0 = d3round(r * 1.6, 2);
var y1 = d3round(r * 0.8, 2);
return 'M-' + x + ',-' + y1 + 'L0,0M' + x + ',-' + y1 + 'L0,0M0,' + y0 + 'L0,0';
},
needLine: true,
noDot: true,
noFill: true
},
'y-left': {
n: 39,
f: r => {
var y = d3round(r * 1.2, 2);
var x0 = d3round(r * 1.6, 2);
var x1 = d3round(r * 0.8, 2);
return 'M' + x1 + ',' + y + 'L0,0M' + x1 + ',-' + y + 'L0,0M-' + x0 + ',0L0,0';
},
needLine: true,
noDot: true,
noFill: true
},
'y-right': {
n: 40,
f: r => {
var y = d3round(r * 1.2, 2);
var x0 = d3round(r * 1.6, 2);
var x1 = d3round(r * 0.8, 2);
return 'M-' + x1 + ',' + y + 'L0,0M-' + x1 + ',-' + y + 'L0,0M' + x0 + ',0L0,0';
},
needLine: true,
noDot: true,
noFill: true
},
'line-ew': {
n: 41,
f: r => {
var rc = d3round(r * 1.4, 2);
return 'M' + rc + ',0H-' + rc;
},
needLine: true,
noDot: true,
noFill: true
},
'line-ns': {
n: 42,
f: r => {
var rc = d3round(r * 1.4, 2);
return 'M0,' + rc + 'V-' + rc;
},
needLine: true,
noDot: true,
noFill: true
},
'line-ne': {
n: 43,
f: r => {
var rx = d3round(r, 2);
return 'M' + rx + ',-' + rx + 'L-' + rx + ',' + rx;
},
needLine: true,
noDot: true,
noFill: true
},
'line-nw': {
n: 44,
f: r => {
var rx = d3round(r, 2);
return 'M' + rx + ',' + rx + 'L-' + rx + ',-' + rx;
},
needLine: true,
noDot: true,
noFill: true
},
'arrow-up': {
n: 45,
f: r => {
var rx = d3round(r, 2);
var ry = d3round(r * 2, 2);
return 'M0,0L-' + rx + ',' + ry + 'H' + rx + 'Z';
},
noDot: true
},
'arrow-down': {
n: 46,
f: r => {
var rx = d3round(r, 2);
var ry = d3round(r * 2, 2);
return 'M0,0L-' + rx + ',-' + ry + 'H' + rx + 'Z';
},
noDot: true
},
'arrow-left': {
n: 47,
f: r => {
var rx = d3round(r * 2, 2);
var ry = d3round(r, 2);
return 'M0,0L' + rx + ',-' + ry + 'V' + ry + 'Z';
},
noDot: true
},
'arrow-right': {
n: 48,
f: r => {
var rx = d3round(r * 2, 2);
var ry = d3round(r, 2);
return 'M0,0L-' + rx + ',-' + ry + 'V' + ry + 'Z';
},
noDot: true
},
'arrow-bar-up': {
n: 49,
f: r => {
var rx = d3round(r, 2);
var ry = d3round(r * 2, 2);
return 'M-' + rx + ',0H' + rx + 'M0,0L-' + rx + ',' + ry + 'H' + rx + 'Z';
},
needLine: true,
noDot: true
},
'arrow-bar-down': {
n: 50,
f: r => {
var rx = d3round(r, 2);
var ry = d3round(r * 2, 2);
return 'M-' + rx + ',0H' + rx + 'M0,0L-' + rx + ',-' + ry + 'H' + rx + 'Z';
},
needLine: true,
noDot: true
},
'arrow-bar-left': {
n: 51,
f: r => {
var rx = d3round(r * 2, 2);
var ry = d3round(r, 2);
return 'M0,-' + ry + 'V' + ry + 'M0,0L' + rx + ',-' + ry + 'V' + ry + 'Z';
},
needLine: true,
noDot: true
},
'arrow-bar-right': {
n: 52,
f: r => {
var rx = d3round(r * 2, 2);
var ry = d3round(r, 2);
return 'M0,-' + ry + 'V' + ry + 'M0,0L-' + rx + ',-' + ry + 'V' + ry + 'Z';
},
needLine: true,
noDot: true
}
};
const DOTPATH = 'M0,0.5L0.5,0L0,-0.5L-0.5,0Z';
const drawing = {
symbolFuncs: [],
};
/**
* Create arrays of symbol functions.
* https://plotly.com/javascript/reference/scatter/#scatter-marker-symbol
*/
Object.keys(SYMBOLDEFS).forEach(function(k) {
var symDef = SYMBOLDEFS[k];
var n = symDef.n;
drawing.symbolFuncs[n] = symDef.f;
});
/**
* Returns a <path></path> element that have to be placed in a <svg></svg> element.
*
* @param {int} symbolNumber
* @param {String} color
* @return {Element}
*/
const createPathElement = (symbolNumber, color) => {
const path = document.createElementNS('http://www.w3.org/2000/svg', 'path');
// d is the shape of the symbol.
path.setAttribute('d', createPathString(symbolNumber, 5));
// Translation must be the half of the svg size to have the symbol centered.
path.setAttribute('transform', 'translate(15, 15)');
// If svg is type "open" or "open-dot" : https://plotly.com/javascript/reference/scatter/#scatter-marker-symbol
if ((100 <= symbolNumber && symbolNumber < 200) || 300 <= symbolNumber) {
path.setAttribute('stroke', color);
path.setAttribute('stroke-width', 0.5);
path.setAttribute('stroke-opacity', 1);
path.setAttribute('fill', 'white');
}
// If svg is type "normal" or "dot" : https://plotly.com/javascript/reference/scatter/#scatter-marker-symbol
if (symbolNumber < 100 || (200 <= symbolNumber && symbolNumber < 300)) {
path.setAttribute('fill-opacity', 1);
path.setAttribute('fill', color);
}
// If svg is type "dot" : https://plotly.com/javascript/reference/scatter/#scatter-marker-symbol
if (200 <= symbolNumber && symbolNumber < 300) {
path.setAttribute('stroke', 'black');
path.setAttribute('stroke-width', 0.5);
path.setAttribute('stroke-opacity', 1);
}
return path;
}
/**
* Returns the string corresponding of the symbol shape requested by symbolNumber.
*
* @param {int} symbolNumber
* @param {int} r size of the symbol (currently, we request a 5)
* @returns {String} this string must be placed in the "d" attribute of <path></path> SVG element.
*/
function createPathString(symbolNumber, r) {
var base = symbolNumber % 100;
return drawing.symbolFuncs[base](r) + (symbolNumber >= 200 ? DOTPATH : '');
}
const NON_CONVERGENT_COLOR = 'rgba(0.8627, 0.8627, 0.8627)'
/*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* STATE MANAGEMENT
*
* The state represent the plot state. It's an object
* that is stored into the window._state variable.
*
* Do not manually update window._state,
* instead, foreach state modification,
* you shoud call the setState() function
* to keep the plot in sync with its state.
*
* The state contains the following keys :
* - dataset (string),
* - objective (string),
* - objective_column (string),
* - plot_kind (string),
* - scale (string)
* - with_quantiles (boolean)
* - hidden_curves (array)
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
/**
* Update the state and create/update the plot
* using the new state.
*
* @param {Object} partialState
*/
const setState = (partialState) => {
window._state = {...state(), ...partialState};
renderSidebar();
if (isChart('table')) {
renderTable();
} else {
renderPlot();
}
renderLegend();
}
/**
* Retrieve the state object from window._state
*
* @returns Object
*/
const state = (key = undefined) => {
if (key) {
return window._state[key];
}
return window._state;
}
/**
* Mapping between selectors and configuration
*/
const config_mapping = {
'dataset': 'dataset_selector',
'objective': 'objective_selector',
'objective_column': 'objective_column',
'plot_kind': 'plot_kind',
'scale': 'change_scale',
'with_quantiles': 'change_shades',
'suboptimal_curve': 'change_suboptimal',
'relative_curve': 'change_relative',
'hidden_curves': '',
};
/*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* PLOT MANAGEMENT
*
* Retrieve formatted data for PlotlyJS using state
* and create/update the plot.
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
/**
* Create/Update the plot.
*/
const renderPlot = () => {
let div;
let plot_with_legend_container = document.getElementById('plot_with_legend_container');
let plot_container = document.getElementById('plot_container');
hide(document.getElementById('table_container'));
if (isChart('scatter')) {
show(plot_container);
show(plot_with_legend_container);
div = plot_with_legend_container;
} else {
show(plot_container);
hide(plot_with_legend_container);
div = plot_container;
}
const data = getChartData();
const layout = getLayout();
Plotly.purge(plot_with_legend_container);
Plotly.purge(plot_container);
Plotly.react(div, data, layout);
};
/**
* Returns data formatted for Plotly.
*
* @returns {Array|*[]}
*/
const getChartData = () => {
if (isChart('scatter')) {
return getScatterData();
} else if (isChart('bar_chart')) {
return getBarData();
} else if (isChart('boxplot')) {
return getBoxplotData();
}
throw new Error("Unknown plot kind : " + state().plot_kind);
}
/**
* Returns layout object according to the plot kind.
*
* @returns Object
*/
const getLayout = () => {
if (isChart('scatter')) {
return getScatterChartLayout();
} else if (isChart('bar_chart')) {
return getBarChartLayout();
} else if (isChart('boxplot')) {
return getBoxplotChartLayout();
}
throw new Error("Unknown plot kind : " + state().plot_kind);
}
/**
* Gives the data formatted for plotlyJS bar chart.
*
* @returns {array}
*/
const getBarData = () => {
if (!isAvailable()) return [{type:'bar'}];
const {x, y, colors, texts} = barDataToArrays()
// Add bars
const barData = [{
type: 'bar',
x: x,
y: y,
marker: {
color: colors,
},
text: texts,
textposition: 'inside',
insidetextanchor: 'middle',
textangle: '-90',
}];
getPlotData().data.forEach(curveData => {
// Add times for each convergent bar
// Check if text is not 'Did not converge'
curveText = curveData.text || ''
if (curveText === '') {
let nbTimes = curveData.y.length
barData.push({
type: 'scatter',
x: new Array(nbTimes).fill(curveData.label),
y: curveData.y,
marker: {
color: 'black',
symbol: 'line-ew-open'
},
line: {
width: 0
},
});
}
});
return barData;
};
const getBoxplotData = () => {
const boxplotData = [];
getPlotData().data.forEach(plotData => {
plotData.x.forEach((label, i) => {
boxplotData.push({
y: plotData.y[i],
name: label,
type: 'box',
line: {color: plotData.color},
fillcolor: plotData.color,
boxpoints: false
});
});
});
return boxplotData;
};
const getPlotData = () => {
let dropdowns = getPlotDropdowns();
let dropdown_values = dropdowns.map(dropdown => state()[dropdown]);
let data_key = [state().plot_kind, ...dropdown_values].join('_');
return window._plots[state().plot_kind][data_key];
}
/**
* Gives the data formatted for plotlyJS scatter chart.
*
* @returns {array}
*/
const getScatterData = () => {
// create a list of object to plot in plotly
const curves = [];
// get the minimum y value over all curves
let min_y = Infinity;
getPlotData().data.forEach(curveData => {
min_y = Math.min(min_y, ...curveData.y);
});
min_y -= 1e-10; // to avoid zeros in log scale
getPlotData().data.forEach(curveData => {
label = curveData.label;
y = curveData.y;
if ("x_low" in curveData && "x_high" in curveData && state().with_quantiles) {
x_low = curveData.x_low;
x_high = curveData.x_high;
}
if (state().suboptimal_curve) {
y = y.map(value => value - min_y);
if ("x_low" in curveData && "x_high" in curveData && state().with_quantiles) {
x_low = x_low.map(value => value - min_y);
x_high = x_high.map(value => value - min_y);
}
}
if (state().relative_curve) {
y = y.map(value => value / (y[0] - min_y));
if ("x_low" in curveData && "x_high" in curveData && state().with_quantiles) {
x_low = x_low.map(value => value / (y[0] - min_y));
x_high = x_high.map(value => value / (y[0] - min_y));
}
}
curves.push({
type: 'scatter',
name: label,
mode: 'lines+markers',
line: {
color: curveData.color,
},
marker: {
symbol: curveData.marker,
size: 10,
color: curveData.color,
},
legendgroup: label,
hovertemplate: label + ' <br> (%{x:.1e},%{y:.1e}) <extra></extra>',
visible: isVisible(label) ? true : 'legendonly',
x: curveData.x,
y: y,
});
if ("x_low" in curveData && "x_high" in curveData && state().with_quantiles) {
curves.push({
type: 'scatter',
mode: 'lines',
legend: false,
line: {
width: 0,
color: curveData.color,
},
legendgroup: label,
hovertemplate: '(%{x:.1e},%{y:.1e}) <extra></extra>',
visible: isVisible(label) ? true : 'legendonly',
x: x_low,
y: y,
}, {
type: 'scatter',
mode: 'lines',
showlegend: false,
fill: 'tonextx',
line: {
width: 0,
color: curveData.color,
},
legendgroup: label,
hovertemplate: '(%{x:.1e},%{y:.1e}) <extra></extra>',
visible: isVisible(label) ? true : 'legendonly',
x: x_high,
y: y,
});
}
});
return curves;
};
/*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* CONFIG MANAGEMENT
*
* Configs are used to save particular benchmark results' views.
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
const DEFAULT_CONFIG_OPTIONS = [
"plot_kind",
"hidden_curves",
"scale",
"with_quantiles",
"suboptimal_curve",
"relative_curve",
];
const setConfig = (config_item) => {
if (!config_item) {
return;
}
// Retrieve the name of the config.
let config_name = config_item.textContent;
// Select on mobile version
if (config_item.tagName === "SELECT") {
config_name = config_item.value;
}
// Clear all selected views and select the good one.
setAllViewsToNonActive();
config_item.classList.add('active');
// Select on mobile version
if (config_item.tagName === "SELECT") {
config_item.value = config_name;
}
if (config_name !== "no_selected_view") {
// Get the updated state
let config = window.metadata.plot_configs[config_name];
let update = {};
// const lims = ['xlim', 'ylim', 'hidden_curves']
const lims = ['hidden_curves']
let kind = state().plot_kind;
if ("plot_kind" in config) {
kind = config["plot_kind"];
}
for(let key in config){
const value = config[key];
if (key in config_mapping) {
if (config_mapping[key] !== '') {
div_key = config_mapping[key];
document.getElementById(div_key).value = value;
}
}
else {
// Custom parameters which should be related to the current kind
// and the div prefix is 'change_{kind}_'. Ignore otherwise with
// a warning in the console.
if (!key.startsWith(kind)) {
key = kind + "_" + key;
}
div_key = "change_" + key;
try {
document.getElementById(div_key).value = value;
} catch (error) {
// Element not found, ignore
console.warn("Unknown config parameter: '" + key + "'");
}
}
update[key] = value;
}
setState(update);
// update the plot
renderPlot();
}
};
const saveView = () => {
let n_configs = Object.keys(window.metadata.plot_configs).length;
let config_name = prompt("Config Name", "Config " + n_configs);
if(config_name === null || config_name === ""){
return;
}
// Retrieve the dropdown menu selected values
let config = {};
dropdowns = getPlotDropdowns();
for(let key of dropdowns) {
config[key] = state()[key];
}
for (let option of DEFAULT_CONFIG_OPTIONS) {
config[option] = state()[option];
}
let noViewAvailableElement = document.getElementById('no_view_available');
if (noViewAvailableElement) {
noViewAvailableElement.classList.add('hidden');
}
setAllViewsToNonActive();
// Only add a button if the config does not exist yet:
if (!(config_name in window.metadata.plot_configs)){
let viewTabs = document.getElementById("view-tabs");
let node = document.createElement("span");
node.innerHTML = config_name;
node.className = "view border-transparent whitespace-nowrap border-b-2 py-4 px-1 text-sm text-gray-400 hover:text-gray-500 hover:border-gray-300 cursor-pointer active";
node.onclick = function() {setConfig(node)};
viewTabs.appendChild(node);
let option = document.createElement("option");
option.setAttribute("value", config_name);
option.innerHTML = config_name;
let tabs = document.getElementById("tabs");
tabs.appendChild(option);
tabs.value = config_name;
}
// Add the config in the configs mapping.
window.metadata.plot_configs[config_name] = config;
return false;
};
const setAllViewsToNonActive = () => {
let view_items = document.getElementsByClassName('view');
for (let i = 0; i < view_items.length; i++) {
view_items.item(i).classList.remove('active');
}
document.getElementById('tabs').value = "no_selected_view";
}
const downloadBlob = (blob, name) => {
var tempLink = document.createElement("a");
tempLink.setAttribute('href', URL.createObjectURL(blob));
tempLink.setAttribute('download', name);
tempLink.click();
URL.revokeObjectURL(tempLink.href);
// To prevent the screen from going up when the user clicks on the button
return false;
};
const exportConfigs = () => {
// Construct the yaml export of the config.
var config_yaml = "plot_configs:\n"
for(var config_name in window.metadata.plot_configs){
var config = window.metadata.plot_configs[config_name];
config_yaml += " " + config_name + ":\n";
for(var key in config){
var value = config[key];
if (key === 'xlim' || key === 'ylim')
value = "[" + value + "]";
config_yaml += " " + key + ": " + value + "\n";
}
}
// Download the resulting yaml file.
var blob = new Blob([config_yaml], {type: 'text/yaml'});
return downloadBlob(blob, 'config.yml');
};
const exportHTML = () => {
var blob = new Blob(
[document.documentElement.innerHTML],
{type: 'text/html'}
);
return downloadBlob(blob, location.pathname.split("/").pop());
};
/*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* LEFT SIDEBAR MANAGEMENT
*
* Functions that control the left sidebar.
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
/**
* Render sidebar
*/
const renderSidebar = () => {
renderScaleSelector();
renderWithQuantilesToggle();
renderSuboptimalRelativeToggle();
mapSelectorsToState();
renderPlotDropdowns();
}
/**
* Render Scale selector
*/
const renderScaleSelector = () => {
if (isChart(['bar_chart', 'table'])) {
hide(document.querySelectorAll("#scale-form-group"));
} else {
show(document.querySelectorAll("#scale-form-group"), 'block');
}
if (isChart('boxplot')) {
hide(document.querySelectorAll(".other_plot_option"));
show(document.querySelectorAll(".boxplot_option"));
} else {
hide(document.querySelectorAll(".boxplot_option"));
show(document.querySelectorAll(".other_plot_option"));
}
};
/**
* Render WithQuantile toggle
*/
const renderWithQuantilesToggle = () => {
if (isChart('scatter')) {
show(document.querySelectorAll("#change-shades-form-group"), 'flex');
} else {
hide(document.querySelectorAll("#change-shades-form-group"));
}
};
const renderSuboptimalRelativeToggle = () => {
if (isChart('scatter')) {
show(document.querySelectorAll("#change-relative-suboptimal-form-group"), 'flex');
} else {
hide(document.querySelectorAll("#change-relative-suboptimal-form-group"));
}
};
const renderPlotDropdowns = () => {
hide(document.querySelectorAll(`[id$='-custom-params-container']`));
show(document.querySelectorAll(`#${state().plot_kind}-custom-params-container`), 'block');
// Hide dropdowns with only one option
for (let dropdown of document.getElementsByTagName('select')) {
if (dropdown.options.length <= 1) {
hide(dropdown.parentElement.parentElement);
}
}
}
const mapSelectorsToState = () => {
const currentState = state();
document.getElementById('plot_kind').value = currentState.plot_kind;
document.getElementById('change_scale').value = currentState.scale;
document.getElementById('change_shades').checked = currentState.with_quantiles;
document.getElementById('change_suboptimal').checked = currentState.suboptimal_curve;
document.getElementById('change_relative').checked = currentState.relative_curve;
};
/*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* TOOLS
*
* Various functions to simplify life.
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
// Get the data for a given plot state, indexed by curve names.
const data = (curve = null) => {
let curves = getPlotData().data.reduce(
(map, obj) => {map[obj.label] = obj; return map}, {}
);
return curve ? curves[curve]: curves;
}
const getPlotDropdowns = () => {
let kind = state().plot_kind;
let params = [];
Object.keys(state()).forEach(key => {
if (key.startsWith(kind)) {
params.push(key);
}
});
return params;
}
const getCurves = () => Object.keys(data());
const isChart = chart => {
if (typeof chart === 'string' || chart instanceof String) {
chart = [chart]
}
let plot_kind = state().plot_kind;
if (!["bar_chart", "boxplot"].includes(plot_kind)) {
let custom_data = getPlotData();
plot_kind = custom_data.type;
}
return chart.includes(plot_kind);
}
const isVisible = curve => !state().hidden_curves.includes(curve);
const isSolverAvailable = solver => data(solver) !== null;
const isSmallScreen = () => window.screen.availHeight < 900;
/**
* Check for each solver
* if data is available
*
* @returns {Boolean}
*/
const isAvailable = () => {
let isNotAvailable = true;
getCurves().forEach(solver => {
if (isSolverAvailable(solver)) {
isNotAvailable = false;
}
});
return !isNotAvailable;
}
const getMedian = (arr) => {
const sorted = [...arr].sort((a, b) => a - b);
let median = null;
if (sorted.length > 0) {
const mid = Math.floor(sorted.length / 2);
median = (sorted.length % 2 === 1) ? sorted[mid] : (sorted[mid - 1] + sorted[mid]) / 2;
}
return median;
}
const barDataToArrays = () => {
const colors = [], texts = [], x = [], y = [];
getPlotData().data.forEach(plotData => {
x.push(plotData.label);
y.push(getMedian(plotData.y));
const plotText = plotData.text || '';
colors.push(plotText === '' ? plotData.color : NON_CONVERGENT_COLOR);
texts.push(plotText);
});
return {x, y, colors, texts}
}
const getScale = () => {
return _getScale(state().scale)
}
const _getScale = (scale) => {
switch (scale) {
case 'loglog':
return {
xaxis: 'log',
yaxis: 'log',
};
case 'log': // used for boxplot
return {
xaxis: 'log',
yaxis: 'log',
};
case "semilog-y":
return {
xaxis: 'linear',
yaxis: 'log',
};
case "semilog-x":
return {
xaxis: 'log',
yaxis: 'linear',
};
case "linear":
return {
xaxis: 'linear',
yaxis: 'linear',
};
default:
console.error('Unknown scale value : ' + state().scale);
}
}
const getBarChartLayout = () => {
let data = getPlotData();
const layout = {
autosize: true,
modebar: {
orientation: 'v',
},
yaxis: {
type: 'log',
title: data["ylabel"],
tickformat: '.1e',
gridcolor: '#ffffff',
},
xaxis: {
tickangle: -60,
ticktext: Array(data.data.map(d => d.label)),
},
showlegend: false,
title: data["title"],
plot_bgcolor: '#e5ecf6',
};
if (isSmallScreen()) {
layout.dragmode = false;
}
// TODO what does this do ??
if (!isAvailable()) {
layout.annotations = [{
xref: 'paper',
yref: 'paper',
x: 0.5,
y: 0.5,
text: 'Not available',
showlegend: false,
showarrow: false,
font: {
color: 'black',
size: 32,
}
}];
}
return layout;
};
const getBoxplotChartLayout = () => {
const plot_info = getPlotData()
const layout = {
autosize: true,
modebar: {
orientation: 'v',
},
yaxis: {
type: getScale().yaxis,
title: plot_info["ylabel"],
tickformat: '.1e',
gridcolor: '#ffffff',
},
xaxis: {
tickangle: (typeof plot_info.data[0].x[0] === "string") ? -60 : 0,
},
showlegend: false,
title: plot_info["title"],
plot_bgcolor: '#e5ecf6',
};
if (isSmallScreen()) {
layout.dragmode = false;
}
return layout;
};
const getScatterChartLayout = () => {
let customData = getPlotData();
const layout = {
autosize: true, // Let Plotly handle sizing; CSS controls aspect ratio and min-height
modebar: {
orientation: 'v',
},
showlegend: false,
legend: {
title: {
text: 'Solvers',
},
orientation: 'h',
xanchor: 'center',
yanchor: 'top',
y: -.2,
x: .5
},
xaxis: {
type: getScale().xaxis,
title: customData.xlabel,
tickformat: '.1e', // TODO adapt if xaxis is not numeric
tickangle: -45,
gridcolor: '#ffffff',
zeroline : false,
},
yaxis: {
type: getScale().yaxis,
title: customData.ylabel,
tickformat: '.1e',
gridcolor: '#ffffff',
zeroline : false,
},
title: `${customData.title}`,
plot_bgcolor: '#e5ecf6',
};
if (isSmallScreen()) {
layout.dragmode = false;
}
if (!isAvailable()) {
layout.annotations = [{
xref: 'paper',
yref: 'paper',
x: 0.5,
y: 0.5,
text: 'Not available',
showarrow: false,
font: {
color: 'black',
size: 32,
}
}];
};
return layout;
};
/**
* Hide an HTML element by applying a none value to its display style property.
*
* @param HTMLElements
*/
const hide = HTMLElements => {
if (HTMLElements instanceof Element) {
HTMLElements = [HTMLElements]
}
HTMLElements.forEach(h => h.style.display = 'none');
};
/**
* Show an HTML element by applying an initial value to its display style property.
*
* @param HTMLElements
* @param style
*/
const show = (HTMLElements, style = '') => {
if (HTMLElements instanceof Element) {
HTMLElements = [HTMLElements]
}
HTMLElements.forEach(h => h.style.display = style);
};
/*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* MANAGE HIDDEN CURVES
*
* Functions to hide/display and memorize curves which
* were clicked by user on the legend of the plot.
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
const getCurveFromEvent = event => {
const target = event.currentTarget;
for (let i = 0; i < target.children.length; i++) {
if (target.children[i].className === 'curve') {
return target.children[i].firstChild.nodeValue;
}
}
return null;
};
const purgeHiddenCurves = () => setState({hidden_curves: []});
const hideAllCurvesExcept = curve => {setState({hidden_curves: getCurves().filter(elmt => elmt !== curve)})};
const hideCurve = curve => isVisible(curve) ? setState({hidden_curves: [...state().hidden_curves, curve]}) : null;
const showCurve = curve => setState({hidden_curves: state().hidden_curves.filter(hidden => hidden !== curve)});
/**
* Add or remove curve name from the list of hidden curves.
*
* @param {String} curve
* @returns {void}
*/
const handleCurveClick = curve => {
if (!isVisible(curve)) {
showCurve(curve);
return;
}
hideCurve(curve);
};
const handleCurveDoubleClick = curve => {
// If all curves except one are hidden, so double click should show all curves
if (state().hidden_curves.length === getCurves().length - 1) {
purgeHiddenCurves();
return;
}
hideAllCurvesExcept(curve);
};
/*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* MANAGE TABLE RENDERING
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
// Global state for precision
let tableFloatPrecision = 4;
const valueToFixed = (value) => {
if (typeof value === 'number' && !Number.isInteger(value)) {
return value.toFixed(tableFloatPrecision);
}
return value;
}
function renderTable() {
let table_container = document.getElementById('table_container');
hide(document.getElementById('plot_container'));
show(table_container);
table_container.innerHTML = "";
const plotData = getPlotData();
if (!plotData || !plotData.columns || !plotData.data) {
table_container.innerHTML = `<div >No data available</div>`;
return;
}
const { columns, data: rows } = plotData;
// Card Wrapper
const card = document.createElement("div");
card.className = "w-full bg-white overflow-hidden border border-gray-200 mx-auto";
// Table Element
const table = document.createElement("table");
table.className = "w-full border-collapse text-left";
// Header
const thead = document.createElement("thead");
thead.className = "bg-gray-50";
const trHead = document.createElement("tr");
columns.forEach(headerText => {
const th = document.createElement("th");
th.innerText = headerText;
th.className = "px-4 py-4 text-xs font-bold uppercase tracking-wider border-b border-gray-200";
trHead.appendChild(th);
});
thead.appendChild(trHead);
table.appendChild(thead);
// Body
const tbody = document.createElement("tbody");
rows.forEach((rowData, index) => {
const tr = document.createElement("tr");
tr.className = "bg-white transition-colors duration-150 ease-in-out hover:bg-gray-50";
tr.onmouseenter = () => tr.style.backgroundColor = "#f9fafb";
tr.onmouseleave = () => tr.style.backgroundColor = "#fff";
rowData.forEach(cellValue => {
const td = document.createElement("td");
td.innerHTML = valueToFixed(cellValue);
let cellClasses = "px-4 py-4 text-sm text-gray-700";
if (index !== rows.length - 1) {
cellClasses += " border-b border-gray-100";
}
td.className = cellClasses;
tr.appendChild(td);
});
tbody.appendChild(tr);
});
// Footer with Precision Controls & Export
const footerWrapper = document.createElement("div");
footerWrapper.className = "w-full";
const footer = document.createElement("div");
footer.className = "flex justify-between items-center p-4";
// Precision Controls (Left)
const precisionContainer = document.createElement("div");
precisionContainer.className = "flex items-center gap-2 text-sm text-gray-700";
const createPrecBtn = (text) => {
const btn = document.createElement("button");
btn.innerText = text;
btn.className = "px-3 py-1 border border-gray-300 bg-white rounded cursor-pointer hover:bg-gray-100";
return btn;
};
const btnDec = createPrecBtn("-");
const btnInc = createPrecBtn("+");
const labelPrec = document.createElement("span");
labelPrec.innerText = `Float Precision: ${tableFloatPrecision}`;
labelPrec.className = "mx-2 px-4";
btnDec.onclick = () => {
if (tableFloatPrecision > 0) {
tableFloatPrecision--;
renderTable();
}
};
btnInc.onclick = () => {
tableFloatPrecision++;
renderTable();
};
precisionContainer.appendChild(btnDec);
precisionContainer.appendChild(labelPrec);
precisionContainer.appendChild(btnInc);
// Export Button (Right)
const exportButton = document.createElement("button");
exportButton.id = "table-export";
exportButton.innerText = "Export LaTeX";
exportButton.className = "inline-flex items-center px-4 py-2 space-x-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500";
exportButton.addEventListener('click', () => {
exportTable();
});
table.appendChild(tbody);
card.appendChild(table);
table_container.appendChild(card);
footer.appendChild(precisionContainer);
footer.appendChild(exportButton);
footerWrapper.appendChild(footer);
table_container.appendChild(footerWrapper);
}
async function exportTable() {
const button = document.getElementById("table-export");
const defaultText = button.innerHTML;
button.innerHTML = "Copying";
const plotData = getPlotData();
let value = "\\begin{tabular}{l";
value += "c".repeat(plotData.columns.length);
value += "}\n";
value += "\\hline\n";
value += plotData.columns[0].replace('_', '\\_');
plotData.columns.slice(1).forEach(metric => value += ` & ${metric.replace('_', '\\_')}`);
value += " \\\\\n";
value += "\\hline\n";
plotData.data.forEach(rowData => {
value += valueToFixed(rowData[0]).toString().replace('_', '\\_');
rowData.slice(1).forEach(cell => {
value += ` & ${valueToFixed(cell).toString().replace('_', '\\_')}`;
});
value += " \\\\\n";
});
value += "\\hline\n";
value += "\\end{tabular}";
try {
await navigator.clipboard.writeText(value);
button.innerHTML = "Copied in clipboard!";
setTimeout(() => button.innerHTML = defaultText, 2500);
} catch (err) {
button.innerHTML = "Error!";
setTimeout(() => button.innerHTML = defaultText, 2500);
}
}
/*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* MANAGE PLOT LEGEND
*
* We don't use the plotly legend to keep control
* on the size of the plot.
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
/**
* Creates the legend at the bottom of the plot.
*/
const renderLegend = () => {
const legendContainer = document.getElementById('legend_container')
if (!isChart('scatter')) {
hide(legendContainer);
return;
} else {
show(legendContainer);
}
const legend = document.getElementById('plot_legend');
legend.innerHTML = '';
const curvesDescription = window.metadata["solvers_description"];
getCurves().forEach(curve => {
const curve_data = data(curve);
const color = curve_data.color;
const symbolNumber = curve_data.marker;
let legendItem = createLegendItem(curve, color, symbolNumber);
// preserve compatibility with prev version
if(curvesDescription === null || curvesDescription === undefined) {
legend.appendChild(legendItem);
return;
}
let payload = createSolverDescription(
legendItem, {
description: curvesDescription[curve],
}
);
if (payload !== undefined) {
legend.appendChild(payload);
}
});
}
/**
* Creates a legend item which contains the curve name,
* the curve marker as an SVG and an horizontal bar with
* the curve color.
*
* @param {String} curve
* @param {String} color
* @param {int} symbolNumber
* @returns {HTMLElement}
*/
const createLegendItem = (curve, color, symbolNumber) => {
// Create item container
const item = document.createElement('div');
item.style.display = 'flex';
item.style.flexDirection = 'row';
item.style.alignItems = 'center';
item.style.position = 'relative';
item.style.cursor = 'pointer';
item.className = 'bg-white py-1 px-4 shadow-sm mt-2 rounded'
if (!isVisible(curve)) {
item.style.opacity = 0.5;
}
// Click on a curve in the legend
item.addEventListener('click', event => {
curve = getCurveFromEvent(event);
if (!getCurves().includes(curve)) {
console.error('An invalid curve has been handled during the click event.');
return;
}
// In javascript we must simulate double click.
// So first click is handled and kept in memory (window.clickedCurve)
// during 500ms, if nothing else happen timeout will execute
// single click function. However, if an other click happen during this
// 500ms, it clears the timeout and execute the double click function.
if (!window.clickedCurve) {
window.clickedCurve = curve;
// Timeout will execute single click function after 500ms
window.clickedTimeout = setTimeout(() => {
window.clickedCurve = null;
handleCurveClick(curve);
}, 500);
} else if (window.clickedCurve === curve) {
clearTimeout(window.clickedTimeout);
window.clickedCurve = null;
handleCurveDoubleClick(curve);
}
});
// Create the HTML text node for the curve name in the legend
const textContainer = document.createElement('div');
textContainer.style.marginLeft = '0.5rem';
textContainer.className = 'curve';
textContainer.appendChild(document.createTextNode(curve));
// Create the horizontal bar in the legend to represent the curve
const hBar = document.createElement('div');
hBar.style.height = '2px';
hBar.style.width = '30px';
hBar.style.backgroundColor = color;
hBar.style.position = 'absolute';
hBar.style.left = '1em';
hBar.style.zIndex = 10;
// Append elements to the legend item
item.appendChild(createSymbol(symbolNumber, color));
item.appendChild(hBar);
item.appendChild(textContainer);
return item;
}
function createSolverDescription(legendItem, { description }) {
if (description === null || description === undefined || description === "")
return legendItem;
let descriptionContainer = document.createElement("div");
descriptionContainer.setAttribute("class", "curve-description-container")
descriptionContainer.innerHTML = `
<div class="curve-description-content text-sm">
<span class="curve-description-body">${description}</span>
</div>
`;
descriptionContainer.prepend(legendItem);
return descriptionContainer;
}
/**
* Create the same svg symbol as plotly.
* Returns an <svg> HTML Element
*
* @param {int} symbolNumber
* @param {String} color
* @returns {HTMLElement}
*/
const createSymbol = (symbolNumber, color) => {
const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
svg.setAttribute('width', 30);
svg.setAttribute('height', 30);
svg.style.zIndex = 20;
// createPathElement() come from the local file symbols.js
svg.appendChild(createPathElement(symbolNumber, color));
return svg;
}
/**
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* EVENT REGISTRATIONS
*
* Some events are also registered in result.html.
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
document.getElementById('btn-plot-config').addEventListener('click', () => {
const elmt = document.getElementById('mobile-plot-form');
if (elmt.style.display === 'block') {
elmt.style.display = 'none';
return;
}
elmt.style.display = 'block';
});
document.getElementById('btn-main-menu').addEventListener('click', () => {
const elmt = document.getElementById('mobile-menu');
if (elmt.style.display === 'block') {
elmt.style.display = 'none';
return;
}
elmt.style.display = 'block';
});
</script>
<script>
// Script to communicate the height of this page to parent
// when embeding this result in an iframe
(function() {
function sendHeight() {
try {
if (window.self !== window.top) {
window.parent.postMessage(
{ source: "benchopt-result-height", height: document.body.scrollHeight },
"*"
);
}
} catch (e) { /* ignore */ }
}
// Send on load and on resize / content change
window.addEventListener("load", sendHeight);
window.addEventListener("resize", sendHeight);
// Optional: observe DOM mutations to detect dynamic content
const observer = new MutationObserver(sendHeight);
observer.observe(document.body, { childList: true, subtree: true });
}
)();
</script>
</body>
</html>