The detectors are in detectors/detectors/; the manual set and the benchmark in models/rules/ (moved from aimsight-detectors)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-25 14:28:23 +01:00
1 parent cae07a2787
commit 9d75a71522
5 files changed
+13 -13

No files matched your search

+4 -4
View File
@@ -17,7 +17,7 @@ const FAMILIES = { "Anomaly": "#e03131", "Visibility": "#8ec5e8", "Obstruction":
"Target issue": "#e6d46a", "No data": "#c4c4be", "None": "#a8d5a2" };
const FAMILY_NAME = f => (f === "None" ? "None (curves intact)" : f);
// A label of auto/ has one of the seven families (labeling/scripts/validate.py); None is the expert's, in manual/;
// Anomaly, the detectors' alone (detectors/manual/events.py: something happened, without saying what)
// Anomaly, the detectors' alone (models/rules/manual/events.py: something happened, without saying what)
const FAMILY_CHOICES = [{ value: "", label: "(choose a family)" },
...Object.keys(FAMILIES).filter(f => f !== "None" && f !== "Anomaly").map(f => ({ value: f, label: f }))];
// LLM and Analysis: the same labels, labeling/auto/; LLM reads them, Analysis edits, deletes them, and has the analyst make
@@ -51,7 +51,7 @@ export default function Data({ selection, choose, analysis, setAnalysis, support
const [source, setSource] = useState("detectors"), [families, setFamilies] = useState(DETECTED), [targets, setTargets] = useState("");
const [focus, setFocus] = useState(false); // with an event open, the plots show only its sensors
const [hidden, setHidden] = useState([]); // the targets removed from the plots (the detectors still read them)
const [set, setSet] = useState("classic"); // the detectors: classic (detectors/scripts/) or manual (detectors/manual/)
const [set, setSet] = useState("classic"); // the detectors: classic (detectors/detectors/) or manual (models/rules/manual/)
const [sensitivity, setSensitivity] = useState(5); // of the manual set: 1 (tolerant) to 10 (severe); 5, its limits as written
const [cut, setCut] = useState(false); // the points under a label of the checked families removed, the curves joined
const { station, start, end } = selection;
@@ -133,7 +133,7 @@ function Settings({ d, families, setFamilies, targets, setTargets, detect, focus
<div>
<Text size="sm" fw={500}>Detectors</Text>
<SegmentedControl size="xs" mt={4} value={set} onChange={setSet}
data={[{ value: "classic", label: "Classic" }, { value: "manual", label: "Manual (detectors/manual/)" }]} />
data={[{ value: "classic", label: "Classic" }, { value: "manual", label: "Manual (models/rules/manual/)" }]} />
</div>
{set === "manual" && <div>
<Text size="sm" fw={500}>Sensitivity: {sensitivity}</Text>
@@ -621,7 +621,7 @@ function Analysis({ kind = "analyses", name, dark, done, close }) {
{o.state === "interrupted" && <Text size="sm" c="orange">Stopped with the server; rerun it with the button.</Text>}
<Thread lines={o.lines} />
{o.summary && <Page title="Summary" src={`/api/analyses/${name}/summary.html?dark=${dark}&v=${o.summary}`} />}
{o.summary && <Text size="xs" c="dimmed" ff="monospace">python3 detectors/bench/score.py data/{d.station} --labels labeling/auto/{d.station}.jsonl --from {d.start.slice(0, 10)} --to {end}</Text>}
{o.summary && <Text size="xs" c="dimmed" ff="monospace">python3 models/rules/bench/score.py data/{d.station} --labels labeling/auto/{d.station}.jsonl --from {d.start.slice(0, 10)} --to {end}</Text>}
</Stack>
)}
<Text size="xs" c="dimmed">labeling/auto/{kind}/{name}/</Text>