cda-hmoc-classifier / config.json
Laibaff7's picture
Upload folder using huggingface_hub
1c51b77 verified
Raw History Blame Contribute Delete
1.98 kB
{
"model_type": "Spectra1DCNN",
"task": "binary classification: HMOC (1) vs clean non-HMOC (0)",
"input": {
"seq_len": 1000,
"channels": 1,
"normalization": "per-spectrum min-max to [0,1]",
"padding": "truncate if longer, zero-pad if shorter"
},
"architecture": {
"conv1": {"filters": 32, "kernel_size": 7, "padding": 3},
"conv2": {"filters": 64, "kernel_size": 5, "padding": 2},
"conv3": {"filters": 128, "kernel_size": 3, "padding": 1},
"pool": "AdaptiveAvgPool1d(1)",
"fc1": 64,
"dropout": 0.4,
"fc_out": 1
},
"training": {
"loss": "FocalLoss(alpha=0.85, gamma=2.0)",
"optimizer": "AdamW(lr=1e-3, weight_decay=1e-4)",
"batch_size": 64,
"epochs": 100,
"early_stopping_patience": 15,
"cross_validation": "StratifiedKFold(n_splits=5, shuffle=True, random_state=42)",
"sampler": "WeightedRandomSampler (inverse class frequency)"
},
"ensemble": {
"n_models": 5,
"seeds": [42, 100, 2026, 777, 888],
"aggregation": "mean of per-model sigmoid probability"
},
"per_seed_metrics": {
"42": {"fold": 0, "best_threshold": 0.7590517401695251, "precision": 0.43478260869565216, "recall": 0.625, "f1": 0.5128205128205128, "auprc": 0.5083526492566003},
"100": {"fold": 1, "best_threshold": 0.44551947712898254, "precision": 0.4, "recall": 0.7058823529411765, "f1": 0.5106382978723404, "auprc": 0.35854310165554787},
"2026": {"fold": 2, "best_threshold": 0.6804486513137817, "precision": 0.5714285714285714, "recall": 0.47058823529411764, "f1": 0.5161290322580645, "auprc": 0.4548239974397242},
"777": {"fold": 3, "best_threshold": 0.8255515694618225, "precision": 0.6363636363636364, "recall": 0.4375, "f1": 0.5185185185185185, "auprc": 0.48420100099661334},
"888": {"fold": 4, "best_threshold": 0.7682159543037415, "precision": 0.7, "recall": 0.4375, "f1": 0.5384615384615384, "auprc": 0.5672543094146896}
}
}