{$i18n.t("Leaderboard")}
{rankedModels.length}
{#if loading}
{/if} {#if !rankedModels.length && !loading}
{$i18n.t("No models found")}
{:else if rankedModels.length}
{#each [{ key: "rating", label: "RK", class: "w-3" }, { key: "name", label: "Model", class: "" }, { key: "rating", label: "Rating", class: "text-right w-fit" }, { key: "won", label: "Won", class: "text-right w-5" }, { key: "lost", label: "Lost", class: "text-right w-5" }] as col}
toggleSort(col.key)} >
{$i18n.t(col.label)} {#if orderBy === col.key} {#if direction === "asc"}
{:else}
{/if} {:else}
{/if}
{/each}
{#each sortedModels as model, idx (model.id)}
openModal(model)} >
{model.rating !== "-" ? idx + 1 : "-"}
{ e.target.src = "/favicon.png"; }} />
{model.name}
{model.rating}
{#if model.stats.won === "-"}-{:else}
{( (Number(model.stats.won) / model.stats.count) * 100 ).toFixed(1)}%
{model.stats.won}
{/if}
{#if model.stats.lost === "-"}-{:else}
{( (Number(model.stats.lost) / model.stats.count) * 100 ).toFixed(1)}%
{model.stats.lost}
{/if}
{/each}
{/if}
ⓘ {$i18n.t( "The evaluation leaderboard is based on the Elo rating system and is updated in real-time.", )}
{$i18n.t( "The leaderboard is currently in beta, and we may adjust the rating calculations as we refine the algorithm.", )}