From 1709f406eddda318f39275a4d9f3838bdaa83496 Mon Sep 17 00:00:00 2001
From: Gertjan van den Burg <gertjanvandenburg@gmail.com>
Date: Mon, 25 May 2020 14:27:39 +0100
Subject: Correct calculation of F measure

This commit corrects an error in the calculation of the
F measure and updates the results accordingly. As a precaution,
doctests are added to each of the functions in the metrics.py
file.
---
 .../output/rankplots/rankplot_default_f1_uni.tex   | 108 ++++++++++-----------
 1 file changed, 54 insertions(+), 54 deletions(-)

(limited to 'analysis/output/rankplots/rankplot_default_f1_uni.tex')

diff --git a/analysis/output/rankplots/rankplot_default_f1_uni.tex b/analysis/output/rankplots/rankplot_default_f1_uni.tex
index 738a046b..1b4c1bbf 100644
--- a/analysis/output/rankplots/rankplot_default_f1_uni.tex
+++ b/analysis/output/rankplots/rankplot_default_f1_uni.tex
@@ -158,39 +158,39 @@ node[anchor=north] {14};
 
 % link layer
 \begin{scope}
-\draw[color=linkColorA, thin] (177.36263736263734, 0) .. controls
-(177.36263736263734, -10.0) and (99.0, -10.0) .. (99.0, -20.0);
-\draw[color=linkColorB, thin] (147.03296703296704, 0) .. controls
-(147.03296703296704, -10.0) and (21.0, -10.0) .. (21.0, -20.0);
-\draw[color=linkColorC, thin] (210.98901098901098, 0) .. controls
-(210.98901098901098, -10.0) and (237.0, -10.0) .. (237.0, -20.0);
-\draw[color=linkColorD, thin] (338.24175824175825, 0) .. controls
-(338.24175824175825, -10.0) and (355.0, -10.0) .. (355.0, -20.0);
-\draw[color=linkColorE, thin] (288.13186813186815, 0) .. controls
-(288.13186813186815, -10.0) and (308.0, -10.0) .. (308.0, -20.0);
-\draw[color=linkColorF, thin] (258.46153846153845, 0) .. controls
-(258.46153846153845, -10.0) and (274.0, -10.0) .. (274.0, -20.0);
-\draw[color=linkColorG, thin] (598.6813186813187, 0) .. controls
-(598.6813186813187, -10.0) and (599.0, -10.0) .. (599.0, -20.0);
-\draw[color=linkColorH, thin] (156.26373626373626, 0) .. controls
-(156.26373626373626, -10.0) and (62.0, -10.0) .. (62.0, -20.0);
-\draw[color=linkColorI, thin] (348.79120879120876, 0) .. controls
-(348.79120879120876, -10.0) and (411.0, -10.0) .. (411.0, -20.0);
-\draw[color=linkColorJ, thin] (381.09890109890114, 0) .. controls
-(381.09890109890114, -10.0) and (471.0, -10.0) .. (471.0, -20.0);
-\draw[color=linkColorK, thin] (445.054945054945, 0) .. controls
-(445.054945054945, -10.0) and (525.0, -10.0) .. (525.0, -20.0);
-\draw[color=linkColorL, thin] (196.4835164835165, 0) .. controls
-(196.4835164835165, -10.0) and (185.0, -10.0) .. (185.0, -20.0);
-\draw[color=linkColorM, thin] (466.1538461538462, 0) .. controls
-(466.1538461538462, -10.0) and (562.0, -10.0) .. (562.0, -20.0);
-\draw[color=linkColorN, thin] (187.25274725274724, 0) .. controls
-(187.25274725274724, -10.0) and (137.0, -10.0) .. (137.0, -20.0);
+\draw[color=linkColorA, thin] (211.64835164835162, 0) .. controls
+(211.64835164835162, -10.0) and (203.0, -10.0) .. (203.0, -20.0);
+\draw[color=linkColorB, thin] (141.75824175824175, 0) .. controls
+(141.75824175824175, -10.0) and (21.0, -10.0) .. (21.0, -20.0);
+\draw[color=linkColorC, thin] (180.65934065934067, 0) .. controls
+(180.65934065934067, -10.0) and (101.0, -10.0) .. (101.0, -20.0);
+\draw[color=linkColorD, thin] (356.043956043956, 0) .. controls
+(356.043956043956, -10.0) and (355.0, -10.0) .. (355.0, -20.0);
+\draw[color=linkColorE, thin] (253.84615384615384, 0) .. controls
+(253.84615384615384, -10.0) and (278.0, -10.0) .. (278.0, -20.0);
+\draw[color=linkColorF, thin] (275.6043956043956, 0) .. controls
+(275.6043956043956, -10.0) and (311.0, -10.0) .. (311.0, -20.0);
+\draw[color=linkColorG, thin] (593.4065934065934, 0) .. controls
+(593.4065934065934, -10.0) and (597.0, -10.0) .. (597.0, -20.0);
+\draw[color=linkColorH, thin] (158.9010989010989, 0) .. controls
+(158.9010989010989, -10.0) and (62.0, -10.0) .. (62.0, -20.0);
+\draw[color=linkColorI, thin] (383.0769230769231, 0) .. controls
+(383.0769230769231, -10.0) and (454.0, -10.0) .. (454.0, -20.0);
+\draw[color=linkColorJ, thin] (410.7692307692308, 0) .. controls
+(410.7692307692308, -10.0) and (514.0, -10.0) .. (514.0, -20.0);
+\draw[color=linkColorK, thin] (365.934065934066, 0) .. controls
+(365.934065934066, -10.0) and (405.0, -10.0) .. (405.0, -20.0);
+\draw[color=linkColorL, thin] (200.43956043956044, 0) .. controls
+(200.43956043956044, -10.0) and (153.0, -10.0) .. (153.0, -20.0);
+\draw[color=linkColorM, thin] (417.3626373626374, 0) .. controls
+(417.3626373626374, -10.0) and (562.0, -10.0) .. (562.0, -20.0);
+\draw[color=linkColorN, thin] (250.54945054945057, 0) .. controls
+(250.54945054945057, -10.0) and (241.0, -10.0) .. (241.0, -20.0);
 \end{scope}
 
 % label layer
 \begin{scope}
