File size: 907 Bytes
6cc8ae1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Base configuration shared across all models
# Model-specific configs inherit from this

data:
  raw_dir: "Cattle_Resized"
  metadata_path: "data/breed_metadata.csv"
  manifests_dir: "ml/artifacts/manifests"
  split_ratios:
    train: 0.70
    val: 0.15
    test: 0.15
  seed: 42
  num_workers: 4

image:
  size: 224
  channels: 3
  mean: [0.485, 0.456, 0.406]
  std: [0.229, 0.224, 0.225]

augmentation:
  random_crop: true
  horizontal_flip: true
  rotation_degrees: 15.0
  color_jitter: true
  color_jitter_strength: 0.2

training:
  batch_size: 32
  num_epochs: 30
  learning_rate: 0.001
  weight_decay: 0.0001
  optimizer: "adam"
  scheduler: "cosine"
  early_stopping_patience: 7
  gradient_clip_max_norm: 1.0

evaluation:
  top_k: 3

artifacts:
  checkpoints_dir: "ml/artifacts/checkpoints"
  figures_dir: "ml/artifacts/figures"
  logs_dir: "ml/artifacts/logs"
  reports_dir: "ml/artifacts/reports"