From 766fb15d90333c609aba17450e22297ede62365c Mon Sep 17 00:00:00 2001 From: Janosh Riebesell Date: Tue, 20 Feb 2024 11:11:09 +0100 Subject: [PATCH] show model-stats-uniq-protos.json on /models to fix mismatch with landing page metrics (closes #91) --- scripts/model_figs/cumulative_metrics.py | 2 +- site/src/routes/models/+page.server.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/model_figs/cumulative_metrics.py b/scripts/model_figs/cumulative_metrics.py index d31e33ed..c95e2161 100644 --- a/scripts/model_figs/cumulative_metrics.py +++ b/scripts/model_figs/cumulative_metrics.py @@ -48,7 +48,7 @@ show_n_stable=metrics != ("MAE",), ) -x_label = "Test set structures ranked by model-predicted stability" +x_label = "Number of screened materials" if backend == "matplotlib": # fig.suptitle(title) fig.text(0.5, -0.08, x_label, ha="center", fontdict={"size": 16}) diff --git a/site/src/routes/models/+page.server.ts b/site/src/routes/models/+page.server.ts index 81ad2c39..539287f9 100644 --- a/site/src/routes/models/+page.server.ts +++ b/site/src/routes/models/+page.server.ts @@ -1,5 +1,5 @@ import type { ModelData } from '$lib' -import model_stats from '$lib/model-stats.json' +import model_stats from '$lib/model-stats-uniq-protos.json' import { compile } from 'mdsvex' import { dirname } from 'path'