<?php

// ── Cron guard: CLI only ───────────────────────────────────────────────

if (php_sapi_name() !== 'cli') {

    http_response_code(403);

    exit('Forbidden — CLI only');

}

require_once __DIR__ . '/../config.php';

require_once __DIR__ . '/../ai_config.php';



$trainer = new AITrainer();

$trainer->trainPaymentPredictor();

$trainer->trainExpensePredictor();