Here is my code of the chart. I would like to rescale the whole chart so as to properly put it into my presentation slide. I don't know how to rescale it.
\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{arrows,
positioning, % <--- added
shapes}
\usepackage{xparse}% So that we can have two optional parameters
\NewDocumentCommand\DownArrow{O{2.0ex} O{black}}%
{%
\mathrel{\tikz[baseline] \draw [<-, line width=0.5pt, #2] (0,0) -- ++(0,#1);}
}
\begin{document}
\begin{tikzpicture}[
node distance = 3mm and 12mm,
block/.style = {rectangle, draw, rounded corners, text width =15em, align=center},
cloud/.style = {draw, ellipse, aspect=1.2, align=center},]
% Place nodes
\node [block, label={[anchor=east, align=center, xshift=-1em,
font=\small\linespread{0.8}\selectfont,
text=purple]right:
$x_1,\dotsc,x_n$:\\
features\\
variables}
] (init) {\underline{Machine}\\
$f(\vec{x}) = \theta_0 + \theta_1 x_1 + \dotsm + \theta_n x_n$\\[1ex]
$\DownArrow[30pt]$\\[1ex]
$y=\phi\bigl(f(\vec{x})\bigr)$
};
\node [cloud, left=of init] (data)
{\underline{Training data set}\\
dog, cat, pig, etc};
\node [cloud, above right=of init.east] (input)
{\underline{Input}\\
features data $\vec{x}$};
\node [cloud, below right=of init.east] (output)
{\underline{Output}\\
class: $y$};
% Draw edges
\draw[-latex'] (data) -- (init);
\draw[red,-latex'] (input) -- (init.east |- input);
\draw[red,-latex'] (init.east |- output) -- (output);
\end{tikzpicture}
\end{document}

scale=.5as option to tikzpicture? – TeXnician Sep 25 '18 at 11:17