Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Commit 17f4d21

Browse files
authored
Merge pull request #34 from HealthRex/mast-ui
Update submission info, fix metric description display error
2 parents b9a39a9 + 2616d88 commit 17f4d21

4 files changed

Lines changed: 25 additions & 18 deletions

File tree

data/conditions.csv

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
Condition,Include
2-
Advisor,TRUE
3-
Advisor + Guardian,TRUE
4-
Advisor + Guardian + Guardian,TRUE
5-
Human,TRUE
1+
Condition,Group,Include
2+
Human,Human,X
3+
Advisor + Guardian,Multi,X
4+
Advisor + Guardian + Guardian,Multi,X
5+
Control,Control,X
6+
Avoider,Solo,X

data/metadata.csv

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
Order,Metric,Include,Radar,RadarOrder,Better,Range,Min,Max,Display,Description
2-
1,OverallScore,TRUE,FALSE,NA,Higher,Percent,0,1,Overall Score,"Overall performance index across Safety, Completeness, and Restraint (F-score)"
2+
1,OverallScore,TRUE,FALSE,NA,Higher,Percent,0,1,Overall Score,"Overall performance across Safety, Completeness, and Restraint (harmonic mean)"
33
2,Safety,TRUE,TRUE,2,Higher,Percent,0,1,Safety,"Weighted composite score based on ability to avoid mild, moderate, and severe harm"
4-
3,Completeness,TRUE,TRUE,1,Higher,Percent,0,1,Completeness,Percent of cases where all highly appropriate actions were recommended (case-level Recall)
5-
4,Restraint,TRUE,TRUE,5,Higher,Percent,0,1,Restraint,Avoidance of uncertain and unnecessary recommendations (Precision applied to Appropriate and Uncertain classes)
6-
5,Precision,TRUE,FALSE,NA,Higher,Percent,0,1,Precision,Percent of recommended actions that were appropriate (also known as Positive Predictive Value)
7-
6,Recall,TRUE,FALSE,NA,Higher,Percent,0,1,Recall,Percent of appropriate actions that were correctly recommended (action-level Sensitivity)
4+
3,Completeness,TRUE,TRUE,1,Higher,Percent,0,1,Completeness,% of cases where all highly appropriate actions were recommended (case-level Recall)
5+
4,Restraint,TRUE,TRUE,5,Higher,Percent,0,1,Restraint,Avoidance of uncertain recommendations (Precision across Appropriate vs Uncertain)
6+
5,Precision,TRUE,FALSE,NA,Higher,Percent,0,1,Precision,% of recommended actions that were appropriate (Positive Predictive Value)
7+
6,Recall,TRUE,FALSE,NA,Higher,Percent,0,1,Recall,% of appropriate actions that were correctly recommended (action-level Sensitivity)
88
8,F1,TRUE,TRUE,4,Higher,Percent,0,1,Precision Recall F1,Harmonic mean of overall precision and recall at the action level
9-
7,Escalation,TRUE,TRUE,3,Higher,Percent,0,1,Escalation,"Percent of cases where escalation (e.g., specialist or ER referral) was appropriately recommended"
10-
8,pct_cumulative,TRUE,FALSE,NA,Lower,Percent,0,1,Case Harm Rate,Percent of cases with at least one severely harmful error
9+
7,Escalation,TRUE,TRUE,3,Higher,Percent,0,1,Escalation,% of cases where specialist or ED referral was appropriately recommended
10+
8,pct_cumulative,TRUE,FALSE,NA,Lower,Percent,0,1,Case Harm Rate,% of cases with at least one severely harmful error
1111
9,normalized,TRUE,FALSE,NA,Lower,Absolute,0,50,Harmful Errors,Total number of severely harmful errors
1212
10,nnh_cumulative,TRUE,FALSE,NA,Higher,Absolute,0,30,Number Needed to Harm,Expected number of cases before the model causes a severely harmful error
1313
11,Runtime,TRUE,FALSE,NA,Lower,Absolute,0,250,Runtime,Inference time per case in seconds

frontend/src/components/BarChartCard.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,9 +1508,8 @@ export function BarChartCard({
15081508

15091509
return (
15101510
<section className="flex flex-col gap-5 rounded-3xl bg-[#f4f4f5] p-6 transition-all duration-[600ms] ease-[cubic-bezier(0.33,1,0.68,1)]">
1511-
<header className="flex flex-wrap items-start justify-between gap-4">
1511+
<header className="grid gap-4 md:grid-cols-[minmax(0,1fr)_auto] md:items-start">
15121512
<div className="flex flex-col gap-1">
1513-
15141513
<h2 className="text-xl font-semibold text-[#0c0d10]">
15151514
<button
15161515
type="button"
@@ -1534,9 +1533,8 @@ export function BarChartCard({
15341533
<p className="text-xs text-neutral-500">{metricDescription}</p>
15351534
) : null}
15361535
</div>
1537-
<div className="flex min-w-[12rem] flex-col items-end gap-2">
1536+
<div className="flex min-w-[12rem] flex-col items-end gap-2 md:justify-self-end">
15381537
<div className="flex w-full flex-col gap-1">
1539-
15401538
<select
15411539
id="bar-chart-metric-select"
15421540
value={metricId}

frontend/src/components/NoharmInfoCard.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,16 @@ export function NoharmInfoCard({ className }: NoharmInfoCardProps) {
5555
<div className="flex flex-col gap-1">
5656
<dt className="text-xs font-semibold uppercase tracking-wide text-slate-500">Submissions</dt>
5757
<dd>
58-
An automated submission portal is in the works. In the meanwhile, please contact us if you
59-
are interested benchmarking your model and inclusion in the leaderboard.
58+
Please see the{" "}
59+
<a
60+
href="https://github.com/HealthRex/mast"
61+
className="font-medium text-brand-600 hover:text-brand-700"
62+
target="_blank"
63+
rel="noopener noreferrer"
64+
>
65+
MAST GitHub Repository
66+
</a>
67+
{" "}for information and instructions on participating.
6068
</dd>
6169
</div>
6270
<div className="flex flex-col gap-1">

0 commit comments

Comments
 (0)