I don't know why there is a `/2` in the `costFunctionX:y:` in `AILinearRegression`, the method seems good to me otherwise. <img width="659" height="215" alt="Image" src="https://github.com/user-attachments/assets/fdbff12d-ad7f-4d71-918d-963ca583a005" />