Hi Abul, Good question!

The 1/2 is simply for convenience. If you take the derivative of X², then it becomes 2X. 1/2 is used to remove that 2.
1/m is to calculate the “mean” squared error. Whether m (sample size) is small or big, we can make a fair comparison this way.

I’m an Engineering Manager at Scale AI and this is my notepad for Applied Math / CS / Deep Learning topics. Follow me on Twitter for more!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store