mirror of
https://github.com/Andreaierardi/Master-DataScience-Notes.git
synced 2024-11-27 06:06:51 +01:00
update ML notes
This commit is contained in:
parent
5fe77a83ae
commit
ca35a90e44
@ -0,0 +1,13 @@
|
||||
@book
|
||||
{
|
||||
AM69,
|
||||
AUTHOR = {Atiyah, M. F. and Macdonald, I. G.},
|
||||
TITLE = {Introduction to commutative algebra},
|
||||
PUBLISHER = {Addison-Wesley Publishing Co., Reading, Mass.-London-Don
|
||||
Mills, Ont.},
|
||||
YEAR = {1969},
|
||||
PAGES = {ix+128},
|
||||
MRCLASS = {13.00},
|
||||
MRNUMBER = {0242802 (39 \#4129)},
|
||||
MRREVIEWER = {J. A. Johnson},
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
\documentclass[tikz]{standalone}
|
||||
\begin{document}
|
||||
\begin{tikzpicture}
|
||||
\draw[shading = ball] (0, 0) circle (2);
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
Binary file not shown.
@ -0,0 +1,7 @@
|
||||
\documentclass[tikz]{standalone}
|
||||
\begin{document}
|
||||
\begin{tikzpicture}
|
||||
\draw[shading = ball] (0, 0) circle (2);
|
||||
\draw[shading = ball] (5, 0) circle (2);
|
||||
\end{tikzpicture}
|
||||
\end{document}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,60 @@
|
||||
\documentclass[a4paper, british]{memoir}
|
||||
|
||||
\usepackage{style} % Custom style
|
||||
\usepackage{mnfrontpage} % Front page
|
||||
\usepackage{kantlipsum} % Dummy text
|
||||
|
||||
\title{Title}
|
||||
\subtitle{Optional Subtitle}
|
||||
\author{First Author \and Second Author}
|
||||
\kind{Report \#17\hfill\the\year} % Optional
|
||||
|
||||
\includeonly
|
||||
{
|
||||
sections/abstract,
|
||||
sections/acknowledgements,
|
||||
sections/introduction,
|
||||
sections/chapter2,
|
||||
sections/chapter3,
|
||||
sections/chapter4,
|
||||
sections/appendixA,
|
||||
sections/appendixB,
|
||||
}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\frontmatter % Folios in Roman numerals, unnumbered chapters.
|
||||
|
||||
\mnfrontpage
|
||||
|
||||
\include{sections/abstract}
|
||||
\include{sections/acknowledgements}
|
||||
|
||||
\cleartorecto
|
||||
\tableofcontents % Or \tableofcontents*
|
||||
\cleartorecto
|
||||
\listoffigures % Or \listoffigures*
|
||||
\cleartorecto
|
||||
\listoftables % Or \listoftables*
|
||||
|
||||
\mainmatter % Folios in Arabic numerals, numbered chapters.
|
||||
|
||||
\include{sections/introduction}
|
||||
|
||||
\part{The First Part}
|
||||
|
||||
\include{sections/chapter2}
|
||||
\include{sections/chapter3}
|
||||
\include{sections/chapter4}
|
||||
|
||||
\appendix % "Chapter" is renamed "Appendix"
|
||||
\appendixpage % Similar to \part*{Appendices}, but appears in TOC.
|
||||
|
||||
\include{sections/appendixA}
|
||||
\include{sections/appendixB}
|
||||
|
||||
\backmatter % Folios in Arabic numerals, unnumbered chapters.
|
||||
|
||||
\printbibliography
|
||||
|
||||
\end{document}
|
@ -0,0 +1,387 @@
|
||||
% Package for creating front pages
|
||||
% Implemented by Martin Helsø (martibhe@math.uio.no).
|
||||
% Version 2015-12-21.
|
||||
|
||||
%% Identification part:
|
||||
|
||||
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
|
||||
|
||||
\ProvidesClass{mnfrontpage}
|
||||
|
||||
%% Standard headers:
|
||||
|
||||
\DeclareOption{american} { \def \MNFP@lang {eng} }
|
||||
\DeclareOption{english} { \def \MNFP@lang {eng} }
|
||||
\DeclareOption{UKenglish}{ \def \MNFP@lang {eng} }
|
||||
\DeclareOption{USenglish}{ \def \MNFP@lang {eng} }
|
||||
\DeclareOption{norsk} { \def \MNFP@lang {bm} }
|
||||
\DeclareOption{nynorsk} { \def \MNFP@lang {nn} }
|
||||
|
||||
%% Department:
|
||||
|
||||
\DeclareOption{MatNat}
|
||||
{
|
||||
\def \MNFP@Dept {mn}
|
||||
\def \MNFP@nr {1}
|
||||
}
|
||||
\DeclareOption{FRM}
|
||||
{
|
||||
\def \MNFP@Dept {frm}
|
||||
\def \MNFP@nr {2}
|
||||
}
|
||||
\DeclareOption{FYS}
|
||||
{
|
||||
\def \MNFP@Dept {fys}
|
||||
\def \MNFP@nr {3}
|
||||
}
|
||||
\DeclareOption{IBV}
|
||||
{
|
||||
\def \MNFP@Dept {ibv}
|
||||
\def \MNFP@nr {4}
|
||||
}
|
||||
\DeclareOption{GEO}
|
||||
{
|
||||
\def \MNFP@Dept {geo}
|
||||
\def \MNFP@nr {5}
|
||||
}
|
||||
\DeclareOption{IFI}
|
||||
{
|
||||
\def \MNFP@Dept {ifi}
|
||||
\def \MNFP@nr {6}
|
||||
}
|
||||
\DeclareOption{AST}
|
||||
{
|
||||
\def \MNFP@Dept {ast}
|
||||
\def \MNFP@nr {7}
|
||||
}
|
||||
\DeclareOption{KJM}
|
||||
{
|
||||
\def \MNFP@Dept {kjm}
|
||||
\def \MNFP@nr {8}
|
||||
}
|
||||
\DeclareOption{MAT}
|
||||
{
|
||||
\def \MNFP@Dept {mat}
|
||||
\def \MNFP@nr {9}
|
||||
}
|
||||
|
||||
%% Background:
|
||||
|
||||
\DeclareOption{1} { \def \MNFP@nr {1} }
|
||||
\DeclareOption{2} { \def \MNFP@nr {2} }
|
||||
\DeclareOption{3} { \def \MNFP@nr {3} }
|
||||
\DeclareOption{4} { \def \MNFP@nr {4} }
|
||||
\DeclareOption{5} { \def \MNFP@nr {5} }
|
||||
\DeclareOption{6} { \def \MNFP@nr {6} }
|
||||
\DeclareOption{7} { \def \MNFP@nr {7} }
|
||||
\DeclareOption{8} { \def \MNFP@nr {8} }
|
||||
\DeclareOption{9} { \def \MNFP@nr {9} }
|
||||
\DeclareOption{10}{ \def \MNFP@nr {10} }
|
||||
|
||||
%% Purpose of document:
|
||||
|
||||
\DeclareOption{web}
|
||||
{
|
||||
\def \MNFP@indent { 0 mm}
|
||||
\def \MNFP@type {web}
|
||||
}
|
||||
\DeclareOption{print}
|
||||
{
|
||||
\def \MNFP@indent { 0 mm}
|
||||
\def \MNFP@type {print}
|
||||
}
|
||||
\DeclareOption{bound}
|
||||
{
|
||||
\def \MNFP@indent {11 mm}
|
||||
\def \MNFP@type {print}
|
||||
}
|
||||
|
||||
|
||||
%% Length of titles:
|
||||
|
||||
\DeclareOption{OrdinaryTitle}
|
||||
{
|
||||
\def \MNFP@title {Ordinary}
|
||||
\def \MNFP@titlesize {\fontsize{32}{35pt}}
|
||||
}
|
||||
\DeclareOption{LongTitle}
|
||||
{
|
||||
\def \MNFP@title {Long}
|
||||
\def \MNFP@titlesize {\fontsize{24}{27pt}}
|
||||
}
|
||||
\DeclareOption{ExtraLongTitle}
|
||||
{
|
||||
\def \MNFP@title {ExtraLong}
|
||||
\def \MNFP@titlesize {\fontsize{17}{20pt}}
|
||||
}
|
||||
|
||||
\DeclareOption{BlankPage} { \def \MNFP@secondpage {blank} }
|
||||
\DeclareOption{OnlyFrontpage}{ \def \MNFP@secondpage {} }
|
||||
|
||||
%% Masther's thesis
|
||||
|
||||
\DeclareOption{compendium}{ \def \MNFP@thesis {} }
|
||||
\DeclareOption{master} { \def \MNFP@thesis {thesis} }
|
||||
|
||||
%% Standard options:
|
||||
|
||||
\ExecuteOptions{english}
|
||||
\ExecuteOptions{MatNat}
|
||||
\ExecuteOptions{web}
|
||||
\ExecuteOptions{OrdinaryTitle}
|
||||
\ExecuteOptions{BlankPage}
|
||||
\ExecuteOptions{compendium}
|
||||
\ProcessOptions\relax
|
||||
|
||||
%% Initial code:
|
||||
|
||||
\RequirePackage[T1]{fontenc}
|
||||
\RequirePackage{calc}
|
||||
\RequirePackage{eso-pic}
|
||||
\RequirePackage{picture}
|
||||
\RequirePackage{xifthen}
|
||||
\RequirePackage{tikz}
|
||||
\RequirePackage{fix-cm}
|
||||
|
||||
\definecolor{bannergrey}{cmyk}{0, 0, 0, 0.3}
|
||||
|
||||
%% The main command:
|
||||
|
||||
\@ifclassloaded{memoir}
|
||||
{
|
||||
\newcommand{\mnfrontpage}
|
||||
{
|
||||
\def \and {\leavevmode\unskip, }
|
||||
\begin{titlingpage}
|
||||
\AddToShipoutPictureBG*{\MNFP@print@background}
|
||||
\AddToShipoutPictureFG*{\MNFP@print@title}
|
||||
\null
|
||||
\end{titlingpage}
|
||||
}
|
||||
}
|
||||
{
|
||||
\newcommand{\mnfrontpage}
|
||||
{
|
||||
\def \and {\leavevmode\unskip, }
|
||||
\begin{titlepage}
|
||||
\AddToShipoutPictureBG*{\MNFP@print@background}
|
||||
\AddToShipoutPictureFG*{\MNFP@print@title}
|
||||
\null
|
||||
\end{titlepage}
|
||||
\ifthenelse{ \equal{\MNFP@secondpage}{blank} }
|
||||
{
|
||||
\MNFP@blankpage
|
||||
}
|
||||
{}
|
||||
}
|
||||
}
|
||||
|
||||
%% Additional commands:
|
||||
|
||||
\newcommand{\subtitle}[1]{ \def \MNFP@subtitle{#1} }
|
||||
\subtitle{}
|
||||
|
||||
\newcommand{\kind}[1]{ \def \MNFP@kind{#1} }
|
||||
\ifthenelse{ \equal{\MNFP@thesis}{thesis} }
|
||||
{
|
||||
%% Define a suitable document kind, like "Master's Thesis, Spring 2016":
|
||||
\kind
|
||||
{
|
||||
\csname MNFP@thesisname@\MNFP@lang\endcsname,~\MNFP@term~\MNFP@year
|
||||
}
|
||||
}
|
||||
{
|
||||
\kind{}
|
||||
}
|
||||
|
||||
%% Include the title page background:
|
||||
|
||||
\newcommand{\MNFP@print@background}
|
||||
{
|
||||
\put(-3 bp, 0 bp)
|
||||
{
|
||||
\includegraphics
|
||||
{mnfrontpage-images/mnfrontpage-bg-\MNFP@type-\MNFP@nr}
|
||||
}
|
||||
|
||||
\put(-3 mm, 142 mm)
|
||||
{
|
||||
\begin{tikzpicture}[scale = 1mm]
|
||||
\filldraw[white, opacity = 0.8]
|
||||
(0, 2.5) rectangle (\paperwidth, 3.73);
|
||||
\filldraw[white, opacity = 0.6]
|
||||
(0, 0) rectangle (\paperwidth, 2.5);
|
||||
\filldraw[bannergrey, opacity = 0.7]
|
||||
(0, 0) rectangle (\paperwidth, 2.5);
|
||||
\end{tikzpicture}
|
||||
}
|
||||
|
||||
\put(25 mm + \MNFP@indent, 25 mm)
|
||||
{
|
||||
\includegraphics[width = 27mm]
|
||||
{mnfrontpage-images/mnfrontpage-apollon}
|
||||
}
|
||||
|
||||
\ifthenelse{ \equal{\MNFP@Dept}{mn} }
|
||||
{
|
||||
\put(22 mm + \MNFP@indent, 220 mm)
|
||||
{
|
||||
\includegraphics[scale = 0.5]
|
||||
{mnfrontpage-images/mnfrontpage-logo-\MNFP@Dept-\MNFP@lang}
|
||||
}
|
||||
}
|
||||
{
|
||||
\put(19 mm + \MNFP@indent, 222 mm)
|
||||
{
|
||||
\includegraphics[scale = 0.6]
|
||||
{mnfrontpage-images/mnfrontpage-logo-\MNFP@Dept-\MNFP@lang}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
%% Include the title, subtitle, author and date:
|
||||
|
||||
\newcommand{\MNFP@print@title}
|
||||
{
|
||||
{
|
||||
\newlength{\MNFPtitlelength}
|
||||
|
||||
\ifthenelse{ \equal{\MNFP@Dept}{mn} }
|
||||
{
|
||||
\def \MNFP@titlepos {41.5 mm}
|
||||
\setlength{\MNFPtitlelength}
|
||||
{\paperwidth - 22 mm - \MNFP@titlepos - \MNFP@indent}
|
||||
}
|
||||
{
|
||||
\def \MNFP@titlepos {42.4 mm}
|
||||
\setlength{\MNFPtitlelength}
|
||||
{\paperwidth - 19 mm - \MNFP@titlepos - \MNFP@indent}
|
||||
}
|
||||
|
||||
\put(\MNFP@titlepos + \MNFP@indent, 141.5 mm)
|
||||
{
|
||||
\vbox to 7.15cm
|
||||
{
|
||||
\hsize = \MNFPtitlelength
|
||||
\raggedright
|
||||
|
||||
% Redefinition of standard \LaTeX command because
|
||||
% the font package 'bera' mangles it!
|
||||
\ifthenelse{ \isundefined{\fveLaTeX} }{}
|
||||
{
|
||||
\DeclareRobustCommand{\mn@LaTeX}
|
||||
{
|
||||
L\kern-.36em
|
||||
{
|
||||
\sbox\z@ T
|
||||
\vbox to\ht\z@
|
||||
{
|
||||
\hbox
|
||||
{
|
||||
\check@mathfonts
|
||||
\fontsize\sf@size\z@
|
||||
\math@fontsfalse\selectfont
|
||||
A
|
||||
}
|
||||
\vss
|
||||
}
|
||||
}
|
||||
\kern-.15em
|
||||
\TeX
|
||||
}
|
||||
\let \LaTeX = \mn@LaTeX
|
||||
}
|
||||
|
||||
\vfill
|
||||
|
||||
\fontfamily{\MNFP@font}
|
||||
\MNFP@titlesize
|
||||
\selectfont
|
||||
\bfseries
|
||||
\@title
|
||||
|
||||
\newlength{\MNFP@titlelength}
|
||||
\settowidth{\MNFP@titlelength}{\@title}
|
||||
|
||||
\ifthenelse
|
||||
{
|
||||
\equal{\MNFP@title}{Ordinary}
|
||||
\AND
|
||||
\lengthtest{\MNFP@titlelength < \hsize}
|
||||
}
|
||||
{
|
||||
\def \MNFP@skip{2.5 em}
|
||||
}
|
||||
{
|
||||
\def \MNFP@skip{1.5 em}
|
||||
}
|
||||
|
||||
\vskip 0.5ex
|
||||
|
||||
\normalfont
|
||||
\fontfamily{\MNFP@font}
|
||||
\fontsize{17}{20pt}
|
||||
\selectfont
|
||||
\MNFP@subtitle
|
||||
|
||||
\vskip \MNFP@skip
|
||||
|
||||
{
|
||||
\bfseries
|
||||
\ifdefined\authors
|
||||
\authors
|
||||
\else
|
||||
\@author
|
||||
\fi
|
||||
}
|
||||
\\[0.1ex]
|
||||
\MNFP@kind
|
||||
|
||||
\vfill
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
%% Find the best font:
|
||||
|
||||
\newcommand{\MNFP@font}{phv} % Helvetica is always available, but use
|
||||
\IfFileExists{t1ua1.fd}{\renewcommand{\MNFP@font}{ua1}}{} % Arial if possible.
|
||||
|
||||
%% Determine the term (as in "Spring 2016"):
|
||||
|
||||
\newcounter{MNFP@cur@year}
|
||||
\newcounter{MNFP@cur@month}
|
||||
\setcounter{MNFP@cur@year} { \the\year }
|
||||
\setcounter{MNFP@cur@month}{ \the\month }
|
||||
|
||||
\ifthenelse{ \theMNFP@cur@month < 7 }
|
||||
{
|
||||
\newcommand{\MNFP@term@eng}{Spring}
|
||||
\newcommand{\MNFP@term@bm} {v\aa ren}
|
||||
\newcommand{\MNFP@term@nn} {v\aa ren}
|
||||
}
|
||||
{
|
||||
\newcommand{\MNFP@term@eng}{Autumn}
|
||||
\newcommand{\MNFP@term@bm} {h\o sten}
|
||||
\newcommand{\MNFP@term@nn} {hausten}
|
||||
}
|
||||
|
||||
\newcommand{\MNFP@term}{ \csname MNFP@term@\MNFP@lang\endcsname }
|
||||
\newcommand{\MNFP@year}{ \arabic{MNFP@cur@year} }
|
||||
|
||||
%% Specify "Master's Thesis" in the correct language:
|
||||
|
||||
\newcommand{\MNFP@thesisname@eng}{Master's Thesis}
|
||||
\newcommand{\MNFP@thesisname@bm} {Masteroppgave}
|
||||
\newcommand{\MNFP@thesisname@nn} {Masteroppg\aa ve}
|
||||
|
||||
\newcommand{\MNFP@blankpage}
|
||||
{
|
||||
\thispagestyle{empty}
|
||||
\null
|
||||
\newpage
|
||||
}
|
||||
|
||||
\endinput
|
@ -0,0 +1,3 @@
|
||||
\chapter{Abstract}
|
||||
\kant[1] % Dummy text
|
||||
\todo[inline]{Add new section about results in \cref{sec:fourth}.}
|
@ -0,0 +1,5 @@
|
||||
\chapter{Acknowledgements}
|
||||
|
||||
\kant[2] % Dummy text
|
||||
\todo[noline]{Rewrite this.}
|
||||
\kant[3] % Dummy text
|
@ -0,0 +1,7 @@
|
||||
\chapter{The First Appendix}
|
||||
\label{sec:first-app}
|
||||
\kant[20-21] % Dummy text
|
||||
\section{First Section}
|
||||
\kant[22] % Dummy text
|
||||
\section{Second Section}
|
||||
\kant[23-24] % Dummy text
|
@ -0,0 +1,3 @@
|
||||
\chapter{The Second Appendix}
|
||||
\label{sec:second-app}
|
||||
\kant[25-29] % Dummy text
|
@ -0,0 +1,14 @@
|
||||
\chapter{The Second Chapter}
|
||||
\label{sec:second}
|
||||
|
||||
\kant[7-11] % Dummy text
|
||||
|
||||
\begin{theorem}[{\cite[95]{AM69}}]
|
||||
\label{thm:dedekind}
|
||||
Let \( A \) be a Noetherian domain of dimension one. Then the following are equivalent:
|
||||
\begin{enumerate}
|
||||
\item \( A \) is integrally closed;
|
||||
\item Every primary ideal in \( A \) is a prime power;
|
||||
\item Every local ring \( A_\mathfrak{p} \) \( (\mathfrak{p} \neq 0) \) is a discrete valuation ring.
|
||||
\end{enumerate}
|
||||
\end{theorem}
|
@ -0,0 +1,7 @@
|
||||
\chapter{The Third Chapter}
|
||||
\label{sec:third}
|
||||
\kant[12-13] % Dummy text
|
||||
\section{First Section}
|
||||
\kant[14] % Dummy text
|
||||
\section{Second Section}
|
||||
\kant[15] % Dummy text
|
@ -0,0 +1,3 @@
|
||||
\chapter{The Fourth Chapter}
|
||||
\label{sec:fourth}
|
||||
\kant[15-19] % Dummy text
|
@ -0,0 +1,141 @@
|
||||
\chapter{Introduction}
|
||||
\label{sec:intro}
|
||||
|
||||
\kant[4] % Dummy text
|
||||
|
||||
\begin{equation}
|
||||
\iint_D \diff x \diff y
|
||||
=
|
||||
\int_0^{2\pi} \int_0^t \rho \diff \rho \diff t
|
||||
=
|
||||
\frac{4}{3} \pi^3.
|
||||
\end{equation}
|
||||
|
||||
\section{Figures and Tables}
|
||||
|
||||
% Standalone with \input:
|
||||
\begin{figure}[htbp]
|
||||
\centering
|
||||
\input{figures/ball}
|
||||
\caption[One ball]{One ball.}
|
||||
\end{figure}
|
||||
|
||||
% Standalone with \includegraphics:
|
||||
\begin{figure}[thbp]
|
||||
\centering
|
||||
\includegraphics{balls}
|
||||
\caption[Two balls]{Two balls.}
|
||||
\end{figure}
|
||||
|
||||
% Todonotes:
|
||||
\begin{figure}[hbp]
|
||||
\centering
|
||||
\missingfigure{Three balls.}
|
||||
\caption[Three balls]{Three balls.}
|
||||
\end{figure}
|
||||
|
||||
\kant[5-6] % Dummy text
|
||||
|
||||
% Booktabs:
|
||||
\begin{table}[htbp]
|
||||
\centering
|
||||
\begin{tabular}{@{}ll@{}}
|
||||
\toprule
|
||||
\textbf{Correct} & \textbf{Incorrect} \\
|
||||
\midrule
|
||||
\( \varphi \colon X \to Y \) & \( \varphi : X \to Y \) \\[0.5ex]
|
||||
\( \varphi(x) \coloneqq x^2 \) & \( \varphi(x) := x^2 \) \\
|
||||
\bottomrule
|
||||
\end{tabular}
|
||||
\caption[Colons]{Proper colon usage.}
|
||||
\end{table}
|
||||
|
||||
\begin{table}[htbp]
|
||||
\centering
|
||||
\begin{tabular}{@{}ll@{}}
|
||||
\toprule
|
||||
\textbf{Correct} & \textbf{Incorrect} \\
|
||||
\midrule
|
||||
\( A \implies B \) & \( A \Rightarrow B \) \\
|
||||
\( A \impliedby B \) & \( A \Leftarrow B \) \\
|
||||
\( A \iff B \) & \( A \Leftrightarrow B \) \\
|
||||
\bottomrule
|
||||
\end{tabular}
|
||||
\caption[Arrows]{Proper arrow usage.}
|
||||
\end{table}
|
||||
|
||||
% Tablefootnote and multirow:
|
||||
\begin{table}[htbp]
|
||||
\centering
|
||||
\begin{tabular}{@{}ll@{}}
|
||||
\toprule
|
||||
\textbf{Correct}
|
||||
&
|
||||
\textbf{Incorrect}
|
||||
\\
|
||||
\midrule
|
||||
\( -1 \)
|
||||
&
|
||||
-1
|
||||
\\[0.3ex]
|
||||
1--10
|
||||
&
|
||||
1-10
|
||||
\\[0.3ex]
|
||||
Birch--Swinnerton-Dyer\tablefootnote{It is now easy to tell that Birch and Swinnerton-Dyer are two people.} conjecture
|
||||
&
|
||||
Birch-Swinnerton-Dyer conjecture
|
||||
\\[0.3ex]
|
||||
The ball \dash which is blue \dash is round.
|
||||
&
|
||||
\multirow{ 2}{*}{The ball - which is blue - is round.}
|
||||
\\[0.3ex]
|
||||
The ball---which is blue---is round.
|
||||
&
|
||||
\\
|
||||
\bottomrule
|
||||
\end{tabular}
|
||||
\caption[Dashes]{Proper dash usage.}
|
||||
\end{table}
|
||||
|
||||
\begin{table}[hbtp]
|
||||
\centering
|
||||
\begin{tabular}{@{}*{2}{p{0.5\textwidth}}@{}}
|
||||
\toprule
|
||||
\textbf{Correct} & \textbf{Incorrect}
|
||||
\\
|
||||
\midrule
|
||||
\enquote{This is an \enquote{inner quote} inside an outer quote}
|
||||
&
|
||||
'This is an "inner quote" inside an outer quote'
|
||||
\\
|
||||
\bottomrule
|
||||
\end{tabular}
|
||||
\caption[Quotation marks]
|
||||
{Proper quotation mark usage.
|
||||
The \texttt{\textbackslash enquote} command chooses the correct
|
||||
quotation marks for the specified language.}
|
||||
\end{table}
|
||||
|
||||
\section{Outline}
|
||||
|
||||
The rest of the text is organised as follows:
|
||||
\begin{description}
|
||||
\item[\cref{sec:second}]
|
||||
is second to none, with the notable exception of \cref{sec:intro}.
|
||||
The main tool introduced here is the employment of unintelligible sentences.
|
||||
|
||||
\item[\cref{sec:third}]
|
||||
asserts the basic properties of being the third chapter of a text.
|
||||
This section reveals the shocking truth of filler content.
|
||||
|
||||
\item[\cref{sec:fourth}]
|
||||
demonstrates how easily one can get to four chapters by simply using the \texttt{kantlipsum} package to generate dummy words.
|
||||
|
||||
\item[\cref{sec:first-app}]
|
||||
features additional material for the specially interested.
|
||||
|
||||
\item[\cref{sec:second-app}]
|
||||
consists of results best relegated to the back of the document,
|
||||
ensuring that nobody will ever read it.
|
||||
\end{description}
|
@ -0,0 +1,320 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
|
||||
|
||||
\ProvidesPackage{style}[2019/06/27 Custom LaTeX style]
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PACKAGES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
|
||||
%% Silence warning about obsolete package
|
||||
\RequirePackage{silence}
|
||||
\WarningFilter{remreset}{The remreset package}
|
||||
|
||||
|
||||
%% Standalone
|
||||
\RequirePackage{standalone}
|
||||
|
||||
|
||||
%% Encoding
|
||||
\RequirePackage[utf8]{inputenx}
|
||||
\RequirePackage[T1]{fontenc}
|
||||
|
||||
|
||||
%% Fonts and typography
|
||||
\RequirePackage{lmodern} % Latin Modern
|
||||
\renewcommand{\sfdefault}{phv} % Helvetica
|
||||
\RequirePackage[scaled]{beramono} % Bera Mono (Bitstream Vera Sans Mono)
|
||||
\RequirePackage[final]{microtype} % Improved typography
|
||||
\pretolerance = 1000 % Relaxes parameters for line breaks
|
||||
\tolerance = 2000 % Relaxes parameters for line breaks
|
||||
\setlength{\emergencystretch}{1em} % Relaxes parameters for line breaks
|
||||
\RequirePackage{siunitx} % Typesetting units
|
||||
\RequirePackage{listings} % Typesetting code
|
||||
\lstset
|
||||
{
|
||||
basicstyle = \ttfamily\footnotesize,
|
||||
commentstyle = \color{gray},
|
||||
stringstyle = \itshape,
|
||||
showstringspaces = false,
|
||||
frame = tb
|
||||
}
|
||||
\RequirePackage[obeyspaces,
|
||||
spaces,
|
||||
hyphens]{url} % Typesetting URLs
|
||||
\urlstyle{sf}
|
||||
|
||||
|
||||
%% Mathematics
|
||||
\RequirePackage{amssymb} % Extra symbols
|
||||
\RequirePackage{amsthm} % Theorem-like environments
|
||||
\RequirePackage{thmtools} % Theorem-like environments, extends amsthm
|
||||
\RequirePackage{mathtools} % Fonts and environments for mathematical formulae
|
||||
\RequirePackage{mathrsfs} % Script font with \mathscr{}
|
||||
\RequirePackage{dsfont} % Double stroke font with \mathds{}
|
||||
\RequirePackage{cancel} % Cancel terms with \cancel, \bcancel or \xcancel
|
||||
\RequirePackage{stmaryrd} % Brackets
|
||||
\everymath
|
||||
{
|
||||
\ifodd\value{page} % Allow multiline equations
|
||||
\allowdisplaybreaks[1] % to break across two pages:
|
||||
\else % - Breaks from odd to even pages are allowed,
|
||||
\allowdisplaybreaks[4] % but discouraged.
|
||||
\fi % - Breaks from even to odd pages are allowed.
|
||||
}
|
||||
|
||||
|
||||
%% Language
|
||||
\RequirePackage{babel}
|
||||
\RequirePackage{csquotes}
|
||||
|
||||
|
||||
%% Graphics
|
||||
\RequirePackage[dvipsnames,
|
||||
svgnames,
|
||||
cmyk]{xcolor} % Pre-defined colors
|
||||
\RequirePackage{graphicx} % Tool for importing images
|
||||
\graphicspath{{figures/}}
|
||||
\RequirePackage{tikz} % Drawing tool
|
||||
\usetikzlibrary{calc}
|
||||
\usetikzlibrary{intersections}
|
||||
\usetikzlibrary{decorations.markings}
|
||||
|
||||
|
||||
%% Organising tools
|
||||
\RequirePackage{etoolbox} % Hooks
|
||||
\RequirePackage{pgffor} % For-loops
|
||||
\RequirePackage{comment} % Multiline comments
|
||||
\RequirePackage[notref, notcite]{showkeys} % Labels in margins
|
||||
\renewcommand{\showkeyslabelformat}[1]
|
||||
{
|
||||
\fbox
|
||||
{
|
||||
\parbox[t]{0.6\marginparwidth}
|
||||
{
|
||||
\centering\normalfont\footnotesize\ttfamily
|
||||
\path{#1}
|
||||
}
|
||||
}
|
||||
}
|
||||
\RequirePackage[obeyFinal,
|
||||
color = LightGray,
|
||||
bordercolor = LightGray,
|
||||
textsize = footnotesize,
|
||||
figwidth = 0.99\linewidth]{todonotes} % Marginal notes
|
||||
|
||||
|
||||
%% Lists
|
||||
\RequirePackage{enumitem}
|
||||
\setlist[itemize] {font = \upshape, before = \leavevmode}
|
||||
\setlist[enumerate] {font = \upshape, before = \leavevmode}
|
||||
\setlist[description]{font = \bfseries\sffamily, before = \leavevmode}
|
||||
\foreach \env in {theorem, corollary, lemma, proposition, observation,
|
||||
conjecture, definition, example, notation, remark}
|
||||
{
|
||||
\AtBeginEnvironment{\env}
|
||||
{
|
||||
\setlist[enumerate, 1]{wide,
|
||||
label = \thetheorem.\arabic{*}.,
|
||||
ref = \thetheorem.\arabic{*}}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
%% Miscellaneous
|
||||
\RequirePackage{xspace} % Clever space
|
||||
\RequirePackage{textcomp} % Extra symbols
|
||||
\RequirePackage{multirow} % Rows spanning multiple lines in tables
|
||||
\RequirePackage{tablefootnote} % Footnotes for tables
|
||||
|
||||
|
||||
%% Bibliography
|
||||
\RequirePackage{mathscinet}
|
||||
\RequirePackage[backend = biber,
|
||||
sortcites = true,
|
||||
giveninits = true,
|
||||
doi = false,
|
||||
isbn = false,
|
||||
url = false,
|
||||
style = alphabetic]{biblatex}
|
||||
\DeclareNameAlias{sortname}{family-given}
|
||||
\DeclareNameAlias{default}{family-given}
|
||||
\DeclareFieldFormat[article]{volume}{\bibstring{jourvol}\addnbspace#1}
|
||||
\DeclareFieldFormat[article]{number}{\bibstring{number}\addnbspace#1}
|
||||
\renewbibmacro*{volume+number+eid}
|
||||
{
|
||||
\printfield{volume}
|
||||
\setunit{\addcomma\space}
|
||||
\printfield{number}
|
||||
\setunit{\addcomma\space}
|
||||
\printfield{eid}
|
||||
}
|
||||
\addbibresource{bibliography.bib}
|
||||
|
||||
|
||||
%% Cross references
|
||||
\RequirePackage{varioref}
|
||||
\RequirePackage[pdfusetitle]{hyperref}
|
||||
\RequirePackage[nameinlink, capitalize, noabbrev]{cleveref}
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% MEMOIR SETTINGS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
|
||||
%% Title page
|
||||
\pretitle{\begin{center}\huge\sffamily\bfseries\boldmath}
|
||||
|
||||
|
||||
%% Book
|
||||
\renewcommand*{\printbooktitle}[1]
|
||||
{
|
||||
\hrule\vskip\onelineskip
|
||||
\centering\booktitlefont #1
|
||||
\vskip\onelineskip\hrule
|
||||
}
|
||||
\renewcommand*{\afterbookskip}{\par}
|
||||
\renewcommand*{\booktitlefont}{\Huge\bfseries\boldmath\sffamily}
|
||||
\renewcommand*{\booknamefont}{\normalfont\huge\bfseries\MakeUppercase}
|
||||
|
||||
|
||||
%% Part
|
||||
\renewcommand*{\printparttitle}[1]
|
||||
{
|
||||
\hrule\vskip\onelineskip
|
||||
\centering\parttitlefont #1
|
||||
\vskip\onelineskip\hrule
|
||||
}
|
||||
\renewcommand*{\afterpartskip}{\par}
|
||||
\renewcommand*{\parttitlefont}{\Huge\bfseries\boldmath\sffamily}
|
||||
\renewcommand*{\partnamefont}{\normalfont\huge\bfseries\MakeUppercase}
|
||||
|
||||
|
||||
%% Chapter
|
||||
\chapterstyle{demo2}
|
||||
\renewcommand*{\printchaptername}
|
||||
{
|
||||
\centering\chapnamefont\MakeUppercase{\@chapapp}
|
||||
}
|
||||
\renewcommand*{\printchapternum}{\chapnumfont\thechapter\space}
|
||||
\renewcommand*{\chaptitlefont}{\Huge\bfseries\boldmath\sffamily\center}
|
||||
|
||||
|
||||
%% Lower level sections
|
||||
\setsecheadstyle{\Large\bfseries\boldmath\sffamily\raggedright}
|
||||
\setsubsecheadstyle{\large\bfseries\boldmath\sffamily\raggedright}
|
||||
\setsubsubsecheadstyle{\normalsize\bfseries\boldmath\sffamily\raggedright}
|
||||
\setparaheadstyle{\normalsize\bfseries\boldmath\sffamily\raggedright}
|
||||
\setsubparaheadstyle{\normalsize\bfseries\boldmath\sffamily\raggedright}
|
||||
|
||||
|
||||
%% Abstract
|
||||
\renewcommand{\abstractnamefont}{\sffamily\bfseries}
|
||||
\renewcommand{\abstracttextfont}{\normalfont\small\noindent\ignorespaces}
|
||||
|
||||
|
||||
%% Table of contents
|
||||
\setrmarg{3em}
|
||||
\setpnumwidth{2em}
|
||||
\addtolength{\cftbooknumwidth}{0.5em}
|
||||
\addtolength{\cftpartnumwidth}{0.5em}
|
||||
\addtolength{\cftchapternumwidth}{0.5em}
|
||||
\addtolength{\cftsectionindent}{0.5em}
|
||||
\addtolength{\cftsubsectionindent}{0.5em}
|
||||
\addtolength{\cftsubsubsectionindent}{0.5em}
|
||||
\addtolength{\cftparagraphindent}{0.5em}
|
||||
\addtolength{\cftsubparagraphindent}{0.5em}
|
||||
\renewcommand{\cftchapteraftersnumb}{\bfseries\boldmath}
|
||||
|
||||
|
||||
%% Header and footer
|
||||
\pagestyle{ruled}
|
||||
\makeevenhead{ruled}{\sffamily\leftmark}{}{}
|
||||
\makeoddhead {ruled}{}{}{\sffamily\rightmark}
|
||||
\makeevenfoot{ruled}{\sffamily\thepage}{}{}
|
||||
\makeoddfoot{ruled}{}{}{\sffamily\thepage}
|
||||
|
||||
\makepagestyle{chapter}
|
||||
\makeevenfoot{chapter}{\sffamily\thepage}{}{}
|
||||
\makeoddfoot{chapter}{}{}{\sffamily\thepage}
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%% USER-DEFINED MACROS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
|
||||
%% Environments
|
||||
\declaretheoremstyle[headfont = \bfseries\sffamily,
|
||||
notefont = \normalfont,
|
||||
bodyfont = \itshape,
|
||||
spaceabove = 6pt,
|
||||
spacebelow = 6pt]{plain}
|
||||
\declaretheoremstyle[headfont = \bfseries\sffamily,
|
||||
notefont = \normalfont,
|
||||
spaceabove = 6pt,
|
||||
spacebelow = 6pt]{definition}
|
||||
\declaretheorem[style = plain, numberwithin = section]{theorem}
|
||||
\declaretheorem[style = plain, sibling = theorem]{corollary}
|
||||
\declaretheorem[style = plain, sibling = theorem]{lemma}
|
||||
\declaretheorem[style = plain, sibling = theorem]{proposition}
|
||||
\declaretheorem[style = plain, sibling = theorem]{observation}
|
||||
\declaretheorem[style = plain, sibling = theorem]{conjecture}
|
||||
\declaretheorem[style = definition, sibling = theorem]{definition}
|
||||
\declaretheorem[style = definition, sibling = theorem]{example}
|
||||
\declaretheorem[style = definition, sibling = theorem]{notation}
|
||||
\declaretheorem[style = remark, sibling = theorem]{remark}
|
||||
\crefname{observation}{Observation}{Observations}
|
||||
\Crefname{observation}{Observation}{Observations}
|
||||
\crefname{conjecture}{Conjecture}{Conjectures}
|
||||
\Crefname{conjecture}{Conjecture}{Conjectures}
|
||||
\crefname{notation}{Notation}{Notations}
|
||||
\Crefname{notation}{Notation}{Notations}
|
||||
|
||||
|
||||
%% Operators
|
||||
\newcommand{\diff}{\mathop{}\!\mathrm{d}}
|
||||
\renewcommand{\Re}{\operatorname{Re}}
|
||||
\renewcommand{\Im}{\operatorname{Im}}
|
||||
\DeclareMathOperator{\im}{im}
|
||||
\DeclareMathOperator{\rank}{rank}
|
||||
|
||||
|
||||
%% Delimiters
|
||||
\DeclarePairedDelimiter{\p}{\lparen}{\rparen} % Parenthesis
|
||||
\DeclarePairedDelimiter{\set}{\lbrace}{\rbrace} % Set
|
||||
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert} % Absolute value
|
||||
\DeclarePairedDelimiter{\norm}{\lVert}{\rVert} % Norm
|
||||
\DeclarePairedDelimiter{\ip}{\langle}{\rangle} % Inner product, ideal
|
||||
\DeclarePairedDelimiter{\sqb}{\lbrack}{\rbrack} % Square brackets
|
||||
\DeclarePairedDelimiter{\ssqb}{\llbracket}{\rrbracket} % Double brackets
|
||||
\DeclarePairedDelimiter{\ceil}{\lceil}{\rceil} % Ceiling
|
||||
\DeclarePairedDelimiter{\floor}{\lfloor}{\rfloor} % Floor
|
||||
|
||||
|
||||
%% Blackboard bold
|
||||
\newcommand{\N}{\mathbb{N}} % Natural numbers
|
||||
\newcommand{\Z}{\mathbb{Z}} % Integers
|
||||
\newcommand{\Q}{\mathbb{Q}} % Rational numbers
|
||||
\newcommand{\R}{\mathbb{R}} % Real numbers
|
||||
\newcommand{\C}{\mathbb{C}} % Complex numbers
|
||||
\newcommand{\A}{\mathbb{A}} % Affine space
|
||||
\renewcommand{\P}{\mathbb{P}} % Projective space
|
||||
|
||||
|
||||
%% Bold face
|
||||
\renewcommand{\a}{\mathbf{a}}
|
||||
\renewcommand{\b}{\mathbf{b}}
|
||||
\newcommand{\x}{\mathbf{x}}
|
||||
\newcommand{\y}{\mathbf{y}}
|
||||
\newcommand{\0}{\mathbf{0}}
|
||||
\newcommand{\1}{\mathbf{1}}
|
||||
|
||||
|
||||
%% Miscellaneous
|
||||
\renewcommand{\qedsymbol}{\(\blacksquare\)}
|
||||
\newcommand{\ie}{\leavevmode\unskip, i.e.,\xspace}
|
||||
\newcommand{\eg}{\leavevmode\unskip, e.g.,\xspace}
|
||||
\newcommand{\dash}{\textthreequartersemdash\xspace}
|
||||
\newcommand{\TikZ}{Ti\textit{k}Z\xspace}
|
||||
\newcommand{\matlab}{\textsc{Matlab}\xspace}
|
||||
|
||||
|
||||
\endinput
|
@ -0,0 +1,7 @@
|
||||
@Booklet{Gil:02,
|
||||
author = {Joseph (Yossi) Gil},
|
||||
TITLE = {{\LaTeXe} for Graduate Students},
|
||||
year = {2002},
|
||||
howpublished = {manuscript},
|
||||
address = {Haifa, Israel},
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
\relax
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {1}Lecture 1 - 09-03-2020}{1}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {1.1}Introduction}{1}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {paragraph}{Outline}{3}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {2}Lecture 10 - 07-04-2020}{4}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}TO BE DEFINE}{4}\protected@file@percent }
|
||||
\citation{Gil:02}
|
||||
\bibstyle{abbrv}
|
||||
\bibdata{main}
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {3}Previous work}{6}\protected@file@percent }
|
||||
\newlabel{previous work}{{3}{6}}
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {4}Results}{6}\protected@file@percent }
|
||||
\newlabel{results}{{4}{6}}
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {5}Conclusions}{6}\protected@file@percent }
|
||||
\newlabel{conclusions}{{5}{6}}
|
Binary file not shown.
@ -0,0 +1,264 @@
|
||||
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 2.9.7380 64-bit) (preloaded format=latex 2020.4.11) 11 APR 2020 23:48
|
||||
entering extended mode
|
||||
**./main.tex
|
||||
(main.tex
|
||||
LaTeX2e <2020-02-02> patch level 5
|
||||
L3 programming layer <2020-04-06>
|
||||
("C:\Program Files\MiKTeX 2.9\tex/latex/base\article.cls"
|
||||
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
|
||||
("C:\Program Files\MiKTeX 2.9\tex/latex/base\size12.clo"
|
||||
File: size12.clo 2019/12/20 v1.4l Standard LaTeX file (size option)
|
||||
)
|
||||
\c@part=\count167
|
||||
\c@section=\count168
|
||||
\c@subsection=\count169
|
||||
\c@subsubsection=\count170
|
||||
\c@paragraph=\count171
|
||||
\c@subparagraph=\count172
|
||||
\c@figure=\count173
|
||||
\c@table=\count174
|
||||
\abovecaptionskip=\skip47
|
||||
\belowcaptionskip=\skip48
|
||||
\bibindent=\dimen134
|
||||
)
|
||||
("C:\Program Files\MiKTeX 2.9\tex/latex/amsmath\amsmath.sty"
|
||||
Package: amsmath 2020/01/20 v2.17e AMS math features
|
||||
\@mathmargin=\skip49
|
||||
|
||||
For additional information on amsmath, use the `?' option.
|
||||
("C:\Program Files\MiKTeX 2.9\tex/latex/amsmath\amstext.sty"
|
||||
Package: amstext 2000/06/29 v2.01 AMS text
|
||||
|
||||
("C:\Program Files\MiKTeX 2.9\tex/latex/amsmath\amsgen.sty"
|
||||
File: amsgen.sty 1999/11/30 v2.0 generic functions
|
||||
\@emptytoks=\toks15
|
||||
\ex@=\dimen135
|
||||
))
|
||||
("C:\Program Files\MiKTeX 2.9\tex/latex/amsmath\amsbsy.sty"
|
||||
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
|
||||
\pmbraise@=\dimen136
|
||||
)
|
||||
("C:\Program Files\MiKTeX 2.9\tex/latex/amsmath\amsopn.sty"
|
||||
Package: amsopn 2016/03/08 v2.02 operator names
|
||||
)
|
||||
\inf@bad=\count175
|
||||
LaTeX Info: Redefining \frac on input line 227.
|
||||
\uproot@=\count176
|
||||
\leftroot@=\count177
|
||||
LaTeX Info: Redefining \overline on input line 389.
|
||||
\classnum@=\count178
|
||||
\DOTSCASE@=\count179
|
||||
LaTeX Info: Redefining \ldots on input line 486.
|
||||
LaTeX Info: Redefining \dots on input line 489.
|
||||
LaTeX Info: Redefining \cdots on input line 610.
|
||||
\Mathstrutbox@=\box45
|
||||
\strutbox@=\box46
|
||||
\big@size=\dimen137
|
||||
LaTeX Font Info: Redeclaring font encoding OML on input line 733.
|
||||
LaTeX Font Info: Redeclaring font encoding OMS on input line 734.
|
||||
\macc@depth=\count180
|
||||
\c@MaxMatrixCols=\count181
|
||||
\dotsspace@=\muskip16
|
||||
\c@parentequation=\count182
|
||||
\dspbrk@lvl=\count183
|
||||
\tag@help=\toks16
|
||||
\row@=\count184
|
||||
\column@=\count185
|
||||
\maxfields@=\count186
|
||||
\andhelp@=\toks17
|
||||
\eqnshift@=\dimen138
|
||||
\alignsep@=\dimen139
|
||||
\tagshift@=\dimen140
|
||||
\tagwidth@=\dimen141
|
||||
\totwidth@=\dimen142
|
||||
\lineht@=\dimen143
|
||||
\@envbody=\toks18
|
||||
\multlinegap=\skip50
|
||||
\multlinetaggap=\skip51
|
||||
\mathdisplay@stack=\toks19
|
||||
LaTeX Info: Redefining \[ on input line 2859.
|
||||
LaTeX Info: Redefining \] on input line 2860.
|
||||
)
|
||||
("C:\Program Files\MiKTeX 2.9\tex/latex/systeme\systeme.sty"
|
||||
("C:\Program Files\MiKTeX 2.9\tex/latex/xstring\xstring.sty"
|
||||
("C:\Program Files\MiKTeX 2.9\tex/generic/xstring\xstring.tex"
|
||||
\integerpart=\count187
|
||||
\decimalpart=\count188
|
||||
)
|
||||
Package: xstring 2019/02/06 v1.83 String manipulations (CT)
|
||||
)
|
||||
("C:\Program Files\MiKTeX 2.9\tex/generic/systeme\systeme.tex"
|
||||
\SYS_systemecode=\toks20
|
||||
\SYS_systempreamble=\toks21
|
||||
\SYSeqnum=\count189
|
||||
)
|
||||
Package: systeme 2019/01/13 v0.32 Mise en forme de systemes d'equations (CT)
|
||||
)
|
||||
("C:\Program Files\MiKTeX 2.9\tex/latex/amsfonts\amssymb.sty"
|
||||
Package: amssymb 2013/01/14 v3.01 AMS font symbols
|
||||
|
||||
("C:\Program Files\MiKTeX 2.9\tex/latex/amsfonts\amsfonts.sty"
|
||||
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
|
||||
\symAMSa=\mathgroup4
|
||||
\symAMSb=\mathgroup5
|
||||
LaTeX Font Info: Redeclaring math symbol \hbar on input line 98.
|
||||
LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold'
|
||||
(Font) U/euf/m/n --> U/euf/b/n on input line 106.
|
||||
))
|
||||
("C:\Program Files\MiKTeX 2.9\tex/latex/l3backend\l3backend-dvips.def"
|
||||
File: l3backend-dvips.def 2020-03-12 L3 backend support: dvips
|
||||
\l__pdf_internal_box=\box47
|
||||
\g__pdf_backend_object_int=\count190
|
||||
\l__pdf_backend_content_box=\box48
|
||||
\l__pdf_backend_model_box=\box49
|
||||
\g__pdf_backend_annotation_int=\count191
|
||||
\g__pdf_backend_link_int=\count192
|
||||
\g__pdf_backend_link_sf_int=\count193
|
||||
)
|
||||
(main.aux)
|
||||
\openout1 = `main.aux'.
|
||||
|
||||
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 16.
|
||||
LaTeX Font Info: ... okay on input line 16.
|
||||
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 16.
|
||||
LaTeX Font Info: ... okay on input line 16.
|
||||
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 16.
|
||||
LaTeX Font Info: ... okay on input line 16.
|
||||
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 16.
|
||||
LaTeX Font Info: ... okay on input line 16.
|
||||
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 16.
|
||||
LaTeX Font Info: ... okay on input line 16.
|
||||
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 16.
|
||||
LaTeX Font Info: ... okay on input line 16.
|
||||
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 16.
|
||||
LaTeX Font Info: ... okay on input line 16.
|
||||
LaTeX Font Info: Trying to load font information for U+msa on input line 17.
|
||||
|
||||
("C:\Program Files\MiKTeX 2.9\tex/latex/amsfonts\umsa.fd"
|
||||
File: umsa.fd 2013/01/14 v3.01 AMS symbols A
|
||||
)
|
||||
LaTeX Font Info: Trying to load font information for U+msb on input line 17.
|
||||
|
||||
|
||||
("C:\Program Files\MiKTeX 2.9\tex/latex/amsfonts\umsb.fd"
|
||||
File: umsb.fd 2013/01/14 v3.01 AMS symbols B
|
||||
)
|
||||
Underfull \hbox (badness 10000) in paragraph at lines 29--116
|
||||
|
||||
[]
|
||||
|
||||
|
||||
Underfull \hbox (badness 10000) in paragraph at lines 29--116
|
||||
|
||||
[]
|
||||
|
||||
[1
|
||||
|
||||
] [2]
|
||||
Underfull \hbox (badness 10000) in paragraph at lines 119--157
|
||||
|
||||
[]
|
||||
|
||||
|
||||
Underfull \hbox (badness 10000) in paragraph at lines 119--157
|
||||
|
||||
[]
|
||||
|
||||
|
||||
Underfull \hbox (badness 10000) in paragraph at lines 119--157
|
||||
|
||||
[]
|
||||
|
||||
|
||||
LaTeX Font Warning: Command \small invalid in math mode on input line 172.
|
||||
|
||||
|
||||
Underfull \hbox (badness 10000) in paragraph at lines 170--187
|
||||
|
||||
[]
|
||||
|
||||
|
||||
Underfull \hbox (badness 10000) in paragraph at lines 170--187
|
||||
|
||||
[]
|
||||
|
||||
[3]
|
||||
Underfull \hbox (badness 10000) in paragraph at lines 188--190
|
||||
|
||||
[]
|
||||
|
||||
|
||||
Underfull \hbox (badness 10000) in paragraph at lines 188--190
|
||||
|
||||
[]
|
||||
|
||||
|
||||
Underfull \hbox (badness 10000) in paragraph at lines 191--197
|
||||
|
||||
[]
|
||||
|
||||
[4]
|
||||
Underfull \hbox (badness 10000) in paragraph at lines 200--213
|
||||
|
||||
[]
|
||||
|
||||
|
||||
Underfull \hbox (badness 10000) in paragraph at lines 200--213
|
||||
|
||||
[]
|
||||
|
||||
|
||||
Underfull \hbox (badness 10000) in paragraph at lines 215--217
|
||||
|
||||
[]
|
||||
|
||||
|
||||
Underfull \hbox (badness 10000) in paragraph at lines 215--217
|
||||
|
||||
[]
|
||||
|
||||
|
||||
Underfull \hbox (badness 10000) in paragraph at lines 218--224
|
||||
|
||||
[]
|
||||
|
||||
|
||||
Underfull \hbox (badness 10000) in paragraph at lines 226--259
|
||||
|
||||
[]
|
||||
|
||||
|
||||
Underfull \hbox (badness 10000) in paragraph at lines 226--259
|
||||
|
||||
[]
|
||||
|
||||
|
||||
Underfull \hbox (badness 10000) in paragraph at lines 226--259
|
||||
|
||||
[]
|
||||
|
||||
|
||||
Underfull \hbox (badness 10000) in paragraph at lines 226--259
|
||||
|
||||
[]
|
||||
|
||||
[5]
|
||||
|
||||
LaTeX Warning: Citation `Gil:02' on page 6 undefined on input line 261.
|
||||
|
||||
No file main.bbl.
|
||||
[6] (main.aux)
|
||||
|
||||
LaTeX Warning: There were undefined references.
|
||||
|
||||
)
|
||||
Here is how much of TeX's memory you used:
|
||||
1950 strings out of 480934
|
||||
25924 string characters out of 2909674
|
||||
271852 words of memory out of 3000000
|
||||
17841 multiletter control sequences out of 15000+200000
|
||||
542046 words of font info for 61 fonts, out of 3000000 for 9000
|
||||
1141 hyphenation exceptions out of 8191
|
||||
30i,9n,31p,268b,200s stack positions out of 5000i,500n,10000p,200000b,50000s
|
||||
|
||||
Output written on main.dvi (6 pages, 14028 bytes).
|
@ -0,0 +1,273 @@
|
||||
\title{Statistical Methods for Machine Learning}
|
||||
\author{
|
||||
Andrea Ierardi \\
|
||||
Data Science and Economcis\\
|
||||
Università degli Studi di Milano\\
|
||||
|
||||
}
|
||||
\date{\today}
|
||||
|
||||
\documentclass[12pt]{article}
|
||||
\usepackage{amsmath}
|
||||
\usepackage{systeme}
|
||||
\usepackage{amssymb}
|
||||
\newcommand\barra[1]{\mathbb{#1}}
|
||||
|
||||
\begin{document}
|
||||
\maketitle
|
||||
|
||||
|
||||
\begin{abstract}
|
||||
This is the paper's abstract \ldots
|
||||
\end{abstract}
|
||||
|
||||
\section{Lecture 1 - 09-03-2020}
|
||||
|
||||
\subsection{Introduction}
|
||||
This is time for all good men to come to the aid of their party!
|
||||
|
||||
MACHINE LEARNING
|
||||
In this course we look at the principle behind design of Machine learning.
|
||||
Not just coding but have an idea of algorithm that can work with the data.
|
||||
We have to fix a mathematical framework: some statistic and mathematics.
|
||||
Work on ML on a higher level
|
||||
ML is data inference: make prediction about the future using data about the
|
||||
past
|
||||
Clustering —> grouping according to similarity
|
||||
Planning —> (robot to learn to interact in a certain environment)
|
||||
Classification —> (assign meaning to data) example: Spam filtering
|
||||
I want to predict the outcome of this individual or i want to predict whether a
|
||||
person click or not in a certain advertisement.
|
||||
Examples
|
||||
Classify data into categories:
|
||||
Medical diagnosis: data are medical records and • categories are diseases
|
||||
• Document analysis: data are texts and categories are topics
|
||||
• Image analysts: data are digital images and for categories name of objects
|
||||
in the image (but could be different).
|
||||
• Spam filtering: data are emails, categories are spam vs non spam.
|
||||
• Advertising prediction: data are features of web site visitors and categories
|
||||
could be click/non click on banners.
|
||||
Classification : Different from clustering since we do not have semantically
|
||||
classification (spam or not spam) —> like meaning of the image.
|
||||
I have a semantic label.
|
||||
Clustering: i want to group data with similarity function.
|
||||
Planning: Learning what to do next
|
||||
Clustering: Learn similarity function
|
||||
Classification: Learn semantic labels meaning of data
|
||||
Planning: Learn actions given state
|
||||
In classification is an easier than planning task since I’m able to make
|
||||
prediction telling what is the semantic label that goes with data points.
|
||||
If i can do classification i can clustering.
|
||||
If you do planning you probably classify (since you understanding meaning in
|
||||
your position) and then you can also do clustering probably.
|
||||
We will focus on classification because many tasks are about classification.
|
||||
Classify data in categories we can image a set of categories.
|
||||
For instance the tasks:
|
||||
‘predict income of a person’
|
||||
‘Predict tomorrow price for a stock’
|
||||
The label is a number and not an abstract thing.
|
||||
We can distinguish two cases:
|
||||
The label set —> set of possible categories for each data • point. For each of
|
||||
this could be finite set of abstract symbols (case of document classification,
|
||||
medical diagnosis). So the task is classification.
|
||||
• Real number (no bound on how many of them). My prediction will be a real
|
||||
number and is not a category. In this case we talk about a task of
|
||||
regression.
|
||||
Classification: task we want to give a label predefined point in abstract
|
||||
categories (like YES or NO)
|
||||
Regression: task we want to give label to data points but this label are
|
||||
numbers.
|
||||
When we say prediction task: used both for classification and regression
|
||||
tasks.
|
||||
Supervised learning: Label attached to data (classification, regression)
|
||||
Unsupervised learning: No labels attached to data (clustering)
|
||||
In unsupervised the mathematical modelling and way algorithm are score and
|
||||
can learn from mistakes is a little bit harder. Problem of clustering is harder to
|
||||
model mathematically.
|
||||
You can cast planning as supervised learning: i can show the robot which is
|
||||
the right action to do in that state. But that depends on planning task is
|
||||
formalised.
|
||||
Planning is higher level of learning since include task of supervised and
|
||||
unsupervised learning.
|
||||
Why is this important ?
|
||||
Algorithm has to know how to given the label.
|
||||
In ML we want to teach the algorithm to perform prediction correctly. Initially
|
||||
algorithm will make mistakes in classifying data. We want to tell algorithm that
|
||||
classification was wrong and just want to perform a score. Like giving a grade
|
||||
to the algorithm to understand if it did bad or really bad.
|
||||
So we have mistakes!
|
||||
Algorithm predicts and something makes a mistake —> we can correct it.
|
||||
Then algorithm can be more precisely.
|
||||
We have to define this mistake.
|
||||
Mistakes in case of classification:
|
||||
If category is the wrong one (in the simple case). We • have a binary signal
|
||||
where we know that category is wrong.
|
||||
How to communicate it?
|
||||
We can use the loss function: we can tell the algorithm whether is wrong or
|
||||
not.
|
||||
Loss function: measure discrepancy between ‘true’ label and predicted
|
||||
label.
|
||||
So we may assume that every datapoint has a true label.
|
||||
If we have a set of topic this is the true topic that document is talking about.
|
||||
It is typical in supervised learning.
|
||||
\\\\
|
||||
How good the algorithm did?
|
||||
\\
|
||||
|
||||
\[l(y,\hat{y})\leq0 \]
|
||||
|
||||
were $y $ is true label and $\hat{y}$ is predicted label
|
||||
\\\\
|
||||
We want to build a spam filter were $0$ is not spam and $1$ is spam and that
|
||||
Classification task:
|
||||
\\\\
|
||||
$f(n) = \begin{cases} 0, & \mbox{if } \hat{y} = y
|
||||
\\ 1, &
|
||||
\mbox{if }\hat{y} \neq y
|
||||
\end{cases}
|
||||
$
|
||||
\\\\
|
||||
The loss function is the “interface” between algorithm and data.
|
||||
So algorithm know about the data through the loss function.
|
||||
If we give a useless loss function the algorithm will not perform good: is
|
||||
important to have a good loss function.
|
||||
Spam filtering
|
||||
We have two main mistakes:
|
||||
It is the same mistake? No if i have important email and you classify as spam
|
||||
that’s bad and if you show me a spam than it’s ok.
|
||||
So we have to assign a different weight.
|
||||
Even in binary classification, mistakes are not equal.
|
||||
e Iotf.TFprIuos.uos
|
||||
True came
|
||||
razee
|
||||
Cussler aircN TASK spam ACG FIRM
|
||||
ftp.y GO
|
||||
IF F Y n is soon
|
||||
IF FEY 0 Nor spam
|
||||
ZERO CNE Cass
|
||||
n n
|
||||
Span No Seamy Binary Classification
|
||||
I 2
|
||||
FALSE PEENE Mistake Y NON SPAM J Spam
|
||||
FN Mistake i f SPAM y NO spam
|
||||
2 IF Fp Meter Airenita
|
||||
f Y F on positive
|
||||
y ye en MISTAKE
|
||||
0 otherwise
|
||||
|
||||
|
||||
\paragraph{Outline}
|
||||
The remainder of this article is organized as follows.
|
||||
Section~\ref{previous work} gives account of previous work.
|
||||
Our new and exciting results are described in Section~\ref{results}.
|
||||
Finally, Section~\ref{conclusions} gives the conclusions.
|
||||
|
||||
|
||||
\section{Lecture 10 - 07-04-2020}
|
||||
|
||||
\subsection{TO BE DEFINE}
|
||||
|
||||
$|E[z] = |E[|E[z|x]]$
|
||||
\\\\
|
||||
$|E[X] = \sum_{t = 1}^{m} |E[x \Pi(A\begin{small}
|
||||
t \end{small} ) ]$
|
||||
\\\\
|
||||
$x \in \mathbb{R}^d
|
||||
$
|
||||
\\
|
||||
$\mathbb{P}(Y_{\Pi(s,x)} = 1) = \\\\ \mathbb{E}[\Pi { Y_{\Pi(s,x)} = 1 } ] = \\\\
|
||||
= \sum_{t = 1}^{m} \mathbb{E}[\Pi\{Y_t = 1\} \cdot \Pi { Pi(s,x) = t}] = \\\\
|
||||
= \sum_{t = 1}^{m} \mathbb{E}[\mathbb{E}[\Pi\{Y_t = 1\} \cdot \Pi\{\Pi(s,x) = t\} | X_t]] = \\\\
|
||||
given the fact that Y_t \sim \eta(X_t) \Rightarrow give me probability \\
|
||||
Y_t = 1 and \Pi(s,x) = t are independent given X_Y (e. g. \mathbb{E}[Zx] = \mathbb{E}[x] \ast \cdot \mathbb{E}[z]\\\\
|
||||
= \sum_{t = 1}^{m} \barra{E}[\barra{E}[\Pi\{Y_t = 1\}|X_t] \cdot \barra{E} [ \Pi(s,x) = t | Xt]] = \\\\
|
||||
= \sum_{t = 1}^{m} \barra{E}[\eta(X_t) \cdot \Pi \cdot \{\Pi (s,x) = t \}] = \\\\
|
||||
= \barra{E} [ \eta(X_{\Pi(s,x)}]
|
||||
$
|
||||
|
||||
\[ \barra{P} (Y_{\Pi(s,x)}| X=x = \barra{E}[\eta(X_\Pi (s,x))] \]
|
||||
\\\\
|
||||
|
||||
$
|
||||
\barra{P} (Y_{\Pi(s,x)} = 1, y = -1 ) = \\\\
|
||||
= \barra{E}[\Pi\{Y_{\Pi(s,x) }= 1\} \dot \Pi\{Y= -1|X\} ]] = \\\\
|
||||
= \barra{E}[\Pi \{ Y_{\Pi(s,x)} = 1\} \cdot \Pi \{ y = -1 \} ] = \\\\
|
||||
= \barra{E}[\barra{E}[\Pi \{ Y_{\Pi(s,x)} = 1\} \cdot \Pi \{ y = -1 | X \} ]] = \\\\
|
||||
$
|
||||
|
||||
\[ Y_{\Pi(s,x)} = 1 \quad \quad y = -1 (1- \eta(x)) \quad when \quad X = x\]
|
||||
|
||||
$
|
||||
\\\\ = \barra{E}[\barra{E}[\Pi \{Y_\Pi(s,x)\} = 1 | X] \cdot \barra{E}[\Pi \{y = -1\} |X ]] = \\\\
|
||||
= \barra {E}[\eta_{\Pi(s,x)} \cdot (1-\eta(x))] = \\\\
|
||||
similarly: \quad \barra{P}(Y_{\Pi(s,x)} = -1 , y = 1) = \\
|
||||
\barra{E} [(1- \eta_{\Pi(s,x)}) \cdot \eta(x)]
|
||||
\\\\
|
||||
\barra{E} [ \ell_D (\hat{h}_s)] = \barra{P}(Y_{\Pi(s,x)} \neq y ) =
|
||||
\\\\
|
||||
= \barra{P}(Y_{\Pi(s,x)} = 1, y = -1) + \barra{P}(Y_{Pi(s,x)} = -1, y = 1) =
|
||||
\\\\
|
||||
= \barra{E} [\eta_{\Pi(s,x)} \cdot (1-eta(x))] + \barra{E}[( 1- \eta_{\Pi(s,x)})\cdot \eta(x)]$
|
||||
\\\\
|
||||
Make assumptions on $D_x \quad and \quad \eta$: \\
|
||||
|
||||
|
||||
MANCAAAAAAA ROBAAA
|
||||
\\\\
|
||||
|
||||
$
|
||||
\eta(x') <= \eta(x) + c || X-x'|| --> euclidean distance
|
||||
\\\\
|
||||
1-\eta(x') <= 1- \eta(x) + c||X-x'||
|
||||
\\\\
|
||||
$
|
||||
|
||||
|
||||
$
|
||||
X' = X_{Pi(s,x)}
|
||||
\\\\
|
||||
\eta(X) \cdot (1-\eta(x')) + (1-\eta(x))\cdot \eta(x') <=
|
||||
\\\\
|
||||
<= \eta(x) \cdot((1-\eta(x))+\eta(x)\cdot c||X-x'|| + (1-\eta(x))\cdot c||X-x'|| =
|
||||
\\\\
|
||||
= 2 \cdot \eta(x) \cdot (1- \eta(x)) + c||X-x'|| \\\\
|
||||
\barra{E}[\ell_d \cdot (\hat{h}_s)] <= 2 \cdot \barra{E} [\eta(x) - (1-\eta(x))] + c \cdot \barra(E)[||X-x_{\Pi(s,x)}||]
|
||||
$
|
||||
\\ where $<=$ mean at most
|
||||
\\\\
|
||||
Compare risk for zero-one loss
|
||||
\\
|
||||
$
|
||||
\barra{E}[min\{\eta(x),1-\eta(x)\}] = \ell_D (f*)
|
||||
\\\\
|
||||
\eta(x) \cdot( 1- \eta(X)) <= min\{\eta(x), 1-eta(x) \} \quad \forall x
|
||||
\\\\
|
||||
\barra{E}[\eta(x)\cdot(1-\eta(x)] <= \ell_D(f*)
|
||||
\\\\
|
||||
\barra{E}[\ell_d(\hat{l}_s)] <= 2 \cdot \ell_D(f*) + c \cdot \barra{E}[||X-X_{\Pi(s,x)}||]
|
||||
\\\\
|
||||
\eta(x) \in \{0,1\}
|
||||
$
|
||||
\\\\
|
||||
Depends on dimension: curse of dimensionality
|
||||
\\\\--DISEGNO--
|
||||
\\\\
|
||||
$
|
||||
\ell_d(f*) = 0 \iff min\{ \eta(x), 1-\eta(x)\} =0 \quad$ with probability = 1
|
||||
\\
|
||||
to be true $\eta(x) \in \{0,1\}$
|
||||
|
||||
\section{Previous work}\label{previous work}
|
||||
A much longer \LaTeXe{} example was written by Gil~\cite{Gil:02}.
|
||||
|
||||
\section{Results}\label{results}
|
||||
In this section we describe the results.
|
||||
|
||||
\section{Conclusions}\label{conclusions}
|
||||
We worked hard, and achieved very little.
|
||||
|
||||
\bibliographystyle{abbrv}
|
||||
\bibliography{main}
|
||||
|
||||
\end{document}
|
||||
This is never printed
|
Loading…
Reference in New Issue
Block a user