Am I correct that when fitting a linear or regression model using a software, such as python, the process of minimising the cost function by using gradient descent is implemented by the software anyways.
If that’s correct, is there any purpose of construction the cost function “by hand” once the model is fitted?
In general you will never need to do that by hand, the purpose of learning the fundamental is to gain intuition about why and how things work, which is usually the most difficult part, also help you to see and identify shen things are not implemented correctly