-
Notifications
You must be signed in to change notification settings - Fork 0
/
overfitting.tex
56 lines (49 loc) · 1.77 KB
/
overfitting.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
\RequirePackage{luatex85}
\documentclass{standalone}
\usepackage{fontspec, unicode-math}
\setsansfont[Scale=MatchLowercase]{TeX Gyre Heros}
\setmathfont{TeX Gyre Termes Math}
% https://material.io/design/color/the-color-system.html
\usepackage[svgnames, table]{xcolor}
\definecolor{Black}{HTML}{000000}% D'oh!
\definecolor{White}{HTML}{FFFFFF}% D'oh!
\definecolor{Red}{HTML}{F44336}
\definecolor{Pink}{HTML}{E91E63}
\definecolor{Purple}{HTML}{9C27B0}
\definecolor{DeepPurple}{HTML}{673AB7}
\definecolor{Indigo}{HTML}{3F51B5}
\definecolor{Blue}{HTML}{2196F3}
\definecolor{LightBlue}{HTML}{03A9F4}
\definecolor{Cyan}{HTML}{00BCD4}
\definecolor{Teal}{HTML}{009688}
\definecolor{Green}{HTML}{4CAF50}
\definecolor{LightGreen}{HTML}{8BC34A}
\definecolor{Lime}{HTML}{CDDC39}
\definecolor{Yellow}{HTML}{FFEB3B}
\definecolor{Amber}{HTML}{FFC107}
\definecolor{Orange}{HTML}{FF9800}
\definecolor{DeepOrange}{HTML}{FF5722}
\definecolor{Brown}{HTML}{795548}
\definecolor{Gray}{HTML}{9E9E9E}
\definecolor{BlueGray}{HTML}{607D8B}
\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}[xtick=\empty, ytick=\empty]
\addplot[color=Black, smooth] coordinates {
(-5, 4) (-4, 3.5) (-3, 3.5) (-2.5, 3.25) (-2.5, 3) (-3, 1.75) (-3, 1) (-2.5, 0.5) (-2, 0.25) (-1.5, 1)
(-1, 1.5) (-0.5, 1) (-0.55, 0) (0, -0.5) (0.55, 1) (1, 1.5) (2, 1.5) (2.5, 2) (2.75, 3.5) (3, 4) (4, 4) (5, 4)
};
\addplot[scatter, only marks, point meta=explicit symbolic,
scatter/classes={
a={mark=*, Red},
b={mark=triangle*, Blue}
}] table[meta=label] {fitting.dat};
\end{axis}
\end{tikzpicture}
\end{document}