Made more compatible with experimental conditions
This commit is contained in:
@@ -16,7 +16,7 @@ from pathlib import Path
|
||||
from typing import Any, Literal
|
||||
|
||||
Arch = Literal["cnn", "linatt"]
|
||||
Stage = Literal["arch_ladder", "windows_ablation", "robustness", "control", "extra"]
|
||||
Stage = Literal["ladder_point", "windows_ablation", "robustness", "control", "extra"]
|
||||
AmpPolicy = Literal["off", "bf16", "fp16"]
|
||||
EarlyStopMetric = Literal["val_recall_macro", "val_loss"]
|
||||
NormMethod = Literal["median_iqr", "median_mad"]
|
||||
@@ -105,6 +105,13 @@ class ExtractConfig:
|
||||
norm: Per-window normaliser applied before storing.
|
||||
dtype: On-disk shard dtype; fp16 halves the store at negligible cost.
|
||||
shard_windows: Windows per ``shard_%05d.npy`` file.
|
||||
exclude_refs: Reference contig substrings whose labelled reads are
|
||||
dropped (e.g. ``("NC_001416", "dcs")`` for ONT DNA Control
|
||||
Sequence spike-ins that would otherwise be mislabelled into
|
||||
Enterobacteriaceae genera).
|
||||
exclude_genera: Genus labels dropped before extraction (e.g. trap
|
||||
captures — reads of trap species that the labeller pulled into
|
||||
the panel but that belong to no class of the probe).
|
||||
seed: Unused by extraction itself (window choice is deterministic);
|
||||
kept so every config in the pipeline is seed-carrying.
|
||||
|
||||
@@ -118,6 +125,8 @@ class ExtractConfig:
|
||||
norm: NormMethod = "median_iqr"
|
||||
dtype: Literal["float16", "float32"] = "float16"
|
||||
shard_windows: int = 8_192
|
||||
exclude_refs: tuple[str, ...] = ()
|
||||
exclude_genera: tuple[str, ...] = ()
|
||||
seed: int = 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user