Classical Machine Learning
Measure the boundary's margin violations
Correct labels can have different margin losses
A boundary can classify every part correctly while leaving some too close to its margin. Botie needs a loss that notices this shortfall.
BOTIE
The inputs we are comparing
Part measurements by row
Narrow scores
| -2 |
| -1 |
| 1 |
| 2 |
Beyond the margin
| -2 |
| 2 |
Boundary weights
Narrow scores
- 00.5
Beyond the margin
- 01
Boundary bias
Same in both cases
0
Known labels: -1 or +1
Narrow scores
- 0-1
- 1-1
- 21
- 31
Beyond the margin
- 0-1
- 11
Result for narrow scores
0.25
A part lands directly on the decision boundary
This check uses the pieces from “Average only positive margin shortfalls”.
BOTIE
- Part measurements by row
-1 0 1 - Boundary weights
- 01
- Boundary bias
0
- Known labels: -1 or +1
- 0-1
- 11
- 21
Use a number, text, or an array matching the requested result. For a matrix, put each row in brackets. Saving your prediction runs your current construction on these inputs and checks the earlier examples too.
Build a construction in the workspace above first. This case will test those pieces.
How can the loss distinguish a wrong-side part from a correct-but-close part, and what term would a full SVM objective still need?
A classifier's training objective may depend on score magnitude as well as whether its predicted class is correct.
The weights are supplied, not fitted. A full SVM objective also penalises their norm, and its score is not a calibrated probability.
Work through the Python challenges →