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.
---
 analysis/output/rankplots/rankplot_best_f1_uni.tex | 108 ++++++++++-----------
 1 file changed, 54 insertions(+), 54 deletions(-)

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

diff --git a/analysis/output/rankplots/rankplot_best_f1_uni.tex b/analysis/output/rankplots/rankplot_best_f1_uni.tex
index 8a419055..d7322b76 100644
--- a/analysis/output/rankplots/rankplot_best_f1_uni.tex
+++ b/analysis/output/rankplots/rankplot_best_f1_uni.tex
@@ -149,85 +149,85 @@ node[anchor=north] {13};
 
 % link layer
 \begin{scope}
-\draw[color=linkColorA, thin] (170.94594594594597, 0) .. controls
-(170.94594594594597, -10.0) and (190.0, -10.0) .. (190.0, -20.0);
-\draw[color=linkColorB, thin] (154.05405405405403, 0) .. controls
-(154.05405405405403, -10.0) and (148.0, -10.0) .. (148.0, -20.0);
-\draw[color=linkColorC, thin] (112.16216216216216, 0) .. controls
-(112.16216216216216, -10.0) and (42.0, -10.0) .. (42.0, -20.0);
-\draw[color=linkColorD, thin] (403.37837837837844, 0) .. controls
-(403.37837837837844, -10.0) and (414.0, -10.0) .. (414.0, -20.0);
-\draw[color=linkColorE, thin] (364.1891891891892, 0) .. controls
-(364.1891891891892, -10.0) and (330.0, -10.0) .. (330.0, -20.0);
-\draw[color=linkColorF, thin] (218.9189189189189, 0) .. controls
-(218.9189189189189, -10.0) and (226.0, -10.0) .. (226.0, -20.0);
-\draw[color=linkColorG, thin] (365.5405405405405, 0) .. controls
-(365.5405405405405, -10.0) and (367.0, -10.0) .. (367.0, -20.0);
-\draw[color=linkColorH, thin] (235.13513513513513, 0) .. controls
-(235.13513513513513, -10.0) and (258.0, -10.0) .. (258.0, -20.0);
-\draw[color=linkColorI, thin] (430.4054054054054, 0) .. controls
-(430.4054054054054, -10.0) and (470.0, -10.0) .. (470.0, -20.0);
-\draw[color=linkColorJ, thin] (504.72972972972974, 0) .. controls
-(504.72972972972974, -10.0) and (552.0, -10.0) .. (552.0, -20.0);
-\draw[color=linkColorK, thin] (147.97297297297297, 0) .. controls
-(147.97297297297297, -10.0) and (94.0, -10.0) .. (94.0, -20.0);
-\draw[color=linkColorL, thin] (487.1621621621622, 0) .. controls
-(487.1621621621622, -10.0) and (514.0, -10.0) .. (514.0, -20.0);
-\draw[color=linkColorM, thin] (305.4054054054054, 0) .. controls
-(305.4054054054054, -10.0) and (294.0, -10.0) .. (294.0, -20.0);
+\draw[color=linkColorA, thin] (230.4054054054054, 0) .. controls
+(230.4054054054054, -10.0) and (260.0, -10.0) .. (260.0, -20.0);
+\draw[color=linkColorB, thin] (150.0, 0) .. controls
+(150.0, -10.0) and (92.0, -10.0) .. (92.0, -20.0);
+\draw[color=linkColorC, thin] (104.72972972972974, 0) .. controls
+(104.72972972972974, -10.0) and (47.0, -10.0) .. (47.0, -20.0);
+\draw[color=linkColorD, thin] (414.18918918918916, 0) .. controls
+(414.18918918918916, -10.0) and (419.0, -10.0) .. (419.0, -20.0);
+\draw[color=linkColorE, thin] (338.5135135135135, 0) .. controls
+(338.5135135135135, -10.0) and (299.0, -10.0) .. (299.0, -20.0);
+\draw[color=linkColorF, thin] (190.54054054054052, 0) .. controls
+(190.54054054054052, -10.0) and (190.0, -10.0) .. (190.0, -20.0);
+\draw[color=linkColorG, thin] (345.27027027027026, 0) .. controls
+(345.27027027027026, -10.0) and (336.0, -10.0) .. (336.0, -20.0);
+\draw[color=linkColorH, thin] (204.05405405405403, 0) .. controls
+(204.05405405405403, -10.0) and (223.0, -10.0) .. (223.0, -20.0);
+\draw[color=linkColorI, thin] (481.08108108108104, 0) .. controls
+(481.08108108108104, -10.0) and (550.0, -10.0) .. (550.0, -20.0);
+\draw[color=linkColorJ, thin] (457.43243243243245, 0) .. controls
+(457.43243243243245, -10.0) and (501.0, -10.0) .. (501.0, -20.0);
+\draw[color=linkColorK, thin] (161.4864864864865, 0) .. controls
+(161.4864864864865, -10.0) and (145.0, -10.0) .. (145.0, -20.0);
+\draw[color=linkColorL, thin] (431.0810810810811, 0) .. controls
+(431.0810810810811, -10.0) and (463.0, -10.0) .. (463.0, -20.0);
+\draw[color=linkColorM, thin] (391.21621621621625, 0) .. controls
+(391.21621621621625, -10.0) and (372.0, -10.0) .. (372.0, -20.0);
 \end{scope}
 
 % label layer
 \begin{scope}
