import React from 'react'; import { THEME, tempColor, pHColor, saltColor, O2_COLOR } from '../theme.js'; import { MediaConfBar, OxygenConfArc, IntervalBar, SourceBadge } from './Primitives.jsx'; const TARGETS = [ { key: 'T', label: 'Temperature optimum', metric: 'MAE', value: '3.28', unit: '°C', color: tempColor(45), verdict: "Useful — labs incubate in 5°C steps; you'd usually pick the right shelf.", detail: 'Trained on 17,007 BacDive strains. Cross-validation 5-fold GroupKFold by family.' }, { key: 'pH', label: 'pH optimum', metric: 'MAE', value: '0.52', unit: '', color: pHColor(7), verdict: 'Marginal — distinguishes acidic / neutral / alkaline, not finer.', detail: 'Trained on 4,652 BacDive strains. Quantile regression for 80% prediction interval.' }, { key: 'O2', label: 'Oxygen requirement', metric: 'F1', value: '0.94', unit: '', color: O2_COLOR, verdict: 'Strong on fold 0 with LoRA; still needs folds 1-4 before publication-grade validation.', detail: 'Hybrid oxygen uses LoRA ESM-2 fold 0 when available, with tabular prediction as the deploy fallback.' }, { key: 'salt', label: 'Salt tolerance', metric: 'MAE', value: '2.51', unit: '%', color: saltColor(3), verdict: 'Decent — separates freshwater / marine / halotolerant.', detail: 'Trained on 4,793 BacDive strains.' }, ]; export default function Accuracy() { return (