Implement AI Phase 4: Neural MCTS engine for tiers 9-10
- Add NeuralModelRegistry singleton: loads ONNX model from Ai:NeuralModelPath, hot-swap via ReloadAsync(), static Instance for engine access - Add NeuralEvaluator: GameState → ONNX inference with heuristic fallback when no model is loaded (tiers 9-10 fully playable without a trained model) - Add AiNeuralStartupService: loads model at startup, logs if not configured - Add NeuralDecisionEngine: MCTS with neural leaf evaluation (400 sims/action, 6-10s budget) replacing random rollouts with direct score estimation - Set tiers 9-10 EngineType="Neural" in AiDifficultyProfiles - Add AiModelPage (/ai/model): model status, hot-swap button, ONNX contract docs - Register NeuralModelRegistry + NeuralDecisionEngine in SOR.Ai and SOR.Admin - Add Microsoft.ML.OnnxRuntime 1.18.0 to central package versions Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -66,5 +66,8 @@
|
||||
<PackageVersion Include="FluentAssertions" Version="6.12.0" />
|
||||
<!-- In-process test server for integration tests -->
|
||||
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.0" />
|
||||
<!-- ── Machine Learning ────────────────────────────────────────────────── -->
|
||||
<!-- ONNX Runtime: CPU inference for the Phase 4 neural decision engine -->
|
||||
<PackageVersion Include="Microsoft.ML.OnnxRuntime" Version="1.18.0" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user