-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroc-curve.tex
37 lines (28 loc) · 993 Bytes
/
roc-curve.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
\RequirePackage{luatex85}
\documentclass{standalone}
\usepackage{fontspec, unicode-math}
\setsansfont[Scale=MatchLowercase]{TeX Gyre Heros}
\setmathfont{TeX Gyre Termes Math}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.14}
\tikzset{
every picture/.style={font={\sffamily\normalsize}, >=stealth},
every pin edge/.style={black}}
\begin{document}
\begin{tikzpicture}
\begin{axis}[%
legend pos=outer north east,
xlabel={False positive rate},
ylabel={True positive rate}]
\addplot[smooth, thick] coordinates {
(0, 0) (0.015, 0.3) (0.05, 0.6) (0.1, 0.8) (0.2, 0.9) (0.4, 0.95) (0.7, 0.985) (1, 1)};
\addlegendentry{ANN}
\addplot[smooth, thick, dotted] coordinates {
(0, 0) (0.03, 0.25) (0.1, 0.45) (0.2, 0.55) (0.5, 0.8) (0.7, 0.9) (0.8, 0.95) (1, 1)};
\addlegendentry{SVM}
\addplot[color=gray, thick, dashed] coordinates {
(0, 0) (1, 1)};
\end{axis}
\end{tikzpicture}
\end{document}