Chapter 4 – Cost Function
Chapter 4 – Cost Function#
Data Science and Machine Learning for Geoscientists
The previous 2 examples have the same amount of students, so it is a fair comparison. However, if they have different sizes, then the very accurate model with 1000 data would not have better cross-entropy result than the one with 5 data. So we need to divide the amount of the data to make `per capita’ comparison.
(19)#
where the
(20)#
So finally, we can obtain the following by replacing
(21)#
What we want is to find the weights