# 5-fold 交差検証(ややあり込み): 計算サーバ上の実データで学習・評価する(SPEC_02「交差検証の実行」).モデル比較用(ResNet-50.モデル名以外は cv_with_mild.yaml と同一).学習率 1e-3 の再実験(lr 以外は configs/cv_resnet50_with_mild.yaml と同一.lr 1e-4 では学習不足だったため).クラス不均衡の対策: 損失のクラス重み inverse(class_weighting 以外は configs/lr1e-3/cv_resnet50_with_mild_lr1e-3.yaml と同一.SPEC_02「クラス不均衡」→「対策の設定」)
# 臨床データはサーバ上にのみ置く.手元ではこの設定で実行しない.
data:
bundle:
name: tongue_color
version: 2
severities: [strong, mild, normal]
split:
seed: 42
n_folds: 5
model:
name: resnet50
pretrained: true
train:
image_size: 224
batch_size: 32
max_epochs: 40
patience: 8
lr: 1.0e-3
weight_decay: 0.05
warmup_epochs: 2
inner_val_ratio: 0.15
num_workers: 4
amp: true
class_weighting: inverse