refactoring: add initial pipeline configuration and model classes

This commit is contained in:
2025-08-04 16:12:25 +02:00
parent 19c66fd0ee
commit f4689faf80
82 changed files with 7176 additions and 1218 deletions
+23
View File
@@ -0,0 +1,23 @@
from pathlib import Path
from pydantic import BaseModel, field_validator
class ProjectPaths(BaseModel):
"""Project directory structure configuration"""
root_dir: Path
data_dir: Path
models_dir: Path
outputs_dir: Path
logs_dir: Path
configs_dir: Path
checkpoints_dir: Path
class Config:
arbitrary_types_allowed = True
@classmethod
@field_validator("*", mode="before")
def convert_to_path(cls, v):
return Path(v) if not isinstance(v, Path) else v