Machine Learning
Fitting the model…
Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Machine Learning
Fitting the model…
The loss decides what “good” means. Same points, three losses, three different best lines — and a separate loss for classifiers that never lets confident mistakes off lightly.
Ten points and a line. Each point's residual r = ŷ − y is how far the line misses it — the dashed red gaps, here from −1.44 to 2.23. A loss function turns those ten residuals into one number, and training means finding the line with the smallest number. Which loss you pick decides which line counts as best.