Pergunta de entrevista da empresa Insight Global

What is the purpose of a loss function do in an AI model?