Spaces:
Running
Running
Commit ·
755439a
1
Parent(s): 3b7f8cf
Link architecture column to braindecode documentation
Browse filesEach foundation model name in the Architecture column now links to its
braindecode API docs page (e.g. LaBraM → braindecode.models.Labram).
Shows an external-link icon on hover.
frontend/src/pages/LeaderboardPage/components/Leaderboard/utils/columnUtils.js
CHANGED
|
@@ -828,11 +828,41 @@ export const createColumns = (
|
|
| 828 |
accessorKey: "model.architecture",
|
| 829 |
header: createHeaderCell("Architecture", COLUMN_TOOLTIPS.ARCHITECTURE),
|
| 830 |
accessorFn: (row) => row.model.architecture,
|
| 831 |
-
cell: ({ row }) =>
|
| 832 |
-
|
| 833 |
-
|
| 834 |
-
|
| 835 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 836 |
size: TABLE_DEFAULTS.COLUMNS.COLUMN_SIZES["model.architecture"],
|
| 837 |
},
|
| 838 |
{
|
|
|
|
| 828 |
accessorKey: "model.architecture",
|
| 829 |
header: createHeaderCell("Architecture", COLUMN_TOOLTIPS.ARCHITECTURE),
|
| 830 |
accessorFn: (row) => row.model.architecture,
|
| 831 |
+
cell: ({ row }) => {
|
| 832 |
+
const arch = row.original.model.architecture || "-";
|
| 833 |
+
const BRAINDECODE_CLASSES = {
|
| 834 |
+
LaBraM: "Labram",
|
| 835 |
+
EEGPT: "EEGPT",
|
| 836 |
+
BIOT: "BIOT",
|
| 837 |
+
BENDR: "BENDR",
|
| 838 |
+
SignalJEPA: "SignalJEPA",
|
| 839 |
+
CBraMod: "CBraMod",
|
| 840 |
+
REVE: "REVE",
|
| 841 |
+
};
|
| 842 |
+
const cls = BRAINDECODE_CLASSES[arch];
|
| 843 |
+
if (cls) {
|
| 844 |
+
const url = `https://braindecode.org/dev/generated/braindecode.models.${cls}.html`;
|
| 845 |
+
return (
|
| 846 |
+
<Tooltip title={`${arch} — view braindecode docs`}>
|
| 847 |
+
<Link
|
| 848 |
+
href={url}
|
| 849 |
+
target="_blank"
|
| 850 |
+
rel="noopener noreferrer"
|
| 851 |
+
underline="hover"
|
| 852 |
+
sx={{ display: "inline-flex", alignItems: "center", gap: 0.5 }}
|
| 853 |
+
>
|
| 854 |
+
{arch}
|
| 855 |
+
<OpenInNewIcon sx={{ fontSize: 12, opacity: 0.5 }} />
|
| 856 |
+
</Link>
|
| 857 |
+
</Tooltip>
|
| 858 |
+
);
|
| 859 |
+
}
|
| 860 |
+
return (
|
| 861 |
+
<Tooltip title={arch}>
|
| 862 |
+
<span>{arch}</span>
|
| 863 |
+
</Tooltip>
|
| 864 |
+
);
|
| 865 |
+
},
|
| 866 |
size: TABLE_DEFAULTS.COLUMNS.COLUMN_SIZES["model.architecture"],
|
| 867 |
},
|
| 868 |
{
|