Spaces:
Running

schaeferbasti's picture
Leaderboard v0.12.3: add LGBMGain (from Preview v0.12.13; results: SelectArena_Results@49f46580)
2517b84
Raw History Blame Contribute Delete
27.5 kB
<!doctype html>
<html lang='en'><head><meta charset='utf-8'><meta name='viewport' content='width=device-width,initial-scale=1'><title>SelectArena leaderboard: binary, RealMLP, budget 1</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 method for its values.</span><button onclick="saSvg('selectarena_pareto')">SVG</button><button onclick="saPng('selectarena_pareto')">PNG</button><button onclick="saPdf('selectarena_pareto')">PDF</button><button onclick="saCsv('selectarena_pareto.csv')">CSV</button></div><svg id='sa-figure' viewBox='0 0 864 432' role='img' aria-label='Improvement over Random against feature selection time per 1k features'><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; }
</style><line class='sa-grid' x1='101.0' x2='101.0' y1='16.2' y2='368.0'/><text class='sa-text' x='101.0' y='390.5' text-anchor='middle' font-size='15'>10<tspan dy='-7' font-size='10'>0</tspan></text><line class='sa-grid' x1='257.4' x2='257.4' y1='16.2' y2='368.0'/><text class='sa-text' x='257.4' y='390.5' text-anchor='middle' font-size='15'>10<tspan dy='-7' font-size='10'>1</tspan></text><line class='sa-grid' x1='413.8' x2='413.8' y1='16.2' y2='368.0'/><text class='sa-text' x='413.8' y='390.5' text-anchor='middle' font-size='15'>10<tspan dy='-7' font-size='10'>2</tspan></text><line class='sa-grid' x1='570.1' x2='570.1' y1='16.2' y2='368.0'/><text class='sa-text' x='570.1' y='390.5' text-anchor='middle' font-size='15'>10<tspan dy='-7' font-size='10'>3</tspan></text><line class='sa-grid' x1='726.5' x2='726.5' y1='16.2' y2='368.0'/><text class='sa-text' x='726.5' y='390.5' text-anchor='middle' font-size='15'>10<tspan dy='-7' font-size='10'>4</tspan></text><line class='sa-grid' x1='67.0' x2='847.8' y1='343.0' y2='343.0'/><text class='sa-text' x='58.0' y='349.0' text-anchor='end' font-size='15'>15</text><line class='sa-grid' x1='67.0' x2='847.8' y1='275.0' y2='275.0'/><text class='sa-text' x='58.0' y='281.0' text-anchor='end' font-size='15'>20</text><line class='sa-grid' x1='67.0' x2='847.8' y1='207.0' y2='207.0'/><text class='sa-text' x='58.0' y='213.0' text-anchor='end' font-size='15'>25</text><line class='sa-grid' x1='67.0' x2='847.8' y1='139.0' y2='139.0'/><text class='sa-text' x='58.0' y='145.0' text-anchor='end' font-size='15'>30</text><line class='sa-grid' x1='67.0' x2='847.8' y1='71.0' y2='71.0'/><text class='sa-text' x='58.0' y='77.0' text-anchor='end' font-size='15'>35</text><rect class='sa-frame-line' x='67.0' y='16.2' width='780.8' height='351.8'/><text class='sa-text' x='457.4' y='420.0' text-anchor='middle' font-size='15'>Feature Selection Time (s) per 1k Features</text><text class='sa-text' transform='translate(21.0 192.1) rotate(-90)' text-anchor='middle' font-size='15'>Improvement over Random (%)</text><defs><marker id='sa-arrow' viewBox='0 0 10 10' refX='9' refY='5' markerWidth='7' markerHeight='7' orient='auto-start-reverse'><path d='M0,0 L10,5 L0,10' fill='none' stroke='#009E73' stroke-width='1.6'/></marker></defs><line x1='109.6' y1='51.9' x2='69.0' y2='18.2' stroke='#009E73' stroke-width='2.2' marker-end='url(#sa-arrow)'/><text x='82.6' y='75.9' fill='#009E73' font-size='18' font-weight='700'>optimal</text><polyline points='102.5,100.8 258.2,32.2' fill='none' stroke='#D55E00' stroke-width='3.0'/><circle class='sa-point' cx='258.2' cy='32.2' r='6.8' fill='#D55E00' stroke-width='1'/><circle cx='588.7' cy='52.9' r='5.8' fill='#d3d3d3' fill-opacity='0.8' stroke='#808080' stroke-width='1'/><circle cx='315.4' cy='70.3' r='5.8' fill='#d3d3d3' fill-opacity='0.8' stroke='#808080' stroke-width='1'/><circle cx='634.4' cy='82.0' r='5.8' fill='#d3d3d3' fill-opacity='0.8' stroke='#808080' stroke-width='1'/><circle cx='316.5' cy='96.8' r='5.8' fill='#d3d3d3' fill-opacity='0.8' stroke='#808080' stroke-width='1'/><circle class='sa-point' cx='102.5' cy='100.8' r='6.8' fill='#D55E00' stroke-width='1'/><circle cx='295.3' cy='105.3' r='5.8' fill='#d3d3d3' fill-opacity='0.8' stroke='#808080' stroke-width='1'/><circle cx='370.7' cy='119.0' r='5.8' fill='#d3d3d3' fill-opacity='0.8' stroke='#808080' stroke-width='1'/><circle cx='297.9' cy='127.0' r='5.8' fill='#d3d3d3' fill-opacity='0.8' stroke='#808080' stroke-width='1'/><circle cx='256.3' cy='153.9' r='5.8' fill='#d3d3d3' fill-opacity='0.8' stroke='#808080' stroke-width='1'/><circle cx='320.3' cy='156.5' r='5.8' fill='#d3d3d3' fill-opacity='0.8' stroke='#808080' stroke-width='1'/><circle cx='747.7' cy='168.8' r='5.8' fill='#d3d3d3' fill-opacity='0.8' stroke='#808080' stroke-width='1'/><circle cx='812.3' cy='180.8' r='5.8' fill='#d3d3d3' fill-opacity='0.8' stroke='#808080' stroke-width='1'/><circle cx='289.3' cy='190.7' r='5.8' fill='#d3d3d3' fill-opacity='0.8' stroke='#808080' stroke-width='1'/><circle cx='207.1' cy='193.8' r='5.8' fill='#d3d3d3' fill-opacity='0.8' stroke='#808080' stroke-width='1'/><circle cx='647.0' cy='196.7' r='5.8' fill='#d3d3d3' fill-opacity='0.8' stroke='#808080' stroke-width='1'/><circle cx='637.9' cy='199.6' r='5.8' fill='#d3d3d3' fill-opacity='0.8' stroke='#808080' stroke-width='1'/><circle cx='793.3' cy='210.9' r='5.8' fill='#d3d3d3' fill-opacity='0.8' stroke='#808080' stroke-width='1'/><circle cx='634.4' cy='232.9' r='5.8' fill='#d3d3d3' fill-opacity='0.8' stroke='#808080' stroke-width='1'/><circle cx='677.7' cy='320.7' r='5.8' fill='#d3d3d3' fill-opacity='0.8' stroke='#808080' stroke-width='1'/><circle cx='803.3' cy='352.0' r='5.8' fill='#d3d3d3' fill-opacity='0.8' stroke='#808080' stroke-width='1'/><line class='sa-ink' x1='258.2' y1='32.2' x2='168.8' y2='25.6' stroke-width='1' opacity='0.6'/><text class='sa-text sa-halo' x='168.8' y='25.6' text-anchor='middle' dominant-baseline='central' font-size='18' font-weight='700'>LGBMGain</text><line class='sa-ink' x1='588.7' y1='52.9' x2='622.0' y2='38.6' stroke-width='1' opacity='0.6'/><text class='sa-dim sa-halo' x='622.0' y='38.6' text-anchor='middle' dominant-baseline='central' font-size='18' font-weight='400'>CD-PFN</text><line class='sa-ink' x1='315.4' y1='70.3' x2='364.5' y2='53.2' stroke-width='1' opacity='0.6'/><text class='sa-dim sa-halo' x='364.5' y='53.2' text-anchor='middle' dominant-baseline='central' font-size='18' font-weight='400'>PACE-HSIC</text><line class='sa-ink' x1='634.4' y1='82.0' x2='701.2' y2='96.3' stroke-width='1' opacity='0.6'/><text class='sa-dim sa-halo' x='701.2' y='96.3' text-anchor='middle' dominant-baseline='central' font-size='18' font-weight='400'>LassoNet</text><line class='sa-ink' x1='316.5' y1='96.8' x2='429.8' y2='81.9' stroke-width='1' opacity='0.6'/><text class='sa-dim sa-halo' x='429.8' y='81.9' text-anchor='middle' dominant-baseline='central' font-size='18' font-weight='400'>RFImportance</text><text class='sa-text sa-halo' x='100.8' y='115.1' text-anchor='middle' dominant-baseline='central' font-size='18' font-weight='700'>F-Test</text><line class='sa-ink' x1='295.3' y1='105.3' x2='246.2' y2='83.0' stroke-width='1' opacity='0.6'/><text class='sa-dim sa-halo' x='246.2' y='83.0' text-anchor='middle' dominant-baseline='central' font-size='18' font-weight='400'>PACE-DC</text><text class='sa-dim sa-halo' x='389.6' y='117.3' text-anchor='middle' dominant-baseline='central' font-size='18' font-weight='400'>MI</text><line class='sa-ink' x1='297.9' y1='127.0' x2='255.1' y2='117.8' stroke-width='1' opacity='0.6'/><text class='sa-dim sa-halo' x='255.1' y='117.8' text-anchor='middle' dominant-baseline='central' font-size='18' font-weight='400'>CART</text><line class='sa-ink' x1='256.3' y1='153.9' x2='205.9' y2='146.5' stroke-width='1' opacity='0.6'/><text class='sa-dim sa-halo' x='205.9' y='146.5' text-anchor='middle' dominant-baseline='central' font-size='18' font-weight='400'>mRMR</text><line class='sa-ink' x1='320.3' y1='156.5' x2='431.1' y2='170.8' stroke-width='1' opacity='0.6'/><text class='sa-dim sa-halo' x='431.1' y='170.8' text-anchor='middle' dominant-baseline='central' font-size='18' font-weight='400'>MarkovBlanket</text><text class='sa-dim sa-halo' x='749.0' y='153.9' text-anchor='middle' dominant-baseline='central' font-size='18' font-weight='400'>SFS</text><text class='sa-dim sa-halo' x='819.7' y='166.5' text-anchor='middle' dominant-baseline='central' font-size='18' font-weight='400'>SHAP</text><line class='sa-ink' x1='289.3' y1='190.7' x2='354.2' y2='205.0' stroke-width='1' opacity='0.6'/><text class='sa-dim sa-halo' x='354.2' y='205.0' text-anchor='middle' dominant-baseline='central' font-size='18' font-weight='400'>PACE-SIS</text><line class='sa-ink' x1='207.1' y1='193.8' x2='141.6' y2='208.1' stroke-width='1' opacity='0.6'/><text class='sa-dim sa-halo' x='141.6' y='208.1' text-anchor='middle' dominant-baseline='central' font-size='18' font-weight='400'>GainRatio</text><line class='sa-ink' x1='647.0' y1='196.7' x2='694.8' y2='183.0' stroke-width='1' opacity='0.6'/><text class='sa-dim sa-halo' x='694.8' y='183.0' text-anchor='middle' dominant-baseline='central' font-size='18' font-weight='400'>ElasticNet</text><line class='sa-ink' x1='637.9' y1='199.6' x2='601.8' y2='213.3' stroke-width='1' opacity='0.6'/><text class='sa-dim sa-halo' x='601.8' y='213.3' text-anchor='middle' dominant-baseline='central' font-size='18' font-weight='400'>Lasso</text><text class='sa-dim sa-halo' x='797.0' y='225.2' text-anchor='middle' dominant-baseline='central' font-size='18' font-weight='400'>(R)ReliefF</text><line class='sa-ink' x1='634.4' y1='232.9' x2='615.6' y2='246.6' stroke-width='1' opacity='0.6'/><text class='sa-dim sa-halo' x='615.6' y='246.6' text-anchor='middle' dominant-baseline='central' font-size='18' font-weight='400'>CPI</text><line class='sa-ink' x1='677.7' y1='320.7' x2='644.9' y2='334.4' stroke-width='1' opacity='0.6'/><text class='sa-dim sa-halo' x='644.9' y='334.4' text-anchor='middle' dominant-baseline='central' font-size='18' font-weight='400'>LOCO</text><line class='sa-ink' x1='803.3' y1='352.0' x2='772.4' y2='358.6' stroke-width='1' opacity='0.6'/><text class='sa-dim sa-halo' x='772.4' y='358.6' text-anchor='middle' dominant-baseline='central' font-size='18' font-weight='400'>SBE</text><rect class='sa-legend' x='79.0' y='296.0' width='225.0' height='60.0' rx='4'/><circle stroke='#808080' cx='100.0' cy='314.0' r='6.0' fill='#d3d3d3'/><text class='sa-text' x='118.0' y='320.0' font-size='15'>Dominated Methods</text><circle class='sa-point' cx='100.0' cy='338.0' r='6.0' fill='#D55E00'/><text class='sa-text' x='118.0' y='344.0' font-size='15'>Pareto Front</text><circle class='sa-hit' cx='258.2' cy='32.2' r='10.5' data-tip='LGBMGain (on the Pareto front)&#10;Improvement over Random: 37.9%&#10;Selection time per 1k features: 10.1 s&#10;Datasets: 49' aria-label='LGBMGain (on the Pareto front)&#10;Improvement over Random: 37.9%&#10;Selection time per 1k features: 10.1 s&#10;Datasets: 49'/><circle class='sa-hit' cx='588.7' cy='52.9' r='10.5' data-tip='CD-PFN&#10;Improvement over Random: 36.3%&#10;Selection time per 1k features: 1.31e+03 s&#10;Datasets: 49' aria-label='CD-PFN&#10;Improvement over Random: 36.3%&#10;Selection time per 1k features: 1.31e+03 s&#10;Datasets: 49'/><circle class='sa-hit' cx='315.4' cy='70.3' r='10.5' data-tip='PACE-HSIC&#10;Improvement over Random: 35.1%&#10;Selection time per 1k features: 23.5 s&#10;Datasets: 49' aria-label='PACE-HSIC&#10;Improvement over Random: 35.1%&#10;Selection time per 1k features: 23.5 s&#10;Datasets: 49'/><circle class='sa-hit' cx='634.4' cy='82.0' r='10.5' data-tip='LassoNet&#10;Improvement over Random: 34.2%&#10;Selection time per 1k features: 2.58e+03 s&#10;Datasets: 49' aria-label='LassoNet&#10;Improvement over Random: 34.2%&#10;Selection time per 1k features: 2.58e+03 s&#10;Datasets: 49'/><circle class='sa-hit' cx='316.5' cy='96.8' r='10.5' data-tip='RFImportance&#10;Improvement over Random: 33.1%&#10;Selection time per 1k features: 23.9 s&#10;Datasets: 49' aria-label='RFImportance&#10;Improvement over Random: 33.1%&#10;Selection time per 1k features: 23.9 s&#10;Datasets: 49'/><circle class='sa-hit' cx='102.5' cy='100.8' r='10.5' data-tip='F-Test (on the Pareto front)&#10;Improvement over Random: 32.8%&#10;Selection time per 1k features: 1.02 s&#10;Datasets: 49' aria-label='F-Test (on the Pareto front)&#10;Improvement over Random: 32.8%&#10;Selection time per 1k features: 1.02 s&#10;Datasets: 49'/><circle class='sa-hit' cx='295.3' cy='105.3' r='10.5' data-tip='PACE-DC&#10;Improvement over Random: 32.5%&#10;Selection time per 1k features: 17.5 s&#10;Datasets: 49' aria-label='PACE-DC&#10;Improvement over Random: 32.5%&#10;Selection time per 1k features: 17.5 s&#10;Datasets: 49'/><circle class='sa-hit' cx='370.7' cy='119.0' r='10.5' data-tip='MI&#10;Improvement over Random: 31.5%&#10;Selection time per 1k features: 53 s&#10;Datasets: 49' aria-label='MI&#10;Improvement over Random: 31.5%&#10;Selection time per 1k features: 53 s&#10;Datasets: 49'/><circle class='sa-hit' cx='297.9' cy='127.0' r='10.5' data-tip='CART&#10;Improvement over Random: 30.9%&#10;Selection time per 1k features: 18.2 s&#10;Datasets: 49' aria-label='CART&#10;Improvement over Random: 30.9%&#10;Selection time per 1k features: 18.2 s&#10;Datasets: 49'/><circle class='sa-hit' cx='256.3' cy='153.9' r='10.5' data-tip='mRMR&#10;Improvement over Random: 28.9%&#10;Selection time per 1k features: 9.84 s&#10;Datasets: 49' aria-label='mRMR&#10;Improvement over Random: 28.9%&#10;Selection time per 1k features: 9.84 s&#10;Datasets: 49'/><circle class='sa-hit' cx='320.3' cy='156.5' r='10.5' data-tip='MarkovBlanket&#10;Improvement over Random: 28.7%&#10;Selection time per 1k features: 25.2 s&#10;Datasets: 49' aria-label='MarkovBlanket&#10;Improvement over Random: 28.7%&#10;Selection time per 1k features: 25.2 s&#10;Datasets: 49'/><circle class='sa-hit' cx='747.7' cy='168.8' r='10.5' data-tip='SFS&#10;Improvement over Random: 27.8%&#10;Selection time per 1k features: 1.37e+04 s&#10;Datasets: 49' aria-label='SFS&#10;Improvement over Random: 27.8%&#10;Selection time per 1k features: 1.37e+04 s&#10;Datasets: 49'/><circle class='sa-hit' cx='812.3' cy='180.8' r='10.5' data-tip='SHAP&#10;Improvement over Random: 26.9%&#10;Selection time per 1k features: 3.54e+04 s&#10;Datasets: 49' aria-label='SHAP&#10;Improvement over Random: 26.9%&#10;Selection time per 1k features: 3.54e+04 s&#10;Datasets: 49'/><circle class='sa-hit' cx='289.3' cy='190.7' r='10.5' data-tip='PACE-SIS&#10;Improvement over Random: 26.2%&#10;Selection time per 1k features: 16 s&#10;Datasets: 49' aria-label='PACE-SIS&#10;Improvement over Random: 26.2%&#10;Selection time per 1k features: 16 s&#10;Datasets: 49'/><circle class='sa-hit' cx='207.1' cy='193.8' r='10.5' data-tip='GainRatio&#10;Improvement over Random: 26.0%&#10;Selection time per 1k features: 4.77 s&#10;Datasets: 49' aria-label='GainRatio&#10;Improvement over Random: 26.0%&#10;Selection time per 1k features: 4.77 s&#10;Datasets: 49'/><circle class='sa-hit' cx='647.0' cy='196.7' r='10.5' data-tip='ElasticNet&#10;Improvement over Random: 25.8%&#10;Selection time per 1k features: 3.1e+03 s&#10;Datasets: 49&#10;Next to Lasso: 25.5%, 2.71e+03 s' aria-label='ElasticNet&#10;Improvement over Random: 25.8%&#10;Selection time per 1k features: 3.1e+03 s&#10;Datasets: 49&#10;Next to Lasso: 25.5%, 2.71e+03 s'/><circle class='sa-hit' cx='637.9' cy='199.6' r='10.5' data-tip='Lasso&#10;Improvement over Random: 25.5%&#10;Selection time per 1k features: 2.71e+03 s&#10;Datasets: 49&#10;Next to ElasticNet: 25.8%, 3.1e+03 s' aria-label='Lasso&#10;Improvement over Random: 25.5%&#10;Selection time per 1k features: 2.71e+03 s&#10;Datasets: 49&#10;Next to ElasticNet: 25.8%, 3.1e+03 s'/><circle class='sa-hit' cx='793.3' cy='210.9' r='10.5' data-tip='(R)ReliefF&#10;Improvement over Random: 24.7%&#10;Selection time per 1k features: 2.67e+04 s&#10;Datasets: 49' aria-label='(R)ReliefF&#10;Improvement over Random: 24.7%&#10;Selection time per 1k features: 2.67e+04 s&#10;Datasets: 49'/><circle class='sa-hit' cx='634.4' cy='232.9' r='10.5' data-tip='CPI&#10;Improvement over Random: 23.1%&#10;Selection time per 1k features: 2.58e+03 s&#10;Datasets: 49' aria-label='CPI&#10;Improvement over Random: 23.1%&#10;Selection time per 1k features: 2.58e+03 s&#10;Datasets: 49'/><circle class='sa-hit' cx='677.7' cy='320.7' r='10.5' data-tip='LOCO&#10;Improvement over Random: 16.6%&#10;Selection time per 1k features: 4.87e+03 s&#10;Datasets: 49' aria-label='LOCO&#10;Improvement over Random: 16.6%&#10;Selection time per 1k features: 4.87e+03 s&#10;Datasets: 49'/><circle class='sa-hit' cx='803.3' cy='352.0' r='10.5' data-tip='SBE&#10;Improvement over Random: 14.3%&#10;Selection time per 1k features: 3.1e+04 s&#10;Datasets: 49' aria-label='SBE&#10;Improvement over Random: 14.3%&#10;Selection time per 1k features: 3.1e+04 s&#10;Datasets: 49'/></svg><script type='text/plain' id='sa-csv'>method,improvement,time_per_1k,n_datasets,pareto_optimal
LGBMGain,37.8574,10.1187,49,True
CD-PFN,36.3343,1314.0603,49,False
PACE-HSIC,35.0545,23.4912,49,False
LassoNet,34.1951,2577.84,49,False
RFImportance,33.1063,23.8628,49,False
F-Test,32.8092,1.0216,49,True
PACE-DC,32.4806,17.4831,49,False
MI,31.475,53.0164,49,False
CART,30.887,18.1658,49,False
mRMR,28.9085,9.8375,49,False
MarkovBlanket,28.7133,25.2398,49,False
SFS,27.8122,13667.089,49,False
SHAP,26.9298,35389.1952,49,False
PACE-SIS,26.1973,16.0065,49,False
GainRatio,25.9696,4.7703,49,False
ElasticNet,25.7588,3101.7789,49,False
Lasso,25.5462,2712.1627,49,False
(R)ReliefF,24.715,26745.3338,49,False
CPI,23.0967,2578.7105,49,False
LOCO,16.6401,4872.5864,49,False
SBE,14.3357,30981.4088,49,False
Random,0.0,0.0383,49,True
LaplacianScore,-22.4567,4.8595,49,False
</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>