Fix formatting in README.md
Browse files
README.md
CHANGED
@@ -38,16 +38,15 @@ The measure accounts for the hierarchical structure of the ISCO-08 classificatio
|
|
38 |
1. the measure gives higher evaluation for correctly classifying one level down compared to staying at the parent node, e.g. classification into node $E$ (ISCO minor group "111") is better than classification into its parent $C$ (ISCO sub-major group "11") since $E$ is closer to the correct category $G$; and
|
39 |
2. the measure gives lower evaluation for incorrectly classifying one level down comparing to staying at the parent node, e.g. classification into node $F$ (ISCO unit group "1120") is worse than classification into its parent $C$ since $F$ is farther away from $G$.
|
40 |
|
41 |
-
The features described are accomplished by pairing hierarchical variants of precision ($hP$) and recall ($hR$) to form a hierarchical F1 (hF_
|
42 |
|
43 |
-
Hierarchical precision can be computed with
|
44 |
-
$hP = \frac{| \v{C}_i ∩ \v{C}^′_i|} {|\v{C}^′_i |} = \frac{1}{2}$
|
45 |
|
46 |
Hierarchical recall can be computed with:
|
47 |
-
|
48 |
|
49 |
Combining the two values $hP$ and $hR$ into one hF-measure:
|
50 |
-
|
51 |
|
52 |
## How to Use
|
53 |
*Give general statement of how to use the metric*
|
|
|
38 |
1. the measure gives higher evaluation for correctly classifying one level down compared to staying at the parent node, e.g. classification into node $E$ (ISCO minor group "111") is better than classification into its parent $C$ (ISCO sub-major group "11") since $E$ is closer to the correct category $G$; and
|
39 |
2. the measure gives lower evaluation for incorrectly classifying one level down comparing to staying at the parent node, e.g. classification into node $F$ (ISCO unit group "1120") is worse than classification into its parent $C$ since $F$ is farther away from $G$.
|
40 |
|
41 |
+
The features described are accomplished by pairing hierarchical variants of precision ($hP$) and recall ($hR$) to form a hierarchical F1 ($hF_β$) score where each sample belongs not only to its class (e.g., a unit group level code), but also to all ancestors of the class in a hierarchical graph (i.e., the minor, sub-major, and major group level codes).
|
42 |
|
43 |
+
Hierarchical precision can be computed with `$hP = \frac{| \v{C}_i ∩ \v{C}^′_i|} {|\v{C}^′_i |} = \frac{1}{2}$`
|
|
|
44 |
|
45 |
Hierarchical recall can be computed with:
|
46 |
+
`$hR = \frac{| \v{C}_i ∩ \v{C}^′_i|} {|\v{C}_i |} = \frac{1}{2}$`
|
47 |
|
48 |
Combining the two values $hP$ and $hR$ into one hF-measure:
|
49 |
+
`$hF_β = \frac{(β^2 + 1) · hP · hR}{(β^2 · hP + hR)}, β ∈ [0, +∞)$`
|
50 |
|
51 |
## How to Use
|
52 |
*Give general statement of how to use the metric*
|