*/ class BacktestFactory extends Factory { public function definition(): array { return [ 'model_version' => 'test-'.fake()->unique()->bothify('????????'), 'features_json' => ['features' => ['delta_ulsp_lag_0']], 'coefficients_json' => null, 'train_start' => '2018-01-01', 'train_end' => '2024-01-01', 'eval_start' => '2024-01-08', 'eval_end' => '2026-04-27', 'directional_accuracy' => fake()->randomFloat(2, 50, 75), 'mae_pence' => fake()->randomFloat(2, 0.4, 1.0), 'calibration_table' => ['0.0-0.5' => 0.55, '0.5-1.0' => 0.65, '1.0+' => 0.72], 'leak_suspected' => false, 'ran_at' => now(), ]; } }