-\begin{scope}[shift={(80, -34)}]
+\begin{scope}[shift={(184, -34)}]
 \fill[color=labelBgColorA, rounded corners=2pt]
 (0, 0) rectangle (37, 14.62708) node[midway, yshift=-.75bp, anchor=center, text=labelTextColorA] {\strut \textA};
 \end{scope}
@@ -198,7 +198,7 @@ node[anchor=north] {14};
 \fill[color=labelBgColorB, rounded corners=2pt]
 (0, 0) rectangle (43, 14.62708) node[midway, yshift=-.75bp, anchor=center, text=labelTextColorB] {\strut \textB};
 \end{scope}
-\begin{scope}[shift={(216, -34)}]
+\begin{scope}[shift={(80, -34)}]
 \fill[color=labelBgColorC, rounded corners=2pt]
 (0, 0) rectangle (41, 14.62708) node[midway, yshift=-.75bp, anchor=center, text=labelTextColorC] {\strut \textC};
 \end{scope}
@@ -206,15 +206,15 @@ node[anchor=north] {14};
 \fill[color=labelBgColorD, rounded corners=2pt]
 (0, 0) rectangle (54, 14.62708) node[midway, yshift=-.75bp, anchor=center, text=labelTextColorD] {\strut \textD};
 \end{scope}
-\begin{scope}[shift={(291, -34)}]
+\begin{scope}[shift={(261, -34)}]
 \fill[color=labelBgColorE, rounded corners=2pt]
 (0, 0) rectangle (34, 14.62708) node[midway, yshift=-.75bp, anchor=center, text=labelTextColorE] {\strut \textE};
 \end{scope}
-\begin{scope}[shift={(260, -34)}]
+\begin{scope}[shift={(297, -34)}]
 \fill[color=labelBgColorF, rounded corners=2pt]
 (0, 0) rectangle (27, 14.62708) node[midway, yshift=-.75bp, anchor=center, text=labelTextColorF] {\strut \textF};
 \end{scope}
-\begin{scope}[shift={(582, -34)}]
+\begin{scope}[shift={(580, -34)}]
 \fill[color=labelBgColorG, rounded corners=2pt]
 (0, 0) rectangle (34, 14.62708) node[midway, yshift=-.75bp, anchor=center, text=labelTextColorG] {\strut \textG};
 \end{scope}
@@ -222,19 +222,19 @@ node[anchor=north] {14};
 \fill[color=labelBgColorH, rounded corners=2pt]
 (0, 0) rectangle (32, 14.62708) node[midway, yshift=-.75bp, anchor=center, text=labelTextColorH] {\strut \textH};
 \end{scope}
-\begin{scope}[shift={(384, -34)}]
+\begin{scope}[shift={(427, -34)}]
 \fill[color=labelBgColorI, rounded corners=2pt]
 (0, 0) rectangle (53, 14.62708) node[midway, yshift=-.75bp, anchor=center, text=labelTextColorI] {\strut \textI};
 \end{scope}
-\begin{scope}[shift={(440, -34)}]
+\begin{scope}[shift={(483, -34)}]
 \fill[color=labelBgColorJ, rounded corners=2pt]
 (0, 0) rectangle (61, 14.62708) node[midway, yshift=-.75bp, anchor=center, text=labelTextColorJ] {\strut \textJ};
 \end{scope}
-\begin{scope}[shift={(505, -34)}]
+\begin{scope}[shift={(385, -34)}]
 \fill[color=labelBgColorK, rounded corners=2pt]
 (0, 0) rectangle (40, 14.62708) node[midway, yshift=-.75bp, anchor=center, text=labelTextColorK] {\strut \textK};
 \end{scope}
-\begin{scope}[shift={(156, -34)}]
+\begin{scope}[shift={(124, -34)}]
 \fill[color=labelBgColorL, rounded corners=2pt]
 (0, 0) rectangle (57, 14.62708) node[midway, yshift=-.75bp, anchor=center, text=labelTextColorL] {\strut \textL};
 \end{scope}
@@ -242,7 +242,7 @@ node[anchor=north] {14};
 \fill[color=labelBgColorM, rounded corners=2pt]
 (0, 0) rectangle (29, 14.62708) node[midway, yshift=-.75bp, anchor=center, text=labelTextColorM] {\strut \textM};
 \end{scope}
-\begin{scope}[shift={(120, -34)}]
+\begin{scope}[shift={(224, -34)}]
 \fill[color=labelBgColorN, rounded corners=2pt]
 (0, 0) rectangle (33, 14.62708) node[midway, yshift=-.75bp, anchor=center, text=labelTextColorN] {\strut \textN};
 \end{scope}
@@ -251,38 +251,38 @@ node[anchor=north] {14};
 % dots
 \begin{scope}
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorA] at (177.362637, 0) {};
+fill=dotColorA] at (211.648352, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorB] at (147.032967, 0) {};
+fill=dotColorB] at (141.758242, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorC] at (210.989011, 0) {};
+fill=dotColorC] at (180.659341, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorD] at (338.241758, 0) {};
+fill=dotColorD] at (356.043956, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorE] at (288.131868, 0) {};
+fill=dotColorE] at (253.846154, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorF] at (258.461538, 0) {};
+fill=dotColorF] at (275.604396, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorG] at (598.681319, 0) {};
+fill=dotColorG] at (593.406593, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorH] at (156.263736, 0) {};
+fill=dotColorH] at (158.901099, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorI] at (348.791209, 0) {};
+fill=dotColorI] at (383.076923, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorJ] at (381.098901, 0) {};
+fill=dotColorJ] at (410.769231, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorK] at (445.054945, 0) {};
+fill=dotColorK] at (365.934066, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorL] at (196.483516, 0) {};
+fill=dotColorL] at (200.439560, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorM] at (466.153846, 0) {};
+fill=dotColorM] at (417.362637, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorN] at (187.252747, 0) {};
+fill=dotColorN] at (250.549451, 0) {};
 \end{scope}
 
 % Critical difference
-\def\posBest{147.0329670329670364}
-\def\posCD{254.4028689117750730}
+\def\posBest{141.7582417582417520}
+\def\posCD{245.2075984169315177}
 \begin{scope}
 \draw (\posBest, 30) -- (\posBest, 20);
 \draw (\posBest, 25) --node[below] {CD} (\posCD, 25);
-- 
cgit v1.2.3

