Leaderboard / data /analysis /heatmap_model.html
schaeferbasti's picture
Leaderboard v0.12.0: vector PDF downloads (jsPDF, svg2pdf.js, embedded font)
78a8a90
Raw History Blame Contribute Delete
47.1 kB
<!doctype html>
<html lang='en'><head><meta charset='utf-8'><meta name='viewport' content='width=device-width,initial-scale=1'><title>SelectArena: improvement over Random by downstream model</title><style>
:root { --fg:#1f2328; --muted:#59636e; --bg:#ffffff; --line:#d1d9e0; --soft:#f6f8fa; --accent:#0072B2; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { --fg:#e6edf3; --muted:#9198a1; --bg:#0d1117; --line:#3d444d; --soft:#151b23; --accent:#4aa3df; }
}
:root[data-theme="dark"] { --fg:#e6edf3; --muted:#9198a1; --bg:#0d1117; --line:#3d444d; --soft:#151b23; --accent:#4aa3df; }
html, body { margin:0; padding:0; background:var(--bg); color:var(--fg);
font:14px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
.toolbar { display:flex; gap:6px; justify-content:flex-end; align-items:center; padding:4px 2px 8px; }
.toolbar .hint { margin-right:auto; color:var(--muted); font-size:12px; }
.toolbar button { font:inherit; font-size:12px; color:var(--fg); background:var(--soft);
border:1px solid var(--line); border-radius:6px; padding:3px 10px; cursor:pointer; }
.toolbar button:hover { border-color:var(--accent); }
#sa-tip { position:fixed; z-index:10; pointer-events:none; display:none; max-width:280px;
padding:6px 9px; border-radius:6px; border:1px solid var(--line); background:var(--bg); color:var(--fg);
font-size:12px; line-height:1.45; white-space:pre-line; box-shadow:0 2px 8px rgba(0,0,0,0.15); }
#sa-tip b { font-weight:600; }
</style></head><body><div class='toolbar'><span class='hint'>Hover or tap a cell for its values.</span><button onclick="saSvg('selectarena_improvement_by_model_groups')">SVG</button><button onclick="saPng('selectarena_improvement_by_model_groups')">PNG</button><button onclick="saPdf('selectarena_improvement_by_model_groups')">PDF</button><button onclick="saCsv('selectarena_improvement_by_model_groups.csv')">CSV</button></div><svg id='sa-figure' viewBox='0 0 710 497' role='img' aria-label='Improvement over Random of each method per downstream model' style='max-width:816px;margin:0 auto'><style>
svg { display:block; width:100%; height:auto; }
.sa-text { fill:var(--fg); }
.sa-muted { fill:var(--muted); }
.sa-grid { stroke:var(--line); }
.sa-ink { stroke:var(--fg); }
.sa-hit { fill:transparent; cursor:default; }
.sa-hit:hover, .sa-hit.sa-on { fill:var(--fg); fill-opacity:0.06; }
.sa-dim { fill:var(--muted); }
.sa-frame-line { stroke:var(--fg); stroke-opacity:0.3; fill:none; }
.sa-point { stroke:var(--fg); }
.sa-legend { fill:var(--bg); stroke:var(--line); }
.sa-heat { image-rendering:pixelated; image-rendering:crisp-edges; }
.sa-halo { paint-order:stroke; stroke:var(--bg); stroke-width:3px; stroke-opacity:0.7; }
.sa-hollow { fill:var(--bg); stroke:var(--fg); } .sa-ci-none { stroke:var(--muted); }</style><text class='sa-text' x='174.0' y='32' text-anchor='middle' font-size='12' font-weight='700'>All</text><text class='sa-muted' x='174.0' y='48' text-anchor='middle' font-size='11'>71 datasets</text><text class='sa-text' x='280.0' y='32' text-anchor='middle' font-size='12' font-weight='600'>LightGBM</text><text class='sa-muted' x='280.0' y='48' text-anchor='middle' font-size='11'>71 datasets</text><text class='sa-text' x='372.0' y='32' text-anchor='middle' font-size='12' font-weight='600'>LinearModel</text><text class='sa-muted' x='372.0' y='48' text-anchor='middle' font-size='11'>71 datasets</text><text class='sa-text' x='464.0' y='32' text-anchor='middle' font-size='12' font-weight='600'>RandomForest</text><text class='sa-muted' x='464.0' y='48' text-anchor='middle' font-size='11'>71 datasets</text><text class='sa-text' x='556.0' y='32' text-anchor='middle' font-size='12' font-weight='600'>RealMLP</text><text class='sa-muted' x='556.0' y='48' text-anchor='middle' font-size='11'>71 datasets</text><text class='sa-text' x='648.0' y='32' text-anchor='middle' font-size='12' font-weight='600'>TabICLv2</text><text class='sa-muted' x='648.0' y='48' text-anchor='middle' font-size='11'>71 datasets</text><text class='sa-text' x='8.0' y='74.5' font-size='12'>RFImportance</text><text class='sa-text' x='8.0' y='99.5' font-size='12'>MI</text><text class='sa-text' x='8.0' y='124.5' font-size='12'>CART</text><text class='sa-text' x='8.0' y='149.5' font-size='12'>F-Test</text><text class='sa-text' x='8.0' y='174.5' font-size='12'>ElasticNet</text><text class='sa-text' x='8.0' y='199.5' font-size='12'>mRMR</text><text class='sa-text' x='8.0' y='224.5' font-size='12'>MarkovBlanket</text><text class='sa-text' x='8.0' y='249.5' font-size='12'>Lasso</text><text class='sa-text' x='8.0' y='274.5' font-size='12'>GainRatio</text><text class='sa-text' x='8.0' y='299.5' font-size='12'>(R)ReliefF</text><text class='sa-text' x='8.0' y='324.5' font-size='12'>SFS</text><text class='sa-text' x='8.0' y='349.5' font-size='12'>LOCO</text><text class='sa-text' x='8.0' y='374.5' font-size='12'>SBE</text><text class='sa-text' x='8.0' y='399.5' font-size='12'>Random</text><text class='sa-text' x='8.0' y='424.5' font-size='12'>LaplacianScore</text><rect x='129.0' y='59.0' width='90' height='23' rx='3' fill='#09529d'/><rect class='sa-ink' x='129.5' y='59.5' width='89' height='22' rx='3' fill='none' stroke-width='2'/><text x='174.0' y='74.5' text-anchor='middle' font-size='12' fill='#ffffff' font-weight='700'>26.2</text><rect class='sa-hit' x='128.0' y='58.0' width='92' height='25' data-tip='RFImportance · All&#10;Improvement over Random +26.2%: place 1 of 15 (best)&#10;71 datasets'/><rect x='129.0' y='84.0' width='90' height='23' rx='3' fill='#1764ab'/><text x='174.0' y='99.5' text-anchor='middle' font-size='12' fill='#ffffff'>23.8</text><rect class='sa-hit' x='128.0' y='83.0' width='92' height='25' data-tip='MI · All&#10;Improvement over Random +23.8%: place 2 of 15&#10;71 datasets'/><rect x='129.0' y='109.0' width='90' height='23' rx='3' fill='#1764ab'/><text x='174.0' y='124.5' text-anchor='middle' font-size='12' fill='#ffffff'>23.8</text><rect class='sa-hit' x='128.0' y='108.0' width='92' height='25' data-tip='CART · All&#10;Improvement over Random +23.8%: place 3 of 15&#10;71 datasets'/><rect x='129.0' y='134.0' width='90' height='23' rx='3' fill='#1c6bb0'/><text x='174.0' y='149.5' text-anchor='middle' font-size='12' fill='#ffffff'>22.8</text><rect class='sa-hit' x='128.0' y='133.0' width='92' height='25' data-tip='F-Test · All&#10;Improvement over Random +22.8%: place 4 of 15&#10;71 datasets'/><rect x='129.0' y='159.0' width='90' height='23' rx='3' fill='#2272b6'/><text x='174.0' y='174.5' text-anchor='middle' font-size='12' fill='#ffffff'>21.9</text><rect class='sa-hit' x='128.0' y='158.0' width='92' height='25' data-tip='ElasticNet · All&#10;Improvement over Random +21.9%: place 5 of 15&#10;71 datasets'/><rect x='129.0' y='184.0' width='90' height='23' rx='3' fill='#2373b6'/><text x='174.0' y='199.5' text-anchor='middle' font-size='12' fill='#ffffff'>21.7</text><rect class='sa-hit' x='128.0' y='183.0' width='92' height='25' data-tip='mRMR · All&#10;Improvement over Random +21.7%: place 6 of 15&#10;71 datasets'/><rect x='129.0' y='209.0' width='90' height='23' rx='3' fill='#2676b8'/><text x='174.0' y='224.5' text-anchor='middle' font-size='12' fill='#ffffff'>21.2</text><rect class='sa-hit' x='128.0' y='208.0' width='92' height='25' data-tip='MarkovBlanket · All&#10;Improvement over Random +21.2%: place 7 of 15&#10;71 datasets'/><rect x='129.0' y='234.0' width='90' height='23' rx='3' fill='#2a7ab9'/><text x='174.0' y='249.5' text-anchor='middle' font-size='12' fill='#ffffff'>20.9</text><rect class='sa-hit' x='128.0' y='233.0' width='92' height='25' data-tip='Lasso · All&#10;Improvement over Random +20.9%: place 8 of 15&#10;71 datasets'/><rect x='129.0' y='259.0' width='90' height='23' rx='3' fill='#3484bf'/><text x='174.0' y='274.5' text-anchor='middle' font-size='12' fill='#ffffff'>19.5</text><rect class='sa-hit' x='128.0' y='258.0' width='92' height='25' data-tip='GainRatio · All&#10;Improvement over Random +19.5%: place 9 of 15&#10;71 datasets'/><rect x='129.0' y='284.0' width='90' height='23' rx='3' fill='#3b8bc2'/><text x='174.0' y='299.5' text-anchor='middle' font-size='12' fill='#ffffff'>18.6</text><rect class='sa-hit' x='128.0' y='283.0' width='92' height='25' data-tip='(R)ReliefF · All&#10;Improvement over Random +18.6%: place 10 of 15&#10;71 datasets'/><rect x='129.0' y='309.0' width='90' height='23' rx='3' fill='#3e8ec4'/><text x='174.0' y='324.5' text-anchor='middle' font-size='12' fill='#ffffff'>18.2</text><rect class='sa-hit' x='128.0' y='308.0' width='92' height='25' data-tip='SFS · All&#10;Improvement over Random +18.2%: place 11 of 15&#10;71 datasets'/><rect x='129.0' y='334.0' width='90' height='23' rx='3' fill='#6fb0d7'/><text x='174.0' y='349.5' text-anchor='middle' font-size='12' fill='#1f2328'>13.0</text><rect class='sa-hit' x='128.0' y='333.0' width='92' height='25' data-tip='LOCO · All&#10;Improvement over Random +13.0%: place 12 of 15&#10;71 datasets'/><rect x='129.0' y='359.0' width='90' height='23' rx='3' fill='#81badb'/><text x='174.0' y='374.5' text-anchor='middle' font-size='12' fill='#1f2328'>11.4</text><rect class='sa-hit' x='128.0' y='358.0' width='92' height='25' data-tip='SBE · All&#10;Improvement over Random +11.4%: place 13 of 15&#10;71 datasets'/><rect x='129.0' y='384.0' width='90' height='23' rx='3' fill='#dfecf7'/><text x='174.0' y='399.5' text-anchor='middle' font-size='12' fill='#1f2328'>0.0</text><rect class='sa-hit' x='128.0' y='383.0' width='92' height='25' data-tip='Random · All&#10;Improvement over Random +0.0%: place 14 of 15&#10;71 datasets'/><rect x='129.0' y='409.0' width='90' height='23' rx='3' fill='#dfecf7'/><text x='174.0' y='424.5' text-anchor='middle' font-size='12' fill='#1f2328'>-18.6</text><rect class='sa-hit' x='128.0' y='408.0' width='92' height='25' data-tip='LaplacianScore · All&#10;Improvement over Random -18.6%: place 15 of 15&#10;71 datasets'/><rect x='235.0' y='59.0' width='90' height='23' rx='3' fill='#0d57a1'/><rect class='sa-ink' x='235.5' y='59.5' width='89' height='22' rx='3' fill='none' stroke-width='2'/><text x='280.0' y='74.5' text-anchor='middle' font-size='12' fill='#ffffff' font-weight='700'>25.5</text><rect class='sa-hit' x='234.0' y='58.0' width='92' height='25' data-tip='RFImportance · LightGBM&#10;Improvement over Random +25.5%: place 1 of 15 (best)&#10;71 datasets'/><rect x='235.0' y='84.0' width='90' height='23' rx='3' fill='#1c6ab0'/><text x='280.0' y='99.5' text-anchor='middle' font-size='12' fill='#ffffff'>22.9</text><rect class='sa-hit' x='234.0' y='83.0' width='92' height='25' data-tip='MI · LightGBM&#10;Improvement over Random +22.9%: place 3 of 15&#10;71 datasets'/><rect x='235.0' y='109.0' width='90' height='23' rx='3' fill='#1966ad'/><text x='280.0' y='124.5' text-anchor='middle' font-size='12' fill='#ffffff'>23.5</text><rect class='sa-hit' x='234.0' y='108.0' width='92' height='25' data-tip='CART · LightGBM&#10;Improvement over Random +23.5%: place 2 of 15&#10;71 datasets'/><rect x='235.0' y='134.0' width='90' height='23' rx='3' fill='#2575b7'/><text x='280.0' y='149.5' text-anchor='middle' font-size='12' fill='#ffffff'>21.5</text><rect class='sa-hit' x='234.0' y='133.0' width='92' height='25' data-tip='F-Test · LightGBM&#10;Improvement over Random +21.5%: place 6 of 15&#10;71 datasets'/><rect x='235.0' y='159.0' width='90' height='23' rx='3' fill='#2474b7'/><text x='280.0' y='174.5' text-anchor='middle' font-size='12' fill='#ffffff'>21.6</text><rect class='sa-hit' x='234.0' y='158.0' width='92' height='25' data-tip='ElasticNet · LightGBM&#10;Improvement over Random +21.6%: place 5 of 15&#10;71 datasets'/><rect x='235.0' y='184.0' width='90' height='23' rx='3' fill='#2373b6'/><text x='280.0' y='199.5' text-anchor='middle' font-size='12' fill='#ffffff'>21.7</text><rect class='sa-hit' x='234.0' y='183.0' width='92' height='25' data-tip='mRMR · LightGBM&#10;Improvement over Random +21.7%: place 4 of 15&#10;71 datasets'/><rect x='235.0' y='209.0' width='90' height='23' rx='3' fill='#2777b8'/><text x='280.0' y='224.5' text-anchor='middle' font-size='12' fill='#ffffff'>21.2</text><rect class='sa-hit' x='234.0' y='208.0' width='92' height='25' data-tip='MarkovBlanket · LightGBM&#10;Improvement over Random +21.2%: place 7 of 15&#10;71 datasets'/><rect x='235.0' y='234.0' width='90' height='23' rx='3' fill='#2979b9'/><text x='280.0' y='249.5' text-anchor='middle' font-size='12' fill='#ffffff'>21.1</text><rect class='sa-hit' x='234.0' y='233.0' width='92' height='25' data-tip='Lasso · LightGBM&#10;Improvement over Random +21.1%: place 8 of 15&#10;71 datasets'/><rect x='235.0' y='259.0' width='90' height='23' rx='3' fill='#3282be'/><text x='280.0' y='274.5' text-anchor='middle' font-size='12' fill='#ffffff'>19.8</text><rect class='sa-hit' x='234.0' y='258.0' width='92' height='25' data-tip='GainRatio · LightGBM&#10;Improvement over Random +19.8%: place 9 of 15&#10;71 datasets'/><rect x='235.0' y='284.0' width='90' height='23' rx='3' fill='#3b8bc2'/><text x='280.0' y='299.5' text-anchor='middle' font-size='12' fill='#ffffff'>18.5</text><rect class='sa-hit' x='234.0' y='283.0' width='92' height='25' data-tip='(R)ReliefF · LightGBM&#10;Improvement over Random +18.5%: place 10 of 15&#10;71 datasets'/><rect x='235.0' y='309.0' width='90' height='23' rx='3' fill='#3e8ec4'/><text x='280.0' y='324.5' text-anchor='middle' font-size='12' fill='#ffffff'>18.1</text><rect class='sa-hit' x='234.0' y='308.0' width='92' height='25' data-tip='SFS · LightGBM&#10;Improvement over Random +18.1%: place 11 of 15&#10;71 datasets'/><rect x='235.0' y='334.0' width='90' height='23' rx='3' fill='#6fb0d7'/><text x='280.0' y='349.5' text-anchor='middle' font-size='12' fill='#1f2328'>13.0</text><rect class='sa-hit' x='234.0' y='333.0' width='92' height='25' data-tip='LOCO · LightGBM&#10;Improvement over Random +13.0%: place 12 of 15&#10;71 datasets'/><rect x='235.0' y='359.0' width='90' height='23' rx='3' fill='#75b4d8'/><text x='280.0' y='374.5' text-anchor='middle' font-size='12' fill='#1f2328'>12.3</text><rect class='sa-hit' x='234.0' y='358.0' width='92' height='25' data-tip='SBE · LightGBM&#10;Improvement over Random +12.3%: place 13 of 15&#10;71 datasets'/><rect x='235.0' y='384.0' width='90' height='23' rx='3' fill='#dfecf7'/><text x='280.0' y='399.5' text-anchor='middle' font-size='12' fill='#1f2328'>0.0</text><rect class='sa-hit' x='234.0' y='383.0' width='92' height='25' data-tip='Random · LightGBM&#10;Improvement over Random +0.0%: place 14 of 15&#10;71 datasets'/><rect x='235.0' y='409.0' width='90' height='23' rx='3' fill='#dfecf7'/><text x='280.0' y='424.5' text-anchor='middle' font-size='12' fill='#1f2328'>-23.2</text><rect class='sa-hit' x='234.0' y='408.0' width='92' height='25' data-tip='LaplacianScore · LightGBM&#10;Improvement over Random -23.2%: place 15 of 15&#10;71 datasets'/><rect x='327.0' y='59.0' width='90' height='23' rx='3' fill='#125ea6'/><rect class='sa-ink' x='327.5' y='59.5' width='89' height='22' rx='3' fill='none' stroke-width='2'/><text x='372.0' y='74.5' text-anchor='middle' font-size='12' fill='#ffffff' font-weight='700'>24.6</text><rect class='sa-hit' x='326.0' y='58.0' width='92' height='25' data-tip='RFImportance · LinearModel&#10;Improvement over Random +24.6%: place 1 of 15 (best)&#10;71 datasets'/><rect x='327.0' y='84.0' width='90' height='23' rx='3' fill='#1a68ae'/><text x='372.0' y='99.5' text-anchor='middle' font-size='12' fill='#ffffff'>23.2</text><rect class='sa-hit' x='326.0' y='83.0' width='92' height='25' data-tip='MI · LinearModel&#10;Improvement over Random +23.2%: place 2 of 15&#10;71 datasets'/><rect x='327.0' y='109.0' width='90' height='23' rx='3' fill='#2171b5'/><text x='372.0' y='124.5' text-anchor='middle' font-size='12' fill='#ffffff'>22.0</text><rect class='sa-hit' x='326.0' y='108.0' width='92' height='25' data-tip='CART · LinearModel&#10;Improvement over Random +22.0%: place 5 of 15&#10;71 datasets'/><rect x='327.0' y='134.0' width='90' height='23' rx='3' fill='#1c6bb0'/><text x='372.0' y='149.5' text-anchor='middle' font-size='12' fill='#ffffff'>22.9</text><rect class='sa-hit' x='326.0' y='133.0' width='92' height='25' data-tip='F-Test · LinearModel&#10;Improvement over Random +22.9%: place 3 of 15&#10;71 datasets'/><rect x='327.0' y='159.0' width='90' height='23' rx='3' fill='#1e6db2'/><text x='372.0' y='174.5' text-anchor='middle' font-size='12' fill='#ffffff'>22.6</text><rect class='sa-hit' x='326.0' y='158.0' width='92' height='25' data-tip='ElasticNet · LinearModel&#10;Improvement over Random +22.6%: place 4 of 15&#10;71 datasets'/><rect x='327.0' y='184.0' width='90' height='23' rx='3' fill='#2272b6'/><text x='372.0' y='199.5' text-anchor='middle' font-size='12' fill='#ffffff'>21.8</text><rect class='sa-hit' x='326.0' y='183.0' width='92' height='25' data-tip='mRMR · LinearModel&#10;Improvement over Random +21.8%: place 6 of 15&#10;71 datasets'/><rect x='327.0' y='209.0' width='90' height='23' rx='3' fill='#3888c1'/><text x='372.0' y='224.5' text-anchor='middle' font-size='12' fill='#ffffff'>19.0</text><rect class='sa-hit' x='326.0' y='208.0' width='92' height='25' data-tip='MarkovBlanket · LinearModel&#10;Improvement over Random +19.0%: place 8 of 15&#10;71 datasets'/><rect x='327.0' y='234.0' width='90' height='23' rx='3' fill='#2373b6'/><text x='372.0' y='249.5' text-anchor='middle' font-size='12' fill='#ffffff'>21.7</text><rect class='sa-hit' x='326.0' y='233.0' width='92' height='25' data-tip='Lasso · LinearModel&#10;Improvement over Random +21.7%: place 7 of 15&#10;71 datasets'/><rect x='327.0' y='259.0' width='90' height='23' rx='3' fill='#3c8cc3'/><text x='372.0' y='274.5' text-anchor='middle' font-size='12' fill='#ffffff'>18.4</text><rect class='sa-hit' x='326.0' y='258.0' width='92' height='25' data-tip='GainRatio · LinearModel&#10;Improvement over Random +18.4%: place 9 of 15&#10;71 datasets'/><rect x='327.0' y='284.0' width='90' height='23' rx='3' fill='#4f9bcb'/><text x='372.0' y='299.5' text-anchor='middle' font-size='12' fill='#ffffff'>16.3</text><rect class='sa-hit' x='326.0' y='283.0' width='92' height='25' data-tip='(R)ReliefF · LinearModel&#10;Improvement over Random +16.3%: place 11 of 15&#10;71 datasets'/><rect x='327.0' y='309.0' width='90' height='23' rx='3' fill='#4191c6'/><text x='372.0' y='324.5' text-anchor='middle' font-size='12' fill='#ffffff'>17.7</text><rect class='sa-hit' x='326.0' y='308.0' width='92' height='25' data-tip='SFS · LinearModel&#10;Improvement over Random +17.7%: place 10 of 15&#10;71 datasets'/><rect x='327.0' y='334.0' width='90' height='23' rx='3' fill='#7ab6d9'/><text x='372.0' y='349.5' text-anchor='middle' font-size='12' fill='#1f2328'>12.0</text><rect class='sa-hit' x='326.0' y='333.0' width='92' height='25' data-tip='LOCO · LinearModel&#10;Improvement over Random +12.0%: place 12 of 15&#10;71 datasets'/><rect x='327.0' y='359.0' width='90' height='23' rx='3' fill='#a3cce3'/><text x='372.0' y='374.5' text-anchor='middle' font-size='12' fill='#1f2328'>8.4</text><rect class='sa-hit' x='326.0' y='358.0' width='92' height='25' data-tip='SBE · LinearModel&#10;Improvement over Random +8.4%: place 13 of 15&#10;71 datasets'/><rect x='327.0' y='384.0' width='90' height='23' rx='3' fill='#dfecf7'/><text x='372.0' y='399.5' text-anchor='middle' font-size='12' fill='#1f2328'>0.0</text><rect class='sa-hit' x='326.0' y='383.0' width='92' height='25' data-tip='Random · LinearModel&#10;Improvement over Random +0.0%: place 14 of 15&#10;71 datasets'/><rect x='327.0' y='409.0' width='90' height='23' rx='3' fill='#dfecf7'/><text x='372.0' y='424.5' text-anchor='middle' font-size='12' fill='#1f2328'>-14.4</text><rect class='sa-hit' x='326.0' y='408.0' width='92' height='25' data-tip='LaplacianScore · LinearModel&#10;Improvement over Random -14.4%: place 15 of 15&#10;71 datasets'/><rect x='419.0' y='59.0' width='90' height='23' rx='3' fill='#08478d'/><rect class='sa-ink' x='419.5' y='59.5' width='89' height='22' rx='3' fill='none' stroke-width='2'/><text x='464.0' y='74.5' text-anchor='middle' font-size='12' fill='#ffffff' font-weight='700'>27.7</text><rect class='sa-hit' x='418.0' y='58.0' width='92' height='25' data-tip='RFImportance · RandomForest&#10;Improvement over Random +27.7%: place 1 of 15 (best)&#10;71 datasets'/><rect x='419.0' y='84.0' width='90' height='23' rx='3' fill='#0b559f'/><text x='464.0' y='99.5' text-anchor='middle' font-size='12' fill='#ffffff'>25.8</text><rect class='sa-hit' x='418.0' y='83.0' width='92' height='25' data-tip='MI · RandomForest&#10;Improvement over Random +25.8%: place 2 of 15&#10;71 datasets'/><rect x='419.0' y='109.0' width='90' height='23' rx='3' fill='#115ca5'/><text x='464.0' y='124.5' text-anchor='middle' font-size='12' fill='#ffffff'>24.8</text><rect class='sa-hit' x='418.0' y='108.0' width='92' height='25' data-tip='CART · RandomForest&#10;Improvement over Random +24.8%: place 3 of 15&#10;71 datasets'/><rect x='419.0' y='134.0' width='90' height='23' rx='3' fill='#1764ab'/><text x='464.0' y='149.5' text-anchor='middle' font-size='12' fill='#ffffff'>23.8</text><rect class='sa-hit' x='418.0' y='133.0' width='92' height='25' data-tip='F-Test · RandomForest&#10;Improvement over Random +23.8%: place 4 of 15&#10;71 datasets'/><rect x='419.0' y='159.0' width='90' height='23' rx='3' fill='#2070b4'/><text x='464.0' y='174.5' text-anchor='middle' font-size='12' fill='#ffffff'>22.1</text><rect class='sa-hit' x='418.0' y='158.0' width='92' height='25' data-tip='ElasticNet · RandomForest&#10;Improvement over Random +22.1%: place 6 of 15&#10;71 datasets'/><rect x='419.0' y='184.0' width='90' height='23' rx='3' fill='#2777b8'/><text x='464.0' y='199.5' text-anchor='middle' font-size='12' fill='#ffffff'>21.1</text><rect class='sa-hit' x='418.0' y='183.0' width='92' height='25' data-tip='mRMR · RandomForest&#10;Improvement over Random +21.1%: place 8 of 15&#10;71 datasets'/><rect x='419.0' y='209.0' width='90' height='23' rx='3' fill='#1865ac'/><text x='464.0' y='224.5' text-anchor='middle' font-size='12' fill='#ffffff'>23.6</text><rect class='sa-hit' x='418.0' y='208.0' width='92' height='25' data-tip='MarkovBlanket · RandomForest&#10;Improvement over Random +23.6%: place 5 of 15&#10;71 datasets'/><rect x='419.0' y='234.0' width='90' height='23' rx='3' fill='#2777b8'/><text x='464.0' y='249.5' text-anchor='middle' font-size='12' fill='#ffffff'>21.2</text><rect class='sa-hit' x='418.0' y='233.0' width='92' height='25' data-tip='Lasso · RandomForest&#10;Improvement over Random +21.2%: place 7 of 15&#10;71 datasets'/><rect x='419.0' y='259.0' width='90' height='23' rx='3' fill='#2c7cba'/><text x='464.0' y='274.5' text-anchor='middle' font-size='12' fill='#ffffff'>20.6</text><rect class='sa-hit' x='418.0' y='258.0' width='92' height='25' data-tip='GainRatio · RandomForest&#10;Improvement over Random +20.6%: place 9 of 15&#10;71 datasets'/><rect x='419.0' y='284.0' width='90' height='23' rx='3' fill='#2e7ebc'/><text x='464.0' y='299.5' text-anchor='middle' font-size='12' fill='#ffffff'>20.3</text><rect class='sa-hit' x='418.0' y='283.0' width='92' height='25' data-tip='(R)ReliefF · RandomForest&#10;Improvement over Random +20.3%: place 10 of 15&#10;71 datasets'/><rect x='419.0' y='309.0' width='90' height='23' rx='3' fill='#4493c7'/><text x='464.0' y='324.5' text-anchor='middle' font-size='12' fill='#ffffff'>17.5</text><rect class='sa-hit' x='418.0' y='308.0' width='92' height='25' data-tip='SFS · RandomForest&#10;Improvement over Random +17.5%: place 11 of 15&#10;71 datasets'/><rect x='419.0' y='334.0' width='90' height='23' rx='3' fill='#72b2d8'/><text x='464.0' y='349.5' text-anchor='middle' font-size='12' fill='#1f2328'>12.7</text><rect class='sa-hit' x='418.0' y='333.0' width='92' height='25' data-tip='LOCO · RandomForest&#10;Improvement over Random +12.7%: place 13 of 15&#10;71 datasets'/><rect x='419.0' y='359.0' width='90' height='23' rx='3' fill='#6fb0d7'/><text x='464.0' y='374.5' text-anchor='middle' font-size='12' fill='#1f2328'>13.0</text><rect class='sa-hit' x='418.0' y='358.0' width='92' height='25' data-tip='SBE · RandomForest&#10;Improvement over Random +13.0%: place 12 of 15&#10;71 datasets'/><rect x='419.0' y='384.0' width='90' height='23' rx='3' fill='#dfecf7'/><text x='464.0' y='399.5' text-anchor='middle' font-size='12' fill='#1f2328'>0.0</text><rect class='sa-hit' x='418.0' y='383.0' width='92' height='25' data-tip='Random · RandomForest&#10;Improvement over Random +0.0%: place 14 of 15&#10;71 datasets'/><rect x='419.0' y='409.0' width='90' height='23' rx='3' fill='#dfecf7'/><text x='464.0' y='424.5' text-anchor='middle' font-size='12' fill='#1f2328'>-17.0</text><rect class='sa-hit' x='418.0' y='408.0' width='92' height='25' data-tip='LaplacianScore · RandomForest&#10;Improvement over Random -17.0%: place 15 of 15&#10;71 datasets'/><rect x='511.0' y='59.0' width='90' height='23' rx='3' fill='#084c95'/><rect class='sa-ink' x='511.5' y='59.5' width='89' height='22' rx='3' fill='none' stroke-width='2'/><text x='556.0' y='74.5' text-anchor='middle' font-size='12' fill='#ffffff' font-weight='700'>27.0</text><rect class='sa-hit' x='510.0' y='58.0' width='92' height='25' data-tip='RFImportance · RealMLP&#10;Improvement over Random +27.0%: place 1 of 15 (best)&#10;71 datasets'/><rect x='511.0' y='84.0' width='90' height='23' rx='3' fill='#1561a9'/><text x='556.0' y='99.5' text-anchor='middle' font-size='12' fill='#ffffff'>24.2</text><rect class='sa-hit' x='510.0' y='83.0' width='92' height='25' data-tip='MI · RealMLP&#10;Improvement over Random +24.2%: place 3 of 15&#10;71 datasets'/><rect x='511.0' y='109.0' width='90' height='23' rx='3' fill='#105ba4'/><text x='556.0' y='124.5' text-anchor='middle' font-size='12' fill='#ffffff'>24.9</text><rect class='sa-hit' x='510.0' y='108.0' width='92' height='25' data-tip='CART · RealMLP&#10;Improvement over Random +24.9%: place 2 of 15&#10;71 datasets'/><rect x='511.0' y='134.0' width='90' height='23' rx='3' fill='#1b69af'/><text x='556.0' y='149.5' text-anchor='middle' font-size='12' fill='#ffffff'>23.1</text><rect class='sa-hit' x='510.0' y='133.0' width='92' height='25' data-tip='F-Test · RealMLP&#10;Improvement over Random +23.1%: place 4 of 15&#10;71 datasets'/><rect x='511.0' y='159.0' width='90' height='23' rx='3' fill='#2a7ab9'/><text x='556.0' y='174.5' text-anchor='middle' font-size='12' fill='#ffffff'>20.9</text><rect class='sa-hit' x='510.0' y='158.0' width='92' height='25' data-tip='ElasticNet · RealMLP&#10;Improvement over Random +20.9%: place 7 of 15&#10;71 datasets'/><rect x='511.0' y='184.0' width='90' height='23' rx='3' fill='#2474b7'/><text x='556.0' y='199.5' text-anchor='middle' font-size='12' fill='#ffffff'>21.6</text><rect class='sa-hit' x='510.0' y='183.0' width='92' height='25' data-tip='mRMR · RealMLP&#10;Improvement over Random +21.6%: place 6 of 15&#10;71 datasets'/><rect x='511.0' y='209.0' width='90' height='23' rx='3' fill='#2272b6'/><text x='556.0' y='224.5' text-anchor='middle' font-size='12' fill='#ffffff'>21.8</text><rect class='sa-hit' x='510.0' y='208.0' width='92' height='25' data-tip='MarkovBlanket · RealMLP&#10;Improvement over Random +21.8%: place 5 of 15&#10;71 datasets'/><rect x='511.0' y='234.0' width='90' height='23' rx='3' fill='#3686c0'/><text x='556.0' y='249.5' text-anchor='middle' font-size='12' fill='#ffffff'>19.2</text><rect class='sa-hit' x='510.0' y='233.0' width='92' height='25' data-tip='Lasso · RealMLP&#10;Improvement over Random +19.2%: place 10 of 15&#10;71 datasets'/><rect x='511.0' y='259.0' width='90' height='23' rx='3' fill='#2e7ebc'/><text x='556.0' y='274.5' text-anchor='middle' font-size='12' fill='#ffffff'>20.3</text><rect class='sa-hit' x='510.0' y='258.0' width='92' height='25' data-tip='GainRatio · RealMLP&#10;Improvement over Random +20.3%: place 9 of 15&#10;71 datasets'/><rect x='511.0' y='284.0' width='90' height='23' rx='3' fill='#2c7cba'/><text x='556.0' y='299.5' text-anchor='middle' font-size='12' fill='#ffffff'>20.6</text><rect class='sa-hit' x='510.0' y='283.0' width='92' height='25' data-tip='(R)ReliefF · RealMLP&#10;Improvement over Random +20.6%: place 8 of 15&#10;71 datasets'/><rect x='511.0' y='309.0' width='90' height='23' rx='3' fill='#3a8ac2'/><text x='556.0' y='324.5' text-anchor='middle' font-size='12' fill='#ffffff'>18.7</text><rect class='sa-hit' x='510.0' y='308.0' width='92' height='25' data-tip='SFS · RealMLP&#10;Improvement over Random +18.7%: place 11 of 15&#10;71 datasets'/><rect x='511.0' y='334.0' width='90' height='23' rx='3' fill='#5da5d1'/><text x='556.0' y='349.5' text-anchor='middle' font-size='12' fill='#1f2328'>14.8</text><rect class='sa-hit' x='510.0' y='333.0' width='92' height='25' data-tip='LOCO · RealMLP&#10;Improvement over Random +14.8%: place 12 of 15&#10;71 datasets'/><rect x='511.0' y='359.0' width='90' height='23' rx='3' fill='#74b3d8'/><text x='556.0' y='374.5' text-anchor='middle' font-size='12' fill='#1f2328'>12.5</text><rect class='sa-hit' x='510.0' y='358.0' width='92' height='25' data-tip='SBE · RealMLP&#10;Improvement over Random +12.5%: place 13 of 15&#10;71 datasets'/><rect x='511.0' y='384.0' width='90' height='23' rx='3' fill='#dfecf7'/><text x='556.0' y='399.5' text-anchor='middle' font-size='12' fill='#1f2328'>0.0</text><rect class='sa-hit' x='510.0' y='383.0' width='92' height='25' data-tip='Random · RealMLP&#10;Improvement over Random +0.0%: place 14 of 15&#10;71 datasets'/><rect x='511.0' y='409.0' width='90' height='23' rx='3' fill='#dfecf7'/><text x='556.0' y='424.5' text-anchor='middle' font-size='12' fill='#1f2328'>-18.4</text><rect class='sa-hit' x='510.0' y='408.0' width='92' height='25' data-tip='LaplacianScore · RealMLP&#10;Improvement over Random -18.4%: place 15 of 15&#10;71 datasets'/><rect x='603.0' y='59.0' width='90' height='23' rx='3' fill='#083c7d'/><rect class='sa-ink' x='603.5' y='59.5' width='89' height='22' rx='3' fill='none' stroke-width='2'/><text x='648.0' y='74.5' text-anchor='middle' font-size='12' fill='#ffffff' font-weight='700'>29.0</text><rect class='sa-hit' x='602.0' y='58.0' width='92' height='25' data-tip='RFImportance · TabICLv2&#10;Improvement over Random +29.0%: place 1 of 15 (best)&#10;71 datasets'/><rect x='603.0' y='84.0' width='90' height='23' rx='3' fill='#0d57a1'/><text x='648.0' y='99.5' text-anchor='middle' font-size='12' fill='#ffffff'>25.5</text><rect class='sa-hit' x='602.0' y='83.0' width='92' height='25' data-tip='MI · TabICLv2&#10;Improvement over Random +25.5%: place 3 of 15&#10;71 datasets'/><rect x='603.0' y='109.0' width='90' height='23' rx='3' fill='#0a549e'/><text x='648.0' y='124.5' text-anchor='middle' font-size='12' fill='#ffffff'>25.9</text><rect class='sa-hit' x='602.0' y='108.0' width='92' height='25' data-tip='CART · TabICLv2&#10;Improvement over Random +25.9%: place 2 of 15&#10;71 datasets'/><rect x='603.0' y='134.0' width='90' height='23' rx='3' fill='#1561a9'/><text x='648.0' y='149.5' text-anchor='middle' font-size='12' fill='#ffffff'>24.2</text><rect class='sa-hit' x='602.0' y='133.0' width='92' height='25' data-tip='F-Test · TabICLv2&#10;Improvement over Random +24.2%: place 4 of 15&#10;71 datasets'/><rect x='603.0' y='159.0' width='90' height='23' rx='3' fill='#2373b6'/><text x='648.0' y='174.5' text-anchor='middle' font-size='12' fill='#ffffff'>21.7</text><rect class='sa-hit' x='602.0' y='158.0' width='92' height='25' data-tip='ElasticNet · TabICLv2&#10;Improvement over Random +21.7%: place 7 of 15&#10;71 datasets'/><rect x='603.0' y='184.0' width='90' height='23' rx='3' fill='#1865ac'/><text x='648.0' y='199.5' text-anchor='middle' font-size='12' fill='#ffffff'>23.6</text><rect class='sa-hit' x='602.0' y='183.0' width='92' height='25' data-tip='mRMR · TabICLv2&#10;Improvement over Random +23.6%: place 5 of 15&#10;71 datasets'/><rect x='603.0' y='209.0' width='90' height='23' rx='3' fill='#1865ac'/><text x='648.0' y='224.5' text-anchor='middle' font-size='12' fill='#ffffff'>23.5</text><rect class='sa-hit' x='602.0' y='208.0' width='92' height='25' data-tip='MarkovBlanket · TabICLv2&#10;Improvement over Random +23.5%: place 6 of 15&#10;71 datasets'/><rect x='603.0' y='234.0' width='90' height='23' rx='3' fill='#2e7ebc'/><text x='648.0' y='249.5' text-anchor='middle' font-size='12' fill='#ffffff'>20.3</text><rect class='sa-hit' x='602.0' y='233.0' width='92' height='25' data-tip='Lasso · TabICLv2&#10;Improvement over Random +20.3%: place 10 of 15&#10;71 datasets'/><rect x='603.0' y='259.0' width='90' height='23' rx='3' fill='#2a7ab9'/><text x='648.0' y='274.5' text-anchor='middle' font-size='12' fill='#ffffff'>20.8</text><rect class='sa-hit' x='602.0' y='258.0' width='92' height='25' data-tip='GainRatio · TabICLv2&#10;Improvement over Random +20.8%: place 9 of 15&#10;71 datasets'/><rect x='603.0' y='284.0' width='90' height='23' rx='3' fill='#2373b6'/><text x='648.0' y='299.5' text-anchor='middle' font-size='12' fill='#ffffff'>21.7</text><rect class='sa-hit' x='602.0' y='283.0' width='92' height='25' data-tip='(R)ReliefF · TabICLv2&#10;Improvement over Random +21.7%: place 8 of 15&#10;71 datasets'/><rect x='603.0' y='309.0' width='90' height='23' rx='3' fill='#3585bf'/><text x='648.0' y='324.5' text-anchor='middle' font-size='12' fill='#ffffff'>19.3</text><rect class='sa-hit' x='602.0' y='308.0' width='92' height='25' data-tip='SFS · TabICLv2&#10;Improvement over Random +19.3%: place 11 of 15&#10;71 datasets'/><rect x='603.0' y='334.0' width='90' height='23' rx='3' fill='#5fa6d1'/><text x='648.0' y='349.5' text-anchor='middle' font-size='12' fill='#1f2328'>14.6</text><rect class='sa-hit' x='602.0' y='333.0' width='92' height='25' data-tip='LOCO · TabICLv2&#10;Improvement over Random +14.6%: place 12 of 15&#10;71 datasets'/><rect x='603.0' y='359.0' width='90' height='23' rx='3' fill='#6caed6'/><text x='648.0' y='374.5' text-anchor='middle' font-size='12' fill='#1f2328'>13.2</text><rect class='sa-hit' x='602.0' y='358.0' width='92' height='25' data-tip='SBE · TabICLv2&#10;Improvement over Random +13.2%: place 13 of 15&#10;71 datasets'/><rect x='603.0' y='384.0' width='90' height='23' rx='3' fill='#dfecf7'/><text x='648.0' y='399.5' text-anchor='middle' font-size='12' fill='#1f2328'>0.0</text><rect class='sa-hit' x='602.0' y='383.0' width='92' height='25' data-tip='Random · TabICLv2&#10;Improvement over Random +0.0%: place 14 of 15&#10;71 datasets'/><rect x='603.0' y='409.0' width='90' height='23' rx='3' fill='#dfecf7'/><text x='648.0' y='424.5' text-anchor='middle' font-size='12' fill='#1f2328'>-19.6</text><rect class='sa-hit' x='602.0' y='408.0' width='92' height='25' data-tip='LaplacianScore · TabICLv2&#10;Improvement over Random -19.6%: place 15 of 15&#10;71 datasets'/><rect x='128.0' y='461' width='13.0' height='10' fill='#083c7d'/><rect x='140.5' y='461' width='13.0' height='10' fill='#08478d'/><rect x='153.0' y='461' width='13.0' height='10' fill='#08509b'/><rect x='165.5' y='461' width='13.0' height='10' fill='#0e59a2'/><rect x='178.0' y='461' width='13.0' height='10' fill='#1562a9'/><rect x='190.5' y='461' width='13.0' height='10' fill='#1c6bb0'/><rect x='203.0' y='461' width='13.0' height='10' fill='#2575b7'/><rect x='215.5' y='461' width='13.0' height='10' fill='#2f7fbc'/><rect x='228.0' y='461' width='13.0' height='10' fill='#3888c1'/><rect x='240.5' y='461' width='13.0' height='10' fill='#4191c6'/><rect x='253.0' y='461' width='13.0' height='10' fill='#4e9acb'/><rect x='265.5' y='461' width='13.0' height='10' fill='#5aa2cf'/><rect x='278.0' y='461' width='13.0' height='10' fill='#65aad4'/><rect x='290.5' y='461' width='13.0' height='10' fill='#72b2d8'/><rect x='303.0' y='461' width='13.0' height='10' fill='#82bbdb'/><rect x='315.5' y='461' width='13.0' height='10' fill='#91c3de'/><rect x='328.0' y='461' width='13.0' height='10' fill='#9fcae1'/><rect x='340.5' y='461' width='13.0' height='10' fill='#aacfe5'/><rect x='353.0' y='461' width='13.0' height='10' fill='#b7d4ea'/><rect x='365.5' y='461' width='13.0' height='10' fill='#c2d9ee'/><rect x='378.0' y='461' width='13.0' height='10' fill='#cadef0'/><rect x='390.5' y='461' width='13.0' height='10' fill='#d1e2f3'/><rect x='403.0' y='461' width='13.0' height='10' fill='#d9e7f5'/><rect x='415.5' y='461' width='13.0' height='10' fill='#dfecf7'/><text class='sa-muted' x='128.0' y='484' font-size='11'>29.0 (better)</text><text class='sa-muted' x='428.0' y='484' text-anchor='end' font-size='11'>≤ 0 (Random or worse)</text><text class='sa-text' x='128.0' y='455' font-size='11'>Improvement over Random (%)</text></svg><script type='text/plain' id='sa-csv'>group,method,improvement,n_datasets
All,RFImportance,26.229,71
All,MI,23.8,71
All,CART,23.781,71
All,F-Test,22.757,71
All,ElasticNet,21.875,71
All,mRMR,21.668,71
All,MarkovBlanket,21.24,71
All,Lasso,20.905,71
All,GainRatio,19.528,71
All,(R)ReliefF,18.568,71
All,SFS,18.182,71
All,LOCO,12.983,71
All,SBE,11.396,71
All,Random,0.0,71
All,LaplacianScore,-18.582,71
LightGBM,RFImportance,25.547,71
LightGBM,CART,23.507,71
LightGBM,MI,22.918,71
LightGBM,mRMR,21.651,71
LightGBM,ElasticNet,21.589,71
LightGBM,F-Test,21.475,71
LightGBM,MarkovBlanket,21.177,71
LightGBM,Lasso,21.068,71
LightGBM,GainRatio,19.772,71
LightGBM,(R)ReliefF,18.487,71
LightGBM,SFS,18.076,71
LightGBM,LOCO,13.01,71
LightGBM,SBE,12.349,71
LightGBM,Random,0.0,71
LightGBM,LaplacianScore,-23.15,71
LinearModel,RFImportance,24.566,71
LinearModel,MI,23.163,71
LinearModel,F-Test,22.852,71
LinearModel,ElasticNet,22.554,71
LinearModel,CART,21.96,71
LinearModel,mRMR,21.814,71
LinearModel,Lasso,21.687,71
LinearModel,MarkovBlanket,19.022,71
LinearModel,GainRatio,18.367,71
LinearModel,SFS,17.714,71
LinearModel,(R)ReliefF,16.264,71
LinearModel,LOCO,11.965,71
LinearModel,SBE,8.391,71
LinearModel,Random,0.0,71
LinearModel,LaplacianScore,-14.369,71
RandomForest,RFImportance,27.744,71
RandomForest,MI,25.752,71
RandomForest,CART,24.829,71
RandomForest,F-Test,23.776,71
RandomForest,MarkovBlanket,23.553,71
RandomForest,ElasticNet,22.107,71
RandomForest,Lasso,21.152,71
RandomForest,mRMR,21.131,71
RandomForest,GainRatio,20.608,71
RandomForest,(R)ReliefF,20.347,71
RandomForest,SFS,17.526,71
RandomForest,SBE,13.012,71
RandomForest,LOCO,12.743,71
RandomForest,Random,0.0,71
RandomForest,LaplacianScore,-17.026,71
RealMLP,RFImportance,27.039,71
RealMLP,CART,24.913,71
RealMLP,MI,24.214,71
RealMLP,F-Test,23.128,71
RealMLP,MarkovBlanket,21.826,71
RealMLP,mRMR,21.582,71
RealMLP,ElasticNet,20.93,71
RealMLP,(R)ReliefF,20.632,71
RealMLP,GainRatio,20.324,71
RealMLP,Lasso,19.22,71
RealMLP,SFS,18.702,71
RealMLP,LOCO,14.758,71
RealMLP,SBE,12.525,71
RealMLP,Random,0.0,71
RealMLP,LaplacianScore,-18.397,71
TabICLv2,RFImportance,29.034,71
TabICLv2,CART,25.912,71
TabICLv2,MI,25.456,71
TabICLv2,F-Test,24.197,71
TabICLv2,mRMR,23.593,71
TabICLv2,MarkovBlanket,23.542,71
TabICLv2,ElasticNet,21.725,71
TabICLv2,(R)ReliefF,21.682,71
TabICLv2,GainRatio,20.815,71
TabICLv2,Lasso,20.299,71
TabICLv2,SFS,19.339,71
TabICLv2,LOCO,14.638,71
TabICLv2,SBE,13.167,71
TabICLv2,Random,0.0,71
TabICLv2,LaplacianScore,-19.642,71
</script><script>
// Theme: the Space sets data-theme on this page when its theme button was used (same origin), or
// sends {saTheme: 'light' | 'dark' | null}; without either, the page follows the system setting.
(function () {
function apply(theme) {
if (theme === 'light' || theme === 'dark') document.documentElement.setAttribute('data-theme', theme);
else document.documentElement.removeAttribute('data-theme');
}
try { apply(window.parent.document.documentElement.getAttribute('data-theme')); } catch (e) {}
window.addEventListener('message', function (event) {
if (event.data && 'saTheme' in event.data) apply(event.data.saTheme);
});
})();
function saDownload(name, blob) {
var a = document.createElement('a');
a.href = URL.createObjectURL(blob);
a.download = name;
document.body.appendChild(a);
a.click();
setTimeout(function () { URL.revokeObjectURL(a.href); a.remove(); }, 500);
}
function saCsv(name) {
saDownload(name, new Blob([document.getElementById('sa-csv').textContent], {type: 'text/csv'}));
}
// Report the page height to an embedding page (the Space resizes its iframe to it).
(function () {
function post() {
try {
var height = Math.ceil(document.body.getBoundingClientRect().height) + 4;
if (window.parent !== window) window.parent.postMessage({saFrameHeight: height}, '*');
} catch (e) {}
}
window.addEventListener('load', post);
window.addEventListener('resize', post);
if (window.ResizeObserver) new ResizeObserver(post).observe(document.body);
})();
// Instant tooltip: a native SVG <title> only shows after a browser delay of 1-3 s.
(function () {
var tip = document.createElement('div');
tip.id = 'sa-tip';
document.body.appendChild(tip);
var current = null;
function show(hit, x, y) {
if (current !== hit) {
if (current) current.classList.remove('sa-on');
current = hit;
hit.classList.add('sa-on');
var lines = hit.getAttribute('data-tip').split('\n');
tip.textContent = '';
var head = document.createElement('b');
head.textContent = lines[0];
tip.appendChild(head);
tip.appendChild(document.createTextNode('\n' + lines.slice(1).join('\n')));
tip.style.display = 'block';
}
var w = tip.offsetWidth, h = tip.offsetHeight;
var left = x + 14, top = y + 14;
if (left + w > window.innerWidth - 4) left = Math.max(4, x - w - 14);
if (top + h > window.innerHeight - 4) top = Math.max(4, y - h - 14);
tip.style.left = left + 'px';
tip.style.top = top + 'px';
}
function hide() {
if (current) current.classList.remove('sa-on');
current = null;
tip.style.display = 'none';
}
document.addEventListener('pointermove', function (e) {
var hit = e.target.closest ? e.target.closest('.sa-hit') : null;
if (hit) show(hit, e.clientX, e.clientY); else if (e.pointerType === 'mouse') hide();
});
document.addEventListener('pointerdown', function (e) { // touch: tap a bar to show, elsewhere to hide
var hit = e.target.closest ? e.target.closest('.sa-hit') : null;
if (hit) show(hit, e.clientX, e.clientY); else hide();
});
document.addEventListener('mouseleave', hide);
})();
// Downloads always use the light colours (the paper look), whatever the page's theme.
var SA_LIGHT = {'--fg': '#1f2328', '--muted': '#59636e', '--line': '#d1d9e0', '--bg': '#ffffff',
'--soft': '#f6f8fa', '--accent': '#0072B2'};
function saSvgString() {
var svg = document.getElementById('sa-figure').cloneNode(true);
var style = svg.querySelector('style');
var css = style.textContent;
Object.keys(SA_LIGHT).forEach(function (v) { css = css.split('var(' + v + ')').join(SA_LIGHT[v]); });
style.textContent = css;
svg.querySelectorAll('.sa-hit').forEach(function (hit) { hit.remove(); });
svg.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
svg.setAttribute('xmlns:xlink', 'http://www.w3.org/1999/xlink');
return new XMLSerializer().serializeToString(svg);
}
function saSvg(name) {
saDownload(name + '.svg', new Blob([saSvgString()], {type: 'image/svg+xml'}));
}
function saPng(name) {
var svg = document.getElementById('sa-figure');
var box = svg.viewBox.baseVal, scale = 3;
var img = new Image();
img.onload = function () {
var canvas = document.createElement('canvas');
canvas.width = box.width * scale; canvas.height = box.height * scale;
var ctx = canvas.getContext('2d');
ctx.fillStyle = SA_LIGHT['--bg'];
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
canvas.toBlob(function (blob) { saDownload(name + '.png', blob); });
};
img.src = 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(saSvgString());
}
// PDF. In the leaderboard, the page sends the figure's SVG to it (message {saPdf}), which makes a
// vector PDF (the Space's assets/downloads.js) and answers {saPdfAck}. Without an answer (the page
// alone or elsewhere), the PDF holds the figure rendered at 4x as a JPEG: one page of the figure's
// size (1 px = 0.75 pt), built by hand as the pages are self-contained, without any library.
function saPdfBlob(canvas, widthPt, heightPt) {
var jpeg = atob(canvas.toDataURL('image/jpeg', 0.95).split(',')[1]);
var w = widthPt.toFixed(2), h = heightPt.toFixed(2);
var content = 'q ' + w + ' 0 0 ' + h + ' 0 0 cm /Im0 Do Q';
var objects = [
'<< /Type /Catalog /Pages 2 0 R >>',
'<< /Type /Pages /Kids [3 0 R] /Count 1 >>',
'<< /Type /Page /Parent 2 0 R /MediaBox [0 0 ' + w + ' ' + h + '] /Resources << /XObject << /Im0 5 0 R >> >> /Contents 4 0 R >>',
'<< /Length ' + content.length + ' >>\nstream\n' + content + '\nendstream',
'<< /Type /XObject /Subtype /Image /Width ' + canvas.width + ' /Height ' + canvas.height +
' /ColorSpace /DeviceRGB /BitsPerComponent 8 /Filter /DCTDecode /Length ' + jpeg.length + ' >>\nstream\n' + jpeg + '\nendstream'
];
var pdf = '%PDF-1.4\n', offsets = [];
objects.forEach(function (body, i) { offsets.push(pdf.length); pdf += (i + 1) + ' 0 obj\n' + body + '\nendobj\n'; });
var xref = pdf.length;
pdf += 'xref\n0 ' + (objects.length + 1) + '\n0000000000 65535 f \n';
offsets.forEach(function (o) { pdf += ('0000000000' + o).slice(-10) + ' 00000 n \n'; });
pdf += 'trailer\n<< /Size ' + (objects.length + 1) + ' /Root 1 0 R >>\nstartxref\n' + xref + '\n%%EOF';
var bytes = new Uint8Array(pdf.length);
for (var i = 0; i < pdf.length; i++) bytes[i] = pdf.charCodeAt(i) & 0xff;
return new Blob([bytes], {type: 'application/pdf'});
}
var saPdfPending = {};
window.addEventListener('message', function (event) {
var name = event.data && event.data.saPdfAck;
if (typeof name === 'string' && saPdfPending[name]) { clearTimeout(saPdfPending[name]); delete saPdfPending[name]; }
});
function saPdf(name) {
var svg = document.getElementById('sa-figure');
var box = svg.viewBox.baseVal;
if (window.parent !== window && !saPdfPending[name + '.pdf']) {
saPdfPending[name + '.pdf'] = setTimeout(function () {
delete saPdfPending[name + '.pdf'];
saRasterPdf(name);
}, 1500);
window.parent.postMessage({saPdf: {svg: saSvgString(), width: box.width, height: box.height, name: name + '.pdf'}}, '*');
return;
}
if (window.parent === window) saRasterPdf(name);
}
function saRasterPdf(name) {
var svg = document.getElementById('sa-figure');
var box = svg.viewBox.baseVal, scale = 4;
var img = new Image();
img.onload = function () {
var canvas = document.createElement('canvas');
canvas.width = box.width * scale; canvas.height = box.height * scale;
var ctx = canvas.getContext('2d');
ctx.fillStyle = SA_LIGHT['--bg'];
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
saDownload(name + '.pdf', saPdfBlob(canvas, box.width * 0.75, box.height * 0.75));
};
img.src = 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(saSvgString());
}
</script></body></html>