-\begin{scope}[shift={(171, -34)}]
+\begin{scope}[shift={(241, -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}
-\begin{scope}[shift={(126, -34)}]
+\begin{scope}[shift={(70, -34)}]
 \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={(21, -34)}]
+\begin{scope}[shift={(26, -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}
-\begin{scope}[shift={(387, -34)}]
+\begin{scope}[shift={(392, -34)}]
 \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={(313, -34)}]
+\begin{scope}[shift={(282, -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={(212, -34)}]
+\begin{scope}[shift={(176, -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={(350, -34)}]
+\begin{scope}[shift={(319, -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}
-\begin{scope}[shift={(242, -34)}]
+\begin{scope}[shift={(207, -34)}]
 \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={(443, -34)}]
+\begin{scope}[shift={(523, -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={(532, -34)}]
+\begin{scope}[shift={(481, -34)}]
 \fill[color=labelBgColorJ, rounded corners=2pt]
 (0, 0) rectangle (40, 14.62708) node[midway, yshift=-.75bp, anchor=center, text=labelTextColorJ] {\strut \textJ};
 \end{scope}
-\begin{scope}[shift={(65, -34)}]
+\begin{scope}[shift={(116, -34)}]
 \fill[color=labelBgColorK, rounded corners=2pt]
 (0, 0) rectangle (57, 14.62708) node[midway, yshift=-.75bp, anchor=center, text=labelTextColorK] {\strut \textK};
 \end{scope}
-\begin{scope}[shift={(499, -34)}]
+\begin{scope}[shift={(448, -34)}]
 \fill[color=labelBgColorL, rounded corners=2pt]
 (0, 0) rectangle (29, 14.62708) node[midway, yshift=-.75bp, anchor=center, text=labelTextColorL] {\strut \textL};
 \end{scope}
-\begin{scope}[shift={(277, -34)}]
+\begin{scope}[shift={(355, -34)}]
 \fill[color=labelBgColorM, rounded corners=2pt]
 (0, 0) rectangle (33, 14.62708) node[midway, yshift=-.75bp, anchor=center, text=labelTextColorM] {\strut \textM};
 \end{scope}
@@ -236,36 +236,36 @@ node[anchor=north] {13};
 % dots
 \begin{scope}
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorA] at (170.945946, 0) {};
+fill=dotColorA] at (230.405405, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorB] at (154.054054, 0) {};
+fill=dotColorB] at (150.000000, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorC] at (112.162162, 0) {};
+fill=dotColorC] at (104.729730, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorD] at (403.378378, 0) {};
+fill=dotColorD] at (414.189189, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorE] at (364.189189, 0) {};
+fill=dotColorE] at (338.513514, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorF] at (218.918919, 0) {};
+fill=dotColorF] at (190.540541, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorG] at (365.540541, 0) {};
+fill=dotColorG] at (345.270270, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorH] at (235.135135, 0) {};
+fill=dotColorH] at (204.054054, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorI] at (430.405405, 0) {};
+fill=dotColorI] at (481.081081, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorJ] at (504.729730, 0) {};
+fill=dotColorJ] at (457.432432, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorK] at (147.972973, 0) {};
+fill=dotColorK] at (161.486486, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorL] at (487.162162, 0) {};
+fill=dotColorL] at (431.081081, 0) {};
 \draw node [circle, inner sep=0pt, minimum size=4bp, 
-fill=dotColorM] at (305.405405, 0) {};
+fill=dotColorM] at (391.216216, 0) {};
 \end{scope}
 
 % Critical difference
-\def\posBest{112.1621621621621614}
-\def\posCD{208.5029217817487392}
+\def\posBest{104.7297297297297405}
+\def\posCD{206.2024042396657819}
 \begin{scope}
 \draw (\posBest, 30) -- (\posBest, 20);
 \draw (\posBest, 25) --node[below] {CD} (\posCD, 25);
-- 
cgit v1.2.3

