Kaizen Gaming interview question

What is a loss function?