RTUComputer ScienceYr 2023 · Sem 62023

Q5Machine Learning

Question

2 marks

What is the purpose of a cost function?

Answer

A cost function measures the error between predicted values and actual target values.

The goal of training a machine learning model is to minimize this cost function. Common examples include Mean Squared Error (MSE) for regression and Cross-Entropy for classification.

Back to Paper