Laura Cabayol Garcia
Setup training and validation
1253e28
raw
history blame
803 Bytes
from pathlib import Path
from dotenv import load_dotenv
from loguru import logger
# Load environment variables from .env file if it exists
load_dotenv()
# Paths
PROJ_ROOT = Path(__file__).resolve().parents[1]
logger.info(f"PROJ_ROOT path is: {PROJ_ROOT}")
DATA_DIR = PROJ_ROOT / "data"
RAW_DATA_DIR = DATA_DIR / "raw"
PROCESSED_DATA_DIR = DATA_DIR / "processed"
PREDICTED_DATA_DIR = DATA_DIR / "predictions"
MODELS_DIR = PROJ_ROOT / "models"
REPORTS_DIR = PROJ_ROOT / "reports"
FIGURES_DIR = REPORTS_DIR / "figures"
# Model parameters for different classifiers
MODEL_PARAMS = {
'n_estimators': 100,
'max_depth': 5,
'learning_rate': 0.1,
'solver': 'lbfgs',
'max_iter': 200,
'C': 1.0,
'kernel': 'rbf',
'gamma': 'scale',
'n_neighbors': 5,
'random_state': 42
}