Skip to content

Commit ecce909

Browse files
committed
Fixed line breaks.
1 parent 4f44740 commit ecce909

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

4 - Selection of reference objects/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
### Assignment implementation
1010
###### Margins
1111
The margin of an object relative to some dataset and classification algorithm denotes how typical this object is. The larger the value, the more usual the sample is. To compute the margin, the following formulae can be used:
12+
1213
<a href="https://www.codecogs.com/eqnedit.php?latex=M(x_i)=W_{y_i}(x_i,&space;X^l)-\max_{y\in&space;Y\backslash\{y_i\}}W_y(x_i,&space;X^l)." target="_blank"><img src="https://latex.codecogs.com/gif.latex?M(x_i)=W_{y_i}(x_i,&space;X^l)-\max_{y\in&space;Y\backslash\{y_i\}}W_y(x_i,&space;X^l)." title="M(x_i)=W_{y_i}(x_i, X^l)-\max_{y\in Y\backslash\{y_i\}}W_y(x_i, X^l)." /></a>
14+
1315
That is, margin is a difference between the weight of an actual class and max weight among all other classes, except the actual one. Hence, negative margin means that classifiction algortihm makes an error on this object.
1416

1517
Below is a margins plot for the iris dataset. Dots are colored from green to red, where green is largest positive margin and red - lowest negative.

0 commit comments

Comments
 (0)