Cost Function

202502012202
tags: #machine-learning #optimization

A cost function measures how well a machine learning model's predictions match the actual target values. It quantifies the "cost" of making wrong predictions.

Common Cost Functions:

The goal of training is to minimize the cost function using techniques like Gradient Descent. The choice of cost function affects how the model learns and what types of errors it prioritizes.

A well-designed cost function should:


Reference

Machine Learning Yearning by Andrew Ng