Initial commit: Add LaTeX template for Manning-style book
Includes main.tex, preamble setup, sample chapters, and essential packages for customization.
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 189 KiB |
|
@ -0,0 +1 @@
|
|||
<svg id="logosandtypes_com" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150.2"><path d="M0 .2h150v150H0V.2z" fill="none"/><g><path d="M21.8 25.8h57v59.8c3.3-19.7 6.1-39.9 9.1-59.8h57v97.8H91.2V39.7c-4.4 27.8-8.6 55.7-12.6 83.9H25V36.2c-5.8 28.9-11 58.4-16.6 87.4H3.3c6.1-32.3 12.2-64.6 18.2-97 0-.4 0-.8.3-.8" fill-rule="evenodd" clip-rule="evenodd" fill="#333"/></g></svg>
|
After Width: | Height: | Size: 381 B |
|
@ -0,0 +1,462 @@
|
|||
\ProvidesPackage{ManningBook}
|
||||
|
||||
\usepackage[margin=3cm]{geometry}
|
||||
\usepackage{graphicx, wrapfig2}
|
||||
\usepackage{tabularray}
|
||||
\usepackage{setspace}
|
||||
\usepackage{emptypage} % Suppress Page Numbering and Headings on Empty Pages
|
||||
\usepackage[dvipsnames, table]{xcolor}
|
||||
\usepackage[pagestyles, calcwidth]{titlesec} % [pagestyles] activates "titleps" for Styling, and [calcwidth] to measure part title width for formatting.
|
||||
\usepackage{titletoc}
|
||||
\usepackage{fontspec} % Requires XeLaTeX/LuaLaTeX Engines
|
||||
\usepackage{mdframed}
|
||||
\usepackage{enumitem}
|
||||
\usepackage{amsmath, amssymb}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{tikzmark}
|
||||
\usepackage{listings}
|
||||
\usepackage{float}
|
||||
\usepackage{caption}
|
||||
\usepackage{subcaption}
|
||||
\usepackage[rightcaption]{sidecap}
|
||||
\usepackage{array}
|
||||
\usepackage{colortbl}
|
||||
\usepackage{pdfpages}
|
||||
\usepackage{afterpage}
|
||||
\usepackage{ragged2e}
|
||||
\usepackage{svg} % For Inserting SVG External Files, You need to have Inkscape installed and running in the command line (check with "inkscape --version"), add it to the system's PATH environment variables (You open "Path" in the "System variables" down window, and add the directory in which inkscape is installed on your machine <C:\Program Files\Inkscape> also add <C:\Program Files\Inkscape\bin>), and lastly, add <--shell-escape> to your compiler run code.
|
||||
\usepackage{etoolbox}
|
||||
\usepackage{stix, stix2} % For Acid-free (Circ&Inf) Symbole in Title Page, and ć
|
||||
\usepackage{textcase} % For the macro \MakeTextUppercase
|
||||
\usepackage{imakeidx}
|
||||
|
||||
%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%%%%%% Defining Font Families %%%%%%%%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
% Setting the Main Font Family of the Document
|
||||
\setmainfont{itc-new-baskerville-roman-latin-1}[
|
||||
Extension = .ttf,
|
||||
Path = fonts/,
|
||||
SizeFeatures={Size=12}
|
||||
]
|
||||
% 1. Font for the Chapter Title Head as Whole
|
||||
\newfontfamily\ChapHeadFont{itc-new-baskerville-italic-latin-1}[
|
||||
Extension = .ttf,
|
||||
Path = fonts/
|
||||
]
|
||||
% 2. Font for ChapterTopics Env. Fixed Head
|
||||
\newfontfamily\ChapTopicHeadFont{ITCFranklinGothicStd-DemiIt}[
|
||||
Extension = .otf,
|
||||
Path = fonts/
|
||||
]
|
||||
%3. Font for ChapterTopics Env. Items
|
||||
\newfontfamily\ChapTopicItemFont{ITCFranklinGothicStd-Book}[
|
||||
Extension = .otf,
|
||||
Path = fonts/
|
||||
]
|
||||
% 4. Font for the Page Numbering
|
||||
\newfontfamily\PageNoFont{itc-new-baskerville-bold-latin-1}[
|
||||
Extension = .ttf,
|
||||
Path = fonts/
|
||||
]
|
||||
% 5. Font for the Headers
|
||||
\newfontfamily\HeaderFont{itc-new-baskerville-bold-italic-latin-1}[
|
||||
Extension = .ttf,
|
||||
Path = fonts/
|
||||
]
|
||||
% 6. Font for the "CHAPTER" word on even page header
|
||||
\newfontfamily\ChapterMarkFont{franklingothic-demi}[
|
||||
Extension = .otf,
|
||||
Path = fonts/
|
||||
]
|
||||
% 7. Font for the Title of the custom "ManHighlight" Env.
|
||||
\newfontfamily\HighlightTitleFont{franklingothic-demicd}[
|
||||
Extension = .otf,
|
||||
Path = fonts/
|
||||
]
|
||||
|
||||
% 8. Font for the body text of the custom "ManHighlight" Env.
|
||||
\newfontfamily\HighlightBodyFont{franklingothic-book}[
|
||||
Extension = .otf,
|
||||
Path = fonts/
|
||||
]
|
||||
% 9. Font for the Code Blocks
|
||||
\newfontfamily\CodeFont{CourierStd}[
|
||||
Extension = .otf,
|
||||
Path = fonts/
|
||||
]
|
||||
% 10. Font for the Author Name in P.4, Similar to Main Font
|
||||
\newfontfamily\AuthorNameFont{itc-new-baskerville-roman-latin-1}[
|
||||
Extension = .ttf,
|
||||
Path = fonts/
|
||||
]
|
||||
% 11. Font of the Big Letter of the Paragraph on the Part Page
|
||||
\newfontfamily\BigPartLetterFont{bsc}[
|
||||
Extension = .ttf,
|
||||
Path = fonts/
|
||||
]
|
||||
%% 12. Font of the Part TOC Entry
|
||||
\newfontfamily\PartTOCFont{itc-new-baskerville-black-latin-1}[
|
||||
Extension = .ttf,
|
||||
Path = fonts/
|
||||
]
|
||||
|
||||
%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%%%%%% Defining Custom Colors %%%%%%%%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%
|
||||
\definecolor{TOCHeadColor}{cmyk}{0,0,0,0.45} % Color for the TOC Gray elements
|
||||
\definecolor{ChapTitleColor}{cmyk}{0.77,0.52,0.33,0.09} % Chapter Title Text
|
||||
\definecolor{ChapNoColor}{cmyk}{0.17,0.12,0.12,0} % Chapter Label(No.)
|
||||
\definecolor{ChapTopBack}{cmyk}{0.02,0.03,0.08,0} % ChapterTopics Env. Background
|
||||
\definecolor{SecLevelsColor}{RGB}{71, 107, 133} % Color of Sectional Levels Head
|
||||
\definecolor{SummaryItemColor}{cmyk}{0.18,0.27,0.56,0} % Color of Summary Item Label
|
||||
\definecolor{HighlightBodyColor}{cmyk}{0.57,0.48,0.48,0.15} % Highlight Env. Color
|
||||
\definecolor{CodeTitleBGColor}{cmyk}{0.46,0.18,0,0.19} % Color for Listing Title
|
||||
\definecolor{FigureCaptionColor}{cmyk}{0,0,0,0.60} % Color for Figures' Captions
|
||||
\definecolor{TableHeadRowColor}{cmyk}{0.49,0.14,0,0} % Color for 1st Table Row
|
||||
|
||||
%%%%%%%%%%%%% Begin Brief TOC Setup %%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% 1. The Part Entry
|
||||
\titlecontents{part}[0em]{
|
||||
\vspace*{7pt}
|
||||
\PartTOCFont\fontsize{14}{16}\selectfont\color{TOCHeadColor} PART
|
||||
}
|
||||
{\thepart\thecontentslabel}{}
|
||||
{\titlerule*[1pc]{.}\contentspage}[\vspace*{7pt}]
|
||||
%% 2. The Chapter Entry
|
||||
\titlecontents{chapter}[2cm]{
|
||||
\AuthorNameFont\fontsize{12}{14}\selectfont
|
||||
}
|
||||
{%\ChapNoTOCFont\selectfont\color{red} -> Chap No setup \contentslabel{18pt} \ChapTitleTOCFont\selectfont\color{blue} -> Chap Title setup
|
||||
\contentslabel{18pt}
|
||||
\raisebox{0.2ex}{\tikz \fill[SummaryItemColor] (-0.2,0) rectangle (0,0.2);} \hspace{5pt}
|
||||
}{}
|
||||
{\hspace{5pt}\contentspage}[\vspace*{5pt}]
|
||||
%%%%%%%%%%%%% End Brief TOC Setup %%%%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
%% Index Setup
|
||||
\makeindex[
|
||||
title={
|
||||
\vspace*{2cm}
|
||||
\raggedleft\ChapHeadFont\fontsize{30}{32}\selectfont
|
||||
\color{ChapTitleColor} index \\[-25pt]
|
||||
\rule{\linewidth}{0.4pt}
|
||||
},
|
||||
columns=3,
|
||||
columnsep=20pt,
|
||||
options={-s index_style.ist}
|
||||
]
|
||||
|
||||
%% The Part Head Format
|
||||
\renewcommand\thepart{\arabic{part}}
|
||||
\mdfdefinestyle{PrtSy}{
|
||||
backgroundcolor=ChapTopBack,
|
||||
font=\ChapHeadFont\fontsize{38pt}{40pt}\selectfont,
|
||||
innerrightmargin=20pt
|
||||
}
|
||||
\titleclass{\part}{top} % Forces the Part to accept content after it's title
|
||||
\titleformat{\part}[display]
|
||||
{\vspace*{-3cm}\raggedleft\color{ChapTitleColor}}
|
||||
{
|
||||
\begin{minipage}{\the\titlewidth} % minipage taking extact Part title width
|
||||
\begin{mdframed}[style=PrtSy]
|
||||
\raggedleft\partname~\thepart
|
||||
\end{mdframed}
|
||||
\end{minipage}
|
||||
}
|
||||
{20pt}
|
||||
{\ChapHeadFont\fontsize{40pt}{42pt}\selectfont}[\vspace{-5cm}]
|
||||
|
||||
%% The Chapter Head Format
|
||||
%% Centering the Chapter Title Text Vertically over the Chapter Label(No.): 1. Measure the heights of both and assign them into length variables. 2. Apply: S <sep value, a length par> = -(Z-Y)/2, where: Z<Label Height>, Y<Text>
|
||||
\titleformat{\chapter}[display]
|
||||
{\raggedleft\color{ChapNoColor}}
|
||||
{\ChapHeadFont\fontsize{225pt}{230pt}\selectfont\thechapter}
|
||||
{-180pt}
|
||||
{\ChapHeadFont\fontsize{30pt}{30pt}\selectfont\color{ChapTitleColor}}
|
||||
[\LowerRule{0.7}]
|
||||
|
||||
%% Formatting the Front Matter Numberless Chapters, Preface, Acknowledgments,...
|
||||
\titleformat{name=\chapter,numberless}[display]
|
||||
{\vspace*{7cm}\raggedleft}{}{0pt}
|
||||
{\ChapHeadFont\fontsize{30pt}{30pt}\selectfont\color{ChapTitleColor}}
|
||||
[\LowerRule{1}]
|
||||
|
||||
%% Chapter Title Spacing
|
||||
\titlespacing*{\chapter}{0pt}{-50pt}{20pt} % {\chapter}{<left>}{<before>}{<after>}
|
||||
|
||||
%% The Section Head Format
|
||||
\titleformat{\section}[hang]
|
||||
{ % Format: Font, Size, Color
|
||||
\color{SecLevelsColor}
|
||||
\ChapTopicHeadFont \fontsize{14.5pt}{15.5pt} \selectfont
|
||||
}{\llap{\thesection\hspace{20pt}}}{0pt}{}[\vspace{-8pt}]
|
||||
% \llap: is a Primitive TeX Macro that puts it's argument in margin area
|
||||
% [\vspace{} in after_code, can be replaced with \titlespacing for Sec]
|
||||
|
||||
%% The SubSection Head Format
|
||||
\titleformat{\subsection}[hang]
|
||||
{ % Format: Font, Size, Color
|
||||
\color{SecLevelsColor}
|
||||
\ChapTopicHeadFont \fontsize{13pt}{14pt} \selectfont
|
||||
}{\llap{\thesubsection\hspace{20pt}}}{0pt}{}[\vspace{-8pt}]
|
||||
|
||||
%% The SubSubSection Head Format
|
||||
\setcounter{secnumdepth}{3} % Fix to show \thesubsubsection
|
||||
\titleformat{\subsubsection}[hang]
|
||||
{ % Format: Font, Size, Color
|
||||
\color{SecLevelsColor}
|
||||
\ChapTopicHeadFont \fontsize{11pt}{12pt} \selectfont
|
||||
}{\llap{\thesubsubsection\hspace{20pt}}}{0pt}{}[\vspace{-8pt}]
|
||||
|
||||
%% Page Styles using <titleps>
|
||||
\newpagestyle{FMPageStyle}{ % Style for the Front Matter Pages like Preface
|
||||
\setfoot[][
|
||||
\textcolor{FigureCaptionColor}{
|
||||
\PageNoFont\fontsize{12pt}{14pt}\selectfont\thepage}
|
||||
]
|
||||
[]{}{
|
||||
\textcolor{FigureCaptionColor}{
|
||||
\PageNoFont\fontsize{12pt}{14pt}\selectfont\thepage}
|
||||
}{}
|
||||
}
|
||||
% Style for the Front Matter Pages that come after the Title First Page
|
||||
\newpagestyle{FrontMatterMainPages}[\color{FigureCaptionColor}]{
|
||||
\sethead[\thepage][
|
||||
\HighlightBodyFont\fontsize{12pt}{14pt}\selectfont
|
||||
\MakeTextUppercase{\chaptertitle}][]
|
||||
{}{
|
||||
\HighlightBodyFont\fontsize{12pt}{14pt}\selectfont
|
||||
\MakeTextUppercase{\chaptertitle}
|
||||
}{\thepage}
|
||||
}
|
||||
\newpagestyle{ChapterTitleStyle}{ % Style for the Chapter First Page
|
||||
\setfoot[][\PageNoFont\selectfont\thepage][]{}{}{\PageNoFont\selectfont\thepage}
|
||||
}
|
||||
\newpagestyle{ChapterMainStyle}{ % Style for the Rest
|
||||
\sethead[\textcolor{gray}{\PageNoFont\fontsize{12pt}{14pt}\selectfont
|
||||
\llap{\thepage\hspace{45pt}}}]
|
||||
[\ChapterMarkFont\selectfont {\Large{C}}HAPTER \thechapter~~ \HeaderFont\fontsize{12pt}{14pt}\selectfont\chaptertitle]
|
||||
[]{}
|
||||
{\HeaderFont\fontsize{12pt}{14pt}\selectfont\thesection~ \sectiontitle} {\PageNoFont\fontsize{12pt}{14pt}\selectfont
|
||||
\rlap{\hspace{10pt}\thepage}}
|
||||
}
|
||||
\newpagestyle{AppendixChapStyle}{ % Style for the Appendix Pages
|
||||
\sethead[\textcolor{gray}{\PageNoFont\fontsize{12pt}{14pt}\selectfont
|
||||
\llap{\thepage\hspace{45pt}}}]
|
||||
[\ChapterMarkFont\selectfont {\Large{A}}PPENDIX \thechapter~~ \HeaderFont\fontsize{12pt}{14pt}\selectfont\chaptertitle]
|
||||
[]{}
|
||||
{\HeaderFont\fontsize{12pt}{14pt}\selectfont \sectiontitle} {\PageNoFont\fontsize{12pt}{14pt}\selectfont
|
||||
\rlap{\hspace{10pt}\thepage}}
|
||||
}
|
||||
\newpagestyle{IndexPagesStyle}{ % Style for the Index Pages
|
||||
\sethead[\textcolor{gray}{\PageNoFont\fontsize{12pt}{14pt}\selectfont
|
||||
\llap{\thepage\hspace{45pt}}}]
|
||||
[\HighlightTitleFont\fontsize{12pt}{14pt}\selectfont INDEX]
|
||||
[]{}
|
||||
{\HighlightTitleFont\fontsize{12pt}{14pt}\selectfont INDEX} {\PageNoFont\fontsize{12pt}{14pt}\selectfont
|
||||
\rlap{\hspace{10pt}\thepage}}
|
||||
}
|
||||
%% Applying the Chapter Title Page Style at First
|
||||
\pagestyle{ChapterTitleStyle}
|
||||
|
||||
%% Setup for the mdframed Env. inside ChapterTopics Custom Env.
|
||||
\mdfsetup{
|
||||
fontcolor=ChapTitleColor, backgroundcolor=ChapTopBack,
|
||||
innertopmargin=0.5cm, innerbottommargin=0.5cm,
|
||||
innerleftmargin=0.75cm, innerrightmargin=1cm,
|
||||
topline=false, bottomline=false, rightline=false, leftline=false
|
||||
}
|
||||
|
||||
%%%%%%%%%%%%% Begin Code Listings Setup %%%%%%%%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
%% Hooks for Changing the Code Listing Environment Spacing
|
||||
\BeforeBeginEnvironment{lstlisting}{\vspace{0.35cm}\begin{spacing}{1.2}}
|
||||
\AfterEndEnvironment{lstlisting}{\vspace{0.35cm}\end{spacing}}
|
||||
|
||||
%% Setup for the Style of the Code Listing Environment
|
||||
\lstset{
|
||||
basicstyle=\CodeFont, % Default font
|
||||
tabsize=1, % Size of tabs
|
||||
xleftmargin=15pt,
|
||||
escapeinside={@}{@}, % To excute functional macros between @\job@
|
||||
showstringspaces=false,
|
||||
showspaces=false,
|
||||
showtabs=false
|
||||
}
|
||||
%% New Caption Font and Format for the Listing Env
|
||||
\DeclareCaptionFont{HighCapFont}{
|
||||
\HighlightTitleFont\fontsize{14pt}{18pt}\color{white}\selectfont
|
||||
}
|
||||
\DeclareCaptionFormat{listing}{
|
||||
\tikz \node[inner sep=0pt, text width=\linewidth, fill=CodeTitleBGColor]
|
||||
at (0,0) {\hspace{10pt}#1#2#3};
|
||||
}
|
||||
\captionsetup[lstlisting]{
|
||||
format=listing,
|
||||
labelfont=HighCapFont, textfont=HighCapFont
|
||||
}
|
||||
%%%%%%%%%%%%%%% End Code Listings Setup %%%%%%%%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
%% The Path to the Images Directory <Eliminates the need of inserting before figs>
|
||||
\graphicspath{{Images/}}
|
||||
|
||||
%% Caption Setup for Figure Floats
|
||||
\DeclareCaptionFont{FigCapFont}{
|
||||
\HighlightTitleFont\fontsize{12pt}{14pt}\color{FigureCaptionColor}\selectfont
|
||||
}
|
||||
\captionsetup[figure]{
|
||||
font=FigCapFont,
|
||||
singlelinecheck=false, % Allow multi-line captions
|
||||
justification=raggedright,
|
||||
skip=10pt, % The skip between caption and figure
|
||||
indention=4pt
|
||||
}
|
||||
|
||||
%% Caption Setup for the Subfigure Floats
|
||||
\DeclareCaptionFont{SubfigureFont}{
|
||||
\ChapTopicHeadFont\fontsize{10pt}{11pt}\selectfont\color{black}
|
||||
}
|
||||
\captionsetup[subfigure]{
|
||||
font=SubfigureFont,
|
||||
justification=raggedright,
|
||||
skip=6pt
|
||||
}
|
||||
|
||||
%% Increasing the Table Row Height
|
||||
\renewcommand{\arraystretch}{1.8}
|
||||
|
||||
%% Caption Setup for the Table Float
|
||||
\DeclareCaptionFont{TabCapFont}{
|
||||
\HighlightTitleFont\fontsize{13pt}{14pt}\color{black}\selectfont
|
||||
}
|
||||
\captionsetup[table]{
|
||||
font=TabCapFont,
|
||||
singlelinecheck=false,
|
||||
justification=centering,
|
||||
skip=6pt
|
||||
}
|
||||
|
||||
%% Scalable Vector Graphics (SVG) Setup
|
||||
\svgsetup{inkscapeexe="C:/Program Files/Inkscape/bin/inkscape.exe"}
|
||||
\svgpath{{Images/}} % Path to the External SVG Files
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%% Custom Commands and Envs Area %%%%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
%% Inserting a Blank Page with the help of afterpage Package
|
||||
\newcommand\blankpage{ % Use as: \afterpage{\blankpage}
|
||||
\null
|
||||
\thispagestyle{empty}
|
||||
\addtocounter{page}{-1} % Skip Counting a Blank Page
|
||||
\newpage
|
||||
}
|
||||
|
||||
%% Inserting New Ready to use Consecutive Page
|
||||
\newcommand{\InsertNewPage}{
|
||||
\let\cleardoublepage\clearpage
|
||||
|
||||
\pagebreak
|
||||
}
|
||||
|
||||
%% A command to place a full-page sized tikz grid
|
||||
\newcommand{\PlacePageGrid}{ % Run Twice to Resolve !!
|
||||
\begin{tikzpicture}[remember picture, overlay]
|
||||
\draw[step=1cm, gray, very thin] (current page.south west) grid
|
||||
(current page.north east);
|
||||
\end{tikzpicture}
|
||||
}
|
||||
|
||||
%% Formatting the First Letter of the Paragraph of the Part Page
|
||||
\newcommand{\BigPartLetter}[1]{
|
||||
{\BigPartLetterFont\fontsize{35}{36}\selectfont\color{ChapTitleColor}#1}
|
||||
}
|
||||
|
||||
%% Define a Custom Command for the Lower Rule
|
||||
\newcommand{\LowerRule}[1]{\vspace{-15pt}\rule{#1\linewidth}{0.5pt}}
|
||||
|
||||
%% Side Head Title Command
|
||||
\newcommand{\ManHeadLine}[3]{
|
||||
{\HighlightTitleFont\fontsize{#1}{#2}\color{SecLevelsColor}\selectfont
|
||||
\par\noindent #3}
|
||||
}
|
||||
|
||||
%% Shape-Classified Code Annotation Commands
|
||||
\newcommand{\LeftArrowedNote}[6]{ % Use in tikzpictures only !
|
||||
%% Arguments: #1<Node Label>, (#2,#3)<shift>, #4<tikzmark name> #5<Node Content "Text Annot">, #6<Arrow Size>
|
||||
\node[anchor=west] (#1) at ([shift={(#2,#3)}]{pic cs:#4}) {#5};
|
||||
\draw[-latex] (#1.west) -- ++(#6,0);
|
||||
}
|
||||
\newcommand{\RightWalledNote}[8]{
|
||||
\node[anchor=west, align=left] (#1) at ([shift={(#2,#3)}]{pic cs:#4}) {#5};
|
||||
\draw[-latex] (#1.west) -- ++(#6,0);
|
||||
\draw (#1.west) -- ++(0,#7)
|
||||
(#1.west) -- ++(0,-#8); % I leave the minus here !!
|
||||
}
|
||||
\newcommand{\RightArrowedCornerNote}[9]{
|
||||
\node[anchor=south] (#1) at % The Node of the tikzmark - No Content
|
||||
([shift={(#2,#3)}]{pic cs:#4}) {};
|
||||
\draw[latex-] (#1.west) -- coordinate (corner) ++(#6,0);
|
||||
\node[anchor=south west, align=left, shift={(#8,#9)}] at (corner) {#5};
|
||||
\draw (#1.west) -- ++(#6,0) -- ++(0,#7);
|
||||
}
|
||||
|
||||
%% The New Custom Environment for the Chapter Topics
|
||||
\newenvironment{ChapterTopics}[1]{
|
||||
\vspace{2cm}
|
||||
\hspace{-1.5cm}\begin{minipage}{#1\textwidth}
|
||||
\begin{mdframed}
|
||||
{\ChapTopicHeadFont\fontsize{12pt}{14pt}\selectfont This chapter covers}
|
||||
\begin{itemize}[label={\raisebox{0.20ex}{\tiny$\blacksquare$}},
|
||||
labelsep=18pt, itemsep=0pt]
|
||||
\ChapTopicItemFont \fontsize{10pt}{12pt} \selectfont
|
||||
}{
|
||||
\end{itemize}
|
||||
\end{mdframed}
|
||||
\end{minipage}
|
||||
}
|
||||
|
||||
%% The Centered Note Environment
|
||||
\newenvironment{ManNote}{
|
||||
\begin{center}
|
||||
\begin{minipage}{0.9\textwidth}
|
||||
{\ChapterMarkFont\fontsize{11.5pt}{12pt}\selectfont
|
||||
\color{SecLevelsColor} NOTE~ }
|
||||
}{
|
||||
\end{minipage}
|
||||
\end{center}
|
||||
}
|
||||
|
||||
%% The Chapter Summary Environment
|
||||
\newenvironment{ChapterSummary}{
|
||||
\paragraph{\ChapTopicHeadFont\fontsize{14pt}{15pt}\selectfont
|
||||
\color{SecLevelsColor} Summary}
|
||||
\begin{itemize}[label={\raisebox{0.20ex}{
|
||||
\color{SummaryItemColor} \tiny$\blacksquare$}},
|
||||
labelsep=10pt, itemsep=0pt, leftmargin=1.25cm]
|
||||
}{
|
||||
\end{itemize}
|
||||
}
|
||||
|
||||
%% The Highlight Environment
|
||||
\newenvironment{ManHighlight}[1]{ % Use: <\par\noindent> infront of Body Paragraph
|
||||
\vspace{0.5cm}
|
||||
\begin{mdframed}
|
||||
{\HighlightTitleFont\fontsize{14}{15}\selectfont #1}
|
||||
\vspace{5pt}
|
||||
\begin{spacing}{1.2}
|
||||
\HighlightBodyFont\fontsize{12}{13}\color{HighlightBodyColor}\selectfont
|
||||
}{
|
||||
\end{spacing}
|
||||
\vspace{-0.5pt}
|
||||
\end{mdframed}
|
||||
\vspace{0.5cm}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
# This is an index style file created to format the index generated by MakeIndex processor
|
||||
|
||||
headings_flag 1
|
||||
|
||||
heading_prefix "{\\ChapterMarkFont\\fontsize{12}{14}\\selectfont\\color{ChapTitleColor}\n\n"
|
||||
heading_suffix "\n\n \\vspace*{-5pt} \\rule{\\linewidth}{0.4pt}} \\vspace*{-8pt}
|
||||
\\AuthorNameFont\\fontsize{10}{12}\\selectfont"
|
||||
|
||||
group_skip "\n\n \\vspace{12pt}"
|
||||
|
||||
delim_0 " ~"
|
|
@ -0,0 +1,108 @@
|
|||
\relax
|
||||
\providecommand\zref@newlabel[2]{}
|
||||
\providecommand{\transparent@use}[1]{}
|
||||
\savepicturepage{pgfid2}{3}
|
||||
\pgfsyspdfmark {pgfid2}{33564236}{21836401}
|
||||
\savepointas{ManningBrand}{pgfid1}{0pt}{0pt}
|
||||
\savepicturepage{pgfid1}{3}
|
||||
\pgfsyspdfmark {pgfid1}{33564237}{6205511}
|
||||
\savepointas{ManningLower}{pgfid3}{0pt}{0pt}
|
||||
\savepicturepage{pgfid3}{4}
|
||||
\pgfsyspdfmark {pgfid3}{7631584}{19097821}
|
||||
\savepicturepage{pgfid4}{4}
|
||||
\pgfsyspdfmark {pgfid4}{6577079}{18311389}
|
||||
\@writefile{lof}{\ttl@tocsep }
|
||||
\@writefile{lot}{\ttl@tocsep }
|
||||
\zref@newlabel{mdf@pagelabel-2}{\default{1}\page{1}\abspage{16}\mdf@pagevalue{1}}
|
||||
\@writefile{toc}{\contentsline {part}{1\hspace {1em}FUNDAMENTALS OF DEEP LEARNING}{1}{}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {chapter}{\numberline {1}Vectors, matrices, and tensors in machine learning}{3}{}\protected@file@percent }
|
||||
\@writefile{lof}{\addvspace {10\p@ }}
|
||||
\@writefile{lot}{\addvspace {10\p@ }}
|
||||
\zref@newlabel{mdf@pagelabel-3}{\default{1}\page{3}\abspage{18}\mdf@pagevalue{3}}
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {1.1}First Section}{3}{}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {1.1.1}First Subsection}{4}{}\protected@file@percent }
|
||||
\zref@newlabel{mdf@pagelabel-4}{\default{1.1.1}\page{4}\abspage{19}\mdf@pagevalue{4}}
|
||||
\@writefile{lol}{\contentsline {lstlisting}{\numberline {1.1}{\ignorespaces Introducting Matrices via PyTorch}}{5}{}\protected@file@percent }
|
||||
\savepointas{XMatrix1}{pgfid15}{0pt}{0pt}
|
||||
\savepicturepage{pgfid15}{5}
|
||||
\pgfsyspdfmark {pgfid15}{8149959}{34032848}
|
||||
\savepointas{XTensor}{pgfid16}{0pt}{0pt}
|
||||
\savepicturepage{pgfid16}{5}
|
||||
\pgfsyspdfmark {pgfid16}{14834699}{34032848}
|
||||
\savepointas{XMatrix2}{pgfid17}{0pt}{0pt}
|
||||
\savepicturepage{pgfid17}{5}
|
||||
\pgfsyspdfmark {pgfid17}{20339779}{30257984}
|
||||
\savepointas{XShape}{pgfid18}{0pt}{0pt}
|
||||
\savepicturepage{pgfid18}{5}
|
||||
\pgfsyspdfmark {pgfid18}{28204179}{26483120}
|
||||
\savepointas{XFirst}{pgfid19}{0pt}{0pt}
|
||||
\savepicturepage{pgfid19}{5}
|
||||
\pgfsyspdfmark {pgfid19}{17194019}{24595688}
|
||||
\savepointas{XRow0}{pgfid20}{0pt}{0pt}
|
||||
\savepicturepage{pgfid20}{5}
|
||||
\pgfsyspdfmark {pgfid20}{15621139}{22708256}
|
||||
\savepointas{XRow1}{pgfid21}{0pt}{0pt}
|
||||
\savepicturepage{pgfid21}{5}
|
||||
\pgfsyspdfmark {pgfid21}{15621139}{21764540}
|
||||
\savepointas{XCol0}{pgfid22}{0pt}{0pt}
|
||||
\savepicturepage{pgfid22}{5}
|
||||
\pgfsyspdfmark {pgfid22}{15621139}{19877108}
|
||||
\savepointas{XCol1}{pgfid23}{0pt}{0pt}
|
||||
\savepicturepage{pgfid23}{5}
|
||||
\pgfsyspdfmark {pgfid23}{15621139}{18933392}
|
||||
\savepicturepage{pgfid24}{5}
|
||||
\pgfsyspdfmark {pgfid24}{6577079}{16852710}
|
||||
\@writefile{lof}{\contentsline {figure}{\numberline {1.1}{\ignorespaces \centering Some Temporary Caption Text}}{6}{}\protected@file@percent }
|
||||
\@writefile{lof}{\contentsline {figure}{\numberline {1.2}{\ignorespaces \centering Some Recent Manning Books}}{6}{}\protected@file@percent }
|
||||
\newlabel{SC@1}{{\caption@xref {??}{ on input line 302}}{7}{First Subsection}{figure.1.2}{}}
|
||||
\@writefile{lof}{\contentsline {figure}{\numberline {1.3}{\ignorespaces How Computers Make Books introduces what’s wonderful about computer science by showing how computers have transformed art of publishing books. Author and publishing software developer John Whitington reveals the elegant computer science solutions invented to solve big publishing challenges. }}{7}{}\protected@file@percent }
|
||||
\@writefile{lof}{\contentsline {figure}{\numberline {1.4}{\ignorespaces How Computers Make Books introduces what’s wonderful about computer science by showing how computers have transformed art of publishing books. Author and publishing software developer John Whitington reveals the elegant computer science solutions invented to solve big publishing challenges.}}{7}{}\protected@file@percent }
|
||||
\@writefile{lot}{\contentsline {table}{\numberline {1.1}{\ignorespaces Example training dataset for our toy machine learning-based cat brain}}{8}{}\protected@file@percent }
|
||||
\newlabel{equation:one}{{1.1}{9}{First Subsection}{equation.1.1}{}}
|
||||
\newlabel{equation:two}{{1.2}{9}{First Subsection}{equation.1.2}{}}
|
||||
\newlabel{equation:three}{{1.3}{9}{First Subsection}{equation.1.3}{}}
|
||||
\@writefile{toc}{\contentsline {paragraph}{\ChapTopicHeadFont \fontsize {14pt}{15pt}\selectfont \color {SecLevelsColor} Summary}{10}{}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {chapter}{\numberline {2}What is deep learning?}{11}{}\protected@file@percent }
|
||||
\@writefile{lof}{\addvspace {10\p@ }}
|
||||
\@writefile{lot}{\addvspace {10\p@ }}
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {2.1}Artificial intelligence, machine learning, and deep learning}{11}{}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1.1}Aniftcial intelligence}{11}{}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1.2}Machine learning}{11}{}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1.3}Learning representations from data}{11}{}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1.4}Understanding how deep learning works}{11}{}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1.5}What deep learning has achieved so far}{11}{}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1.6}Don 't believe the short-term hype}{11}{}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {2.2}Before deep learning: a brief history of machine learning}{11}{}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2.1}Probabilistic modeling}{11}{}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2.2}Early neural networks}{11}{}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2.3}Kema methods}{11}{}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2.4}Decision trees, random forests, and gradient boosting machines}{11}{}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2.5}Back to neural networks}{11}{}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2.6}What makes deep learning different}{11}{}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {chapter}{\numberline {3}Orthogonality and Independence in Linear Algebra}{12}{}\protected@file@percent }
|
||||
\@writefile{lof}{\addvspace {10\p@ }}
|
||||
\@writefile{lot}{\addvspace {10\p@ }}
|
||||
\@writefile{toc}{\contentsline {chapter}{\numberline {4}Algorithms of Reinforcement Learning for Robotics}{13}{}\protected@file@percent }
|
||||
\@writefile{lof}{\addvspace {10\p@ }}
|
||||
\@writefile{lot}{\addvspace {10\p@ }}
|
||||
\@writefile{lof}{\ttl@tocsep }
|
||||
\@writefile{lot}{\ttl@tocsep }
|
||||
\zref@newlabel{mdf@pagelabel-6}{\default{2}\page{14}\abspage{29}\mdf@pagevalue{14}}
|
||||
\@writefile{toc}{\contentsline {part}{2\hspace {1em}DEEP LEARNINF IN PRACTICE}{14}{}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {chapter}{\numberline {5}Fundamentals of machine learning}{16}{}\protected@file@percent }
|
||||
\@writefile{lof}{\addvspace {10\p@ }}
|
||||
\@writefile{lot}{\addvspace {10\p@ }}
|
||||
\@writefile{toc}{\contentsline {chapter}{\numberline {6}Generative deep learning}{17}{}\protected@file@percent }
|
||||
\@writefile{lof}{\addvspace {10\p@ }}
|
||||
\@writefile{lot}{\addvspace {10\p@ }}
|
||||
\@writefile{toc}{\contentsline {chapter}{\numberline {7}Advanced deep-learning best practices}{18}{}\protected@file@percent }
|
||||
\@writefile{lof}{\addvspace {10\p@ }}
|
||||
\@writefile{lot}{\addvspace {10\p@ }}
|
||||
\@writefile{toc}{\contentsline {chapter}{\numberline {8}Deep learning for computer vision}{19}{}\protected@file@percent }
|
||||
\@writefile{lof}{\addvspace {10\p@ }}
|
||||
\@writefile{lot}{\addvspace {10\p@ }}
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {A.1}Installing the Python scientific suite}{21}{}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {B.1}Setting up an AWS GPU instance}{24}{}\protected@file@percent }
|
||||
\ttl@finishall
|
||||
\gdef\svg@ink@ver@settings{{\m@ne }{"C:/Program Files/Inkscape/bin/inkscape.exe"}{\m@ne }}
|
||||
\gdef \@abspage@last{42}
|
|
@ -0,0 +1,93 @@
|
|||
\indexentry{Artificial Neural Networks}{1}
|
||||
\indexentry{Convolutional Neural Networks}{3}
|
||||
\indexentry{Recurrent Neural Networks}{3}
|
||||
\indexentry{Deep Learning Frameworks}{4}
|
||||
\indexentry{Supervised Learning}{4}
|
||||
\indexentry{Unsupervised Learning}{6}
|
||||
\indexentry{Reinforcement Learning}{7}
|
||||
\indexentry{Gradient Descent}{7}
|
||||
\indexentry{Backpropagation}{7}
|
||||
\indexentry{Activation Functions}{7}
|
||||
\indexentry{Dropout Regularization}{8}
|
||||
\indexentry{Batch Normalization}{8}
|
||||
\indexentry{Transfer Learning}{10}
|
||||
\indexentry{Generative Adversarial Networks}{11}
|
||||
\indexentry{Autoencoders}{11}
|
||||
\indexentry{Natural Language Processing}{11}
|
||||
\indexentry{Image Classification}{11}
|
||||
\indexentry{Object Detection}{11}
|
||||
\indexentry{Semantic Segmentation}{11}
|
||||
\indexentry{Speech Recognition}{11}
|
||||
\indexentry{Time Series Prediction}{11}
|
||||
\indexentry{Hyperparameter Tuning}{11}
|
||||
\indexentry{Model Evaluation Metrics}{11}
|
||||
\indexentry{Overfitting}{11}
|
||||
\indexentry{Underfitting}{11}
|
||||
\indexentry{Data Augmentation}{12}
|
||||
\indexentry{Fine-tuning}{13}
|
||||
\indexentry{Long Short-Term Memory (LSTM)}{14}
|
||||
\indexentry{Attention Mechanism}{16}
|
||||
\indexentry{Algorithmic Complexity}{16}
|
||||
\indexentry{Bayesian Inference}{16}
|
||||
\indexentry{Clustering Techniques}{16}
|
||||
\indexentry{Dimensionality Reduction}{16}
|
||||
\indexentry{Ensemble Methods}{16}
|
||||
\indexentry{X-means Clustering}{16}
|
||||
\indexentry{Yield Curve Prediction}{16}
|
||||
\indexentry{Decision Boundary}{16}
|
||||
\indexentry{Evolutionary Algorithms}{16}
|
||||
\indexentry{Adversarial Examples}{16}
|
||||
\indexentry{Batch Gradient Descent}{16}
|
||||
\indexentry{Capsule Networks}{16}
|
||||
\indexentry{Deep Reinforcement Learning}{16}
|
||||
\indexentry{Ensemble Learning}{16}
|
||||
\indexentry{Fuzzy Logic}{16}
|
||||
\indexentry{Explainable AI (XAI)}{17}
|
||||
\indexentry{Feature Engineering}{17}
|
||||
\indexentry{Graph Neural Networks}{17}
|
||||
\indexentry{Hierarchical Clustering}{17}
|
||||
\indexentry{Instance-based Learning}{17}
|
||||
\indexentry{Kernel Methods}{17}
|
||||
\indexentry{Zero-shot Learning}{17}
|
||||
\indexentry{Active Learning}{17}
|
||||
\indexentry{Genetic Algorithms}{17}
|
||||
\indexentry{Hebbian Learning}{17}
|
||||
\indexentry{Instance Segmentation}{17}
|
||||
\indexentry{Knowledge Graphs}{17}
|
||||
\indexentry{Label Smoothing}{17}
|
||||
\indexentry{Memory Augmented Networks}{17}
|
||||
\indexentry{Non-Maximum Suppression}{17}
|
||||
\indexentry{One-shot Learning}{17}
|
||||
\indexentry{Self-Supervised Learning}{18}
|
||||
\indexentry{Latent Dirichlet Allocation}{18}
|
||||
\indexentry{Model Interpretability}{18}
|
||||
\indexentry{Neural Architecture Search}{18}
|
||||
\indexentry{Online Learning}{18}
|
||||
\indexentry{Precision-Recall Curve}{18}
|
||||
\indexentry{Bayesian Optimization}{18}
|
||||
\indexentry{Collaborative Filtering}{18}
|
||||
\indexentry{Policy Gradient Methods}{18}
|
||||
\indexentry{Quantum Computing}{18}
|
||||
\indexentry{Random Forests}{18}
|
||||
\indexentry{Self-Organizing Maps}{18}
|
||||
\indexentry{Text Mining}{18}
|
||||
\indexentry{Unstructured Data}{18}
|
||||
\indexentry{Variational Autoencoders}{18}
|
||||
\indexentry{Weight Initialization}{18}
|
||||
\indexentry{Temporal Convolutional Networks}{18}
|
||||
\indexentry{Value Iteration}{18}
|
||||
\indexentry{Universal Approximation Theorem}{18}
|
||||
\indexentry{Value Iteration}{18}
|
||||
\indexentry{Weak Supervision}{18}
|
||||
\indexentry{XGBoost}{18}
|
||||
\indexentry{Yield Curve Modeling}{18}
|
||||
\indexentry{Zero-day Attacks Detection}{18}
|
||||
\indexentry{Attention-based Models}{18}
|
||||
\indexentry{Bayesian Deep Learning}{18}
|
||||
\indexentry{Contrastive Learning}{18}
|
||||
\indexentry{Dropout Layers}{18}
|
||||
\indexentry{Explainability in AI}{18}
|
||||
\indexentry{Federated Learning}{19}
|
||||
\indexentry{Quantum Machine Learning}{19}
|
||||
\indexentry{Regularization Techniques}{19}
|
||||
\indexentry{Stochastic Gradient Descent}{19}
|
|
@ -0,0 +1,10 @@
|
|||
This is makeindex, version 2.16 [MiKTeX 24.4].
|
||||
Scanning style file ./index_style.ist
|
||||
** Input style error (file = ./index_style.ist, line = 1):
|
||||
-- Unknown specifier #.
|
||||
.....done (5 attributes redefined, 1 ignored).
|
||||
Scanning input file main.idx....done (93 entries accepted, 0 rejected).
|
||||
Sorting entries....done (636 comparisons).
|
||||
Generating output file main.ind....done (269 lines written, 0 warnings).
|
||||
Output written in main.ind.
|
||||
Transcript written in main.ilg.
|
|
@ -0,0 +1,269 @@
|
|||
\begin{theindex}
|
||||
{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
A
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Activation Functions ~7
|
||||
\item Active Learning ~17
|
||||
\item Adversarial Examples ~16
|
||||
\item Algorithmic Complexity ~16
|
||||
\item Artificial Neural Networks ~1
|
||||
\item Attention Mechanism ~16
|
||||
\item Attention-based Models ~18
|
||||
\item Autoencoders ~11
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
B
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Backpropagation ~7
|
||||
\item Batch Gradient Descent ~16
|
||||
\item Batch Normalization ~8
|
||||
\item Bayesian Deep Learning ~18
|
||||
\item Bayesian Inference ~16
|
||||
\item Bayesian Optimization ~18
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
C
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Capsule Networks ~16
|
||||
\item Clustering Techniques ~16
|
||||
\item Collaborative Filtering ~18
|
||||
\item Contrastive Learning ~18
|
||||
\item Convolutional Neural Networks ~3
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
D
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Data Augmentation ~12
|
||||
\item Decision Boundary ~16
|
||||
\item Deep Learning Frameworks ~4
|
||||
\item Deep Reinforcement Learning ~16
|
||||
\item Dimensionality Reduction ~16
|
||||
\item Dropout Layers ~18
|
||||
\item Dropout Regularization ~8
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
E
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Ensemble Learning ~16
|
||||
\item Ensemble Methods ~16
|
||||
\item Evolutionary Algorithms ~16
|
||||
\item Explainability in AI ~18
|
||||
\item Explainable AI (XAI) ~17
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
F
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Feature Engineering ~17
|
||||
\item Federated Learning ~19
|
||||
\item Fine-tuning ~13
|
||||
\item Fuzzy Logic ~16
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
G
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Generative Adversarial Networks ~11
|
||||
\item Genetic Algorithms ~17
|
||||
\item Gradient Descent ~7
|
||||
\item Graph Neural Networks ~17
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
H
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Hebbian Learning ~17
|
||||
\item Hierarchical Clustering ~17
|
||||
\item Hyperparameter Tuning ~11
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
I
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Image Classification ~11
|
||||
\item Instance Segmentation ~17
|
||||
\item Instance-based Learning ~17
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
K
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Kernel Methods ~17
|
||||
\item Knowledge Graphs ~17
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
L
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Label Smoothing ~17
|
||||
\item Latent Dirichlet Allocation ~18
|
||||
\item Long Short-Term Memory (LSTM) ~14
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
M
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Memory Augmented Networks ~17
|
||||
\item Model Evaluation Metrics ~11
|
||||
\item Model Interpretability ~18
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
N
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Natural Language Processing ~11
|
||||
\item Neural Architecture Search ~18
|
||||
\item Non-Maximum Suppression ~17
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
O
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Object Detection ~11
|
||||
\item One-shot Learning ~17
|
||||
\item Online Learning ~18
|
||||
\item Overfitting ~11
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
P
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Policy Gradient Methods ~18
|
||||
\item Precision-Recall Curve ~18
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
Q
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Quantum Computing ~18
|
||||
\item Quantum Machine Learning ~19
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
R
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Random Forests ~18
|
||||
\item Recurrent Neural Networks ~3
|
||||
\item Regularization Techniques ~19
|
||||
\item Reinforcement Learning ~7
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
S
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Self-Organizing Maps ~18
|
||||
\item Self-Supervised Learning ~18
|
||||
\item Semantic Segmentation ~11
|
||||
\item Speech Recognition ~11
|
||||
\item Stochastic Gradient Descent ~19
|
||||
\item Supervised Learning ~4
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
T
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Temporal Convolutional Networks ~18
|
||||
\item Text Mining ~18
|
||||
\item Time Series Prediction ~11
|
||||
\item Transfer Learning ~10
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
U
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Underfitting ~11
|
||||
\item Universal Approximation Theorem ~18
|
||||
\item Unstructured Data ~18
|
||||
\item Unsupervised Learning ~6
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
V
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Value Iteration ~18
|
||||
\item Variational Autoencoders ~18
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
W
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Weak Supervision ~18
|
||||
\item Weight Initialization ~18
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
X
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item X-means Clustering ~16
|
||||
\item XGBoost ~18
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
Y
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Yield Curve Modeling ~18
|
||||
\item Yield Curve Prediction ~16
|
||||
|
||||
\vspace{12pt}{\ChapterMarkFont\fontsize{12}{14}\selectfont\color{ChapTitleColor}
|
||||
|
||||
Z
|
||||
|
||||
\vspace*{-5pt} \rule{\linewidth}{0.4pt}} \vspace*{-8pt}
|
||||
\AuthorNameFont\fontsize{10}{12}\selectfont
|
||||
\item Zero-day Attacks Detection ~18
|
||||
\item Zero-shot Learning ~17
|
||||
|
||||
\end{theindex}
|
|
@ -0,0 +1,530 @@
|
|||
\documentclass[a4paper,twoside,openany]{book}
|
||||
|
||||
%% Using the Custom Style File
|
||||
\usepackage{ManningBook}
|
||||
%\usepackage{showframe}
|
||||
\usepackage{kantlipsum}
|
||||
|
||||
\setlength{\textheight}{665pt}
|
||||
\setlength{\footskip}{40pt}
|
||||
|
||||
\allowdisplaybreaks
|
||||
|
||||
\begin{document}
|
||||
|
||||
%% Cover, Title Page, TOC, Preface, and others
|
||||
\frontmatter
|
||||
|
||||
% The Cover
|
||||
\includepdf[width=\paperwidth, height=\paperheight]{
|
||||
External PDF Pages/DLCover.pdf}
|
||||
|
||||
% The Book Title Standalone Page and Consecutive Blank One
|
||||
\thispagestyle{empty}
|
||||
\centerline{\HeaderFont\fontsize{16}{18}\color{ChapTitleColor}\selectfont
|
||||
Deep Learning with Python}
|
||||
\afterpage{\blankpage}
|
||||
|
||||
\pagebreak
|
||||
|
||||
% The Book Title + Author Name + Publisher Page
|
||||
\let\cleardoublepage\clearpage
|
||||
\thispagestyle{empty}
|
||||
\vspace*{7cm}
|
||||
{\ChapHeadFont\fontsize{50}{52}\color{ChapTitleColor} \selectfont \raggedleft Deep Learning \\[8pt] \hspace{6.5cm} with Python}
|
||||
|
||||
\vspace{3cm}
|
||||
|
||||
{\hfill \AuthorNameFont\fontsize{14}{16}\selectfont
|
||||
FRAN\MakeUppercase{ç}OIS CHOLLET}
|
||||
%% Branding
|
||||
\begin{figure}[b]
|
||||
\hfill\includesvg[scale=0.3]{manning_logo.svg} \tikzmark{ManningBrand}
|
||||
\end{figure}
|
||||
\begin{tikzpicture}[remember picture, overlay]
|
||||
\node[anchor=north] at ([shift={(-1.4,0)}]{pic cs:ManningBrand}) {\HighlightBodyFont\fontsize{18}{20}\selectfont MANNING};
|
||||
\node[anchor=north] at ([shift={(-1.85,-0.7)}]{pic cs:ManningBrand}) {\HighlightBodyFont\fontsize{14}{16}\selectfont SHELTER ISLAND};
|
||||
\end{tikzpicture}
|
||||
|
||||
\newpage
|
||||
|
||||
\thispagestyle{empty}
|
||||
|
||||
{
|
||||
\AuthorNameFont\fontsize{11}{12}\selectfont
|
||||
\noindent For online information and ordering Of this and other Manning books, please visit \\[2pt]
|
||||
www.manning.com. The publisher offers discounts on this book when ordered in quantity. \\[2pt]
|
||||
For more information, please contact
|
||||
|
||||
\begin{verse}
|
||||
Special Sales Department \\[1pt]
|
||||
Manning Publications Co. \\[1pt]
|
||||
20 Baldwin Road \\[1pt]
|
||||
PO Box 761 \\[1pt]
|
||||
Shelter Island, NY 11964 \\[1pt]
|
||||
Email: orders@manning.com
|
||||
\end{verse}
|
||||
|
||||
\vspace{0.5cm}
|
||||
|
||||
\noindent\textcopyright\ 2018 by Manning Publications Co. All rights reserved.
|
||||
|
||||
\vspace{30pt}
|
||||
|
||||
\par\noindent No part Of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher.
|
||||
|
||||
\vspace{30pt}
|
||||
|
||||
\par\noindent Many Of the designations used by manufacturers and sellers to distinguish their products are clairned as tradernarks. those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps.
|
||||
|
||||
\vspace{30pt}
|
||||
|
||||
\llap{\scalebox{0.8}{$\acidfree$}\hspace{4pt}\vspace*{-11pt}}\noindent Recognizing the importance of preserving what has been written, it is Manning's policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15 percent recycled and processed without the use of elemental chlorine.
|
||||
|
||||
\vspace{1.5cm}
|
||||
|
||||
\noindent \includesvg[scale=0.25]{manning_logo.svg} \tikzmark{ManningLower}
|
||||
|
||||
\begin{tikzpicture}[remember picture, overlay]
|
||||
\node[anchor=west] at ([shift={(0,0.65)}]{pic cs:ManningLower}) {Manning Publications Co.};
|
||||
\node[anchor=west] at ([shift={(0,0.25)}]{pic cs:ManningLower}) {20 Baldwin Road};
|
||||
\node[anchor=west] at ([shift={(0,-0.20)}]{pic cs:ManningLower}){PO Box 761};
|
||||
\node[anchor=west] at ([shift={(0,-0.60)}]{pic cs:ManningLower}){Shelter Island, NY 11964};
|
||||
\node[anchor=west] at ([shift={(5,-1.3)}]{pic cs:ManningLower}){
|
||||
\setlength\extrarowheight{-7pt}
|
||||
\begin{tabular}{r@{\hspace{7pt}}l}
|
||||
Development editor: & Toni Arritola \\
|
||||
Technical development editor: & Jerry Gaines \\
|
||||
Review editor: & Aleksandar Dragosavljevi$\acute{\text{c}}$\\
|
||||
Project editor: & Tiffany Taylor \\
|
||||
Copyeditor: & Tiffany Taylor \\
|
||||
Proofreader: & Katie Tennant \\
|
||||
Technical proofreaders: & Alex Ott and Richard Tobias \\
|
||||
Typesetter: & Dottie Marsico \\
|
||||
Cover designer: & Marija Tudor
|
||||
\end{tabular}
|
||||
};
|
||||
\end{tikzpicture}
|
||||
|
||||
\vspace{4cm}
|
||||
|
||||
\begin{verse}
|
||||
ISBN 9781617294433 \\[3pt]
|
||||
Printed in the United States of America \\[3pt]
|
||||
1 2 3 4 5 6 7 8 9 10 - EBM - 22 21 20 19 18 17
|
||||
\end{verse}
|
||||
|
||||
}
|
||||
|
||||
%% The Short TOC
|
||||
\renewcommand{\contentsname}{brief contents}
|
||||
\setcounter{tocdepth}{0}
|
||||
\tableofcontents
|
||||
\thispagestyle{FMPageStyle}
|
||||
|
||||
\afterpage{
|
||||
\null
|
||||
\thispagestyle{empty}
|
||||
}
|
||||
|
||||
\thispagestyle{FMPageStyle}
|
||||
\newpage
|
||||
|
||||
\pagestyle{FrontMatterMainPages} %%% Style for Consecutive Pages
|
||||
|
||||
\chapter*{preface} \chaptermark{preface}
|
||||
\thispagestyle{FMPageStyle}
|
||||
\kant[1-6]
|
||||
|
||||
\chapter*{acknowledgments} \chaptermark{acknowledgments}
|
||||
\thispagestyle{FMPageStyle}
|
||||
\kant[1]
|
||||
|
||||
\chapter*{about this book} \chaptermark{about this book}
|
||||
\thispagestyle{FMPageStyle}
|
||||
\kant[1-6]
|
||||
|
||||
\chapter*{about the author} \chaptermark{about the author}
|
||||
\thispagestyle{FMPageStyle}
|
||||
\begin{wrapfigure}{l}{0.3\textwidth}
|
||||
\centering
|
||||
\vspace{-\baselineskip} % Aligns the Upper Tip of Image to 1st Line
|
||||
\includegraphics[width=\linewidth]{author.jpg}
|
||||
\end{wrapfigure}
|
||||
\kant[1]
|
||||
|
||||
\chapter*{about the cover} \chaptermark{about the cover}
|
||||
\thispagestyle{FMPageStyle}
|
||||
\kant[1]
|
||||
|
||||
\afterpage{\blankpage}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
%% Main Content
|
||||
\mainmatter
|
||||
|
||||
\part[FUNDAMENTALS OF DEEP LEARNING]{Fundamentals \\ of deep learning}
|
||||
\thispagestyle{empty}
|
||||
|
||||
\begin{spacing}{1.3}
|
||||
\BigPartLetter{C}hapters 1-4 of this book will give you a foundational understanding of what deep learning is, what it can achieve, and how it works. It will also make you familiar with the canonical workflow for solving data problems using deep learning. If you
|
||||
aren 't already highly knowledgeable about deep learning, you should definitely begin by reading part I in full before moving on to the practical applications in part 2.
|
||||
\end{spacing} \index{Artificial Neural Networks}
|
||||
|
||||
\afterpage{
|
||||
\null \thispagestyle{empty} \newpage
|
||||
}
|
||||
|
||||
\chapter[Vectors, matrices, and tensors in machine learning]{Vectors, matrices, and \\ tensors in machine learning}
|
||||
|
||||
\pagestyle{ChapterMainStyle} %% Applying the Main Style
|
||||
|
||||
\begin{ChapterTopics}{0.7}
|
||||
\item Vectors and matrices and their role in data science
|
||||
\item Working with eigenvalues and eigenvectors
|
||||
\item Finding the axes of a hyper-ellipse
|
||||
\end{ChapterTopics} \index{Convolutional Neural Networks}
|
||||
|
||||
\begin{spacing}{1.5}
|
||||
\section{First Section}
|
||||
\kant[1]
|
||||
\begin{ManNote}
|
||||
The dot product notation can compactly represent the model output as
|
||||
$y = \overrightarrow{w}\cdot\overrightarrow{x}+b$. The representation does not increase in size even when the number of inputs and weights is large.
|
||||
\end{ManNote} \index{Recurrent Neural Networks}
|
||||
\kant[1]
|
||||
|
||||
\subsection{First Subsection}
|
||||
\kant[1] \index{Deep Learning Frameworks}
|
||||
|
||||
\begin{ManHighlight}{Linear Algebra Essentials}
|
||||
\par\noindent In linear algebra, vectors, matrices, and tensors form the cornerstone of understanding various mathematical concepts and real-world applications. Vectors represent quantities with both magnitude and direction, while matrices serve as arrays of numbers facilitating operations like addition, multiplication, and transformations. Tensors extend these concepts, enabling the representation of higher-order data structures. Mastery of these fundamental objects is essential for tackling complex problems across numerous fields, from physics to machine learning.
|
||||
\end{ManHighlight} \index{Supervised Learning}
|
||||
|
||||
\kant[1]
|
||||
|
||||
%% Code Listing and Annotation
|
||||
% 1. List and Throw TiKZ Marks
|
||||
\begin{lstlisting}[caption= Introducting Matrices via PyTorch]
|
||||
@\\[30pt]@
|
||||
X@\tikzmark{XMatrix1}@ = torch.tensor( @\tikzmark{XTensor}@
|
||||
[
|
||||
[0.11, 0.09], [0.01, 0.02], [0.98, 0.91],
|
||||
[0.12, 0.21], [0.98, 0.99], [0.85, 0.87],
|
||||
[0.03, 0.14], [0.55, 0.45] @\tikzmark{XMatrix2}@
|
||||
]
|
||||
)
|
||||
|
||||
print(''Shape of the matrix is: ''.format(X.shape)) @\tikzmark{XShape}@
|
||||
|
||||
first_element = X[0, 0] @\tikzmark{XFirst}@
|
||||
|
||||
row_0 = X[0, :] @\tikzmark{XRow0}@
|
||||
row_1 = X[1, 0:2] @\tikzmark{XRow1}@
|
||||
|
||||
column_0 = X[:, 0] @\tikzmark{XCol0}@
|
||||
column_1 = X[:, 1] @\tikzmark{XCol1}@
|
||||
\end{lstlisting}
|
||||
% 2. Annotate at Placed Marks: <Run Multiple Times to Resolve !!>
|
||||
\begin{tikzpicture}[remember picture, overlay,
|
||||
every node/.append style={font=\HighlightTitleFont}]
|
||||
%% Annotation 1
|
||||
\RightArrowedCornerNote{Ann1}{-0.5cm}{-1pt}{XMatrix1}{~A matrix is a 2D array of numbers: i.e., a 2D tensor. \\[-5pt] ~The entire training data input set for a machine-learning model can be viewed as a matrix. \\[-5pt] ~Each input instance is one row. \\[-5pt] ~Row count $\equiv$ number of training examples, column count $\equiv$ training instance size}{-1}{2}{-0.4}{0.2}
|
||||
%% Annotation 2
|
||||
\RightWalledNote{Ann2}{4cm}{0.65cm}{XMatrix2}{~Cat-brain training data input: \\[-5pt]~8 examples, each with two \\[-5pt] ~values (hardness, sharpness). \\[-5pt] ~An 8 x 2 tensor is created by \\[-5pt] ~directly specifying values.}{-0.5}{1.1}{1.1}
|
||||
%% Annotation 3
|
||||
\RightWalledNote{Ann3}{0.8cm}{3pt}{XShape}{~The shape of a tensor is a list. \\[-5pt] ~For a matrix, the first list \\[-5pt] ~element is num rows; the \\[-5pt] ~second list element is num \\[-5pt]~columns.}{-0.8}{1.1}{1.1}
|
||||
%% Annotation 4
|
||||
\RightWalledNote{Ann4}{1.5cm}{3pt}{XFirst}{~Square brackets extract \\[-5pt]~individual matrix elements.}{-1}{0.4}{0.4}
|
||||
%% Annotations 5-8
|
||||
\LeftArrowedNote{Ann5}{1.5cm}{3pt}{XRow0}{~A standalone colon operator denotes all possibel indices.}{-1.6}
|
||||
\LeftArrowedNote{Ann6}{1.5cm}{3pt}{XRow1}{~The colon operator denotes the range of indices.}{-1.3}
|
||||
\LeftArrowedNote{Ann7}{1.5cm}{3pt}{XCol0}{~0th column}{-1}
|
||||
\LeftArrowedNote{Ann8}{1.5cm}{3pt}{XCol1}{~1st column}{-1}
|
||||
\end{tikzpicture}
|
||||
|
||||
\kant[1] \index{Unsupervised Learning}
|
||||
|
||||
\begin{figure}[h]
|
||||
\centering
|
||||
\includegraphics[scale=0.7]{Manning.jpg}
|
||||
\caption{\centering Some Temporary Caption Text}
|
||||
\end{figure}
|
||||
|
||||
\vspace{0.5cm}
|
||||
|
||||
\ManHeadLine{15}{16}{RECENTLY ADDED MANNING TITLES \\[-8pt]}
|
||||
|
||||
\begin{figure}[h]
|
||||
\centering
|
||||
\begin{subfigure}[b]{0.3\textwidth}
|
||||
\centering
|
||||
\includegraphics[width=0.45\textwidth]{Curcic-MF-HI.png}
|
||||
\caption{\centering Modern Fortran}
|
||||
\end{subfigure}
|
||||
%
|
||||
\begin{subfigure}[b]{0.3\textwidth}
|
||||
\centering
|
||||
\includegraphics[width=0.45\textwidth]{Lerner-Python-HI.png}
|
||||
\caption{\centering Python Workout}
|
||||
\end{subfigure}
|
||||
\\[10pt]
|
||||
\begin{subfigure}[b]{0.3\textwidth}
|
||||
\centering
|
||||
\includegraphics[width=0.45\textwidth]{Robey-PHPC-HI.png}
|
||||
\caption{\centering Parallel Computing}
|
||||
\end{subfigure}
|
||||
%
|
||||
\begin{subfigure}[b]{0.3\textwidth}
|
||||
\centering
|
||||
\includegraphics[width=0.45\textwidth]{Whitington-HI.png}
|
||||
\caption{\centering Computers and Books}
|
||||
\end{subfigure}
|
||||
\caption{\centering Some Recent Manning Books}
|
||||
\end{figure}
|
||||
|
||||
\kant[1-2] \index{Reinforcement Learning}
|
||||
|
||||
\vspace{0.5cm}
|
||||
|
||||
\ManHeadLine{15}{16}{SIDEWAY CAPTIONING FOR FLOATS \\[-8pt]}
|
||||
|
||||
%% Sideway Captioning for Floats:
|
||||
% 1. Using the sidecap Package with <rightcaption> global option
|
||||
{
|
||||
\sidecaptionvpos{figure}{t} % Vertical Positioning of Caption also <c,b>
|
||||
\begin{SCfigure}[10][h]
|
||||
\includegraphics[width=0.4\textwidth]{Whitington-HI.png}
|
||||
\caption{How Computers Make Books introduces what’s wonderful about computer science by showing how computers have transformed art of publishing books. Author and publishing software developer John Whitington reveals the elegant computer science solutions invented to solve big publishing challenges.
|
||||
}
|
||||
\end{SCfigure}
|
||||
} \index{Gradient Descent}
|
||||
% 2. Using minipage environment
|
||||
\begin{figure}[h]
|
||||
\begin{minipage}{0.5\textwidth}
|
||||
\caption{How Computers Make Books introduces what’s wonderful about computer science by showing how computers have transformed art of publishing books. Author and publishing software developer John Whitington reveals the elegant computer science solutions invented to solve big publishing challenges.}
|
||||
\end{minipage} \index{Backpropagation}
|
||||
\hspace{10pt}
|
||||
\begin{minipage}{0.5\textwidth}
|
||||
\includegraphics[width=0.5\textwidth]{Whitington-HI.png}
|
||||
\end{minipage} \index{Activation Functions}
|
||||
\end{figure}
|
||||
|
||||
\kant[1] \index{Dropout Regularization}
|
||||
|
||||
\vspace{0.25cm}
|
||||
|
||||
\begin{table}[h]
|
||||
\caption{Example training dataset for our toy machine
|
||||
learning-based cat brain}
|
||||
\centering
|
||||
\begin{tblr}{
|
||||
colspec={|c|c|c|c|},
|
||||
row{1}={bg=TableHeadRowColor},
|
||||
rowsep=5pt
|
||||
}
|
||||
\hline
|
||||
& Input Value: Hardness & Input Value: Sharpness &
|
||||
Output: Threat Score \\
|
||||
\hline
|
||||
0 & 0.11 & 0.09 & -0.8 \\
|
||||
1 & 0.01 & 0.02 & -0.97 \\
|
||||
2 & 0.98 & 0.91 & 0.89 \\
|
||||
3 & 0.12 & 0.21 & -0.68 \\
|
||||
4 & 0.98 & 0.99 & 0.95 \\
|
||||
5 & 0.85 & 0.87 & 0.74 \\
|
||||
6 & 0.03 & 0.14 & -0.88 \\
|
||||
7 & 0.55 & 0.45 & 0.00 \\
|
||||
\hline
|
||||
\end{tblr}
|
||||
\end{table} \index{Batch Normalization}
|
||||
|
||||
\kant[1]
|
||||
|
||||
\begin{align}
|
||||
\begin{aligned}
|
||||
a_0 + \cfrac{1}{
|
||||
a_1 + \cfrac{1}{
|
||||
a_2 + \cfrac{1}{
|
||||
a_3 + \cdots}}}
|
||||
\end{aligned}
|
||||
\label{equation:one}
|
||||
\end{align}
|
||||
|
||||
\begin{align}
|
||||
\begin{aligned}
|
||||
c_0 &= \cfrac{3}{1} = 3.0 \\
|
||||
c_1 &= 3 + \cfrac{1}{7} = \frac{22}{7} = 3.142857142857143 \\
|
||||
c_2 &= 3 + \cfrac{1}{7 + \cfrac{1}{15}} = \frac{333}{106} = 3.141509433962264 \\
|
||||
c_3 &= 3 + \cfrac{1}{7 + \cfrac{1}{15 + \cfrac{1}{1}}} = \frac{355}{113}
|
||||
= 3.1415929203539825 \\
|
||||
c_4 &= 3 + \cfrac{1}{7 + \cfrac{1}{15 + \cfrac{1}{1 + \cfrac{1}{292}}}} =
|
||||
\frac{103993}{33102} = 3.1415926530119025 \\
|
||||
\end{aligned}
|
||||
\label{equation:two}
|
||||
\end{align}
|
||||
|
||||
{
|
||||
\fontsize{10}{0}\selectfont
|
||||
\begin{align}
|
||||
\begin{aligned}
|
||||
\frac{44237}{111361} =
|
||||
0 + \cfrac{1}{
|
||||
2 + \cfrac{1}{
|
||||
1 + \cfrac{1}{
|
||||
1 + \cfrac{1}{
|
||||
13 + \cfrac{1}{
|
||||
1 + \cfrac{1}{
|
||||
8 + \cfrac{1}{
|
||||
6 + \cfrac{1}{
|
||||
1 + \cfrac{1}{
|
||||
2 + \cfrac{1}{
|
||||
1 + \cfrac{1}{
|
||||
1 + \cfrac{1}{
|
||||
3}}}}}}}}}}}} = [0; 2, 1, 1, 13, 1, 8, 6, 1, 2, 1, 1, 3]
|
||||
\end{aligned}
|
||||
\label{equation:three}
|
||||
\end{align}
|
||||
}
|
||||
|
||||
\kant[1-2]
|
||||
|
||||
\begin{ChapterSummary}
|
||||
\item Understanding the fundamental concepts of vectors, matrices, and tensors
|
||||
in linear algebra.
|
||||
\item Exploring the geometric and algebraic representations of vectors and their
|
||||
basic operations.
|
||||
\item Investigating matrices as arrays of numbers and their operations, including addition, multiplication, and special matrix types.
|
||||
\item Analyzing linear transformations and their connection to matrices, eigenvalues, and eigenvectors.
|
||||
\item Introducing tensors as generalizations of vectors and matrices, with applications in various fields such as physics, engineering, and machine learning.
|
||||
\end{ChapterSummary} \index{Transfer Learning}
|
||||
\end{spacing}
|
||||
|
||||
\pagebreak
|
||||
|
||||
\chapter{What is deep learning?} \index{Generative Adversarial Networks}
|
||||
\section{Artificial intelligence, machine learning, and deep learning}
|
||||
\subsection{Aniftcial intelligence}
|
||||
\subsection{Machine learning} \index{Autoencoders}
|
||||
\subsection{Learning representations from data}
|
||||
\index{Natural Language Processing}
|
||||
\subsection{Understanding how deep learning works}
|
||||
\index{Image Classification}
|
||||
\subsection{What deep learning has achieved so far} \index{Object Detection}
|
||||
\subsection{Don 't believe the short-term hype}
|
||||
\index{Semantic Segmentation}
|
||||
\section{Before deep learning: a brief history of machine learning}
|
||||
\subsection{Probabilistic modeling} \index{Speech Recognition}
|
||||
\subsection{Early neural networks} \index{Time Series Prediction}
|
||||
\subsection{Kema methods} \index{Hyperparameter Tuning}
|
||||
\subsection{Decision trees, random forests, and gradient boosting machines}
|
||||
\subsection{Back to neural networks} \index{Model Evaluation Metrics}
|
||||
\subsection{What makes deep learning different}
|
||||
\index{Overfitting}
|
||||
\index{Underfitting}
|
||||
|
||||
\chapter{Orthogonality and Independence in Linear Algebra}
|
||||
\index{Data Augmentation}
|
||||
\chapter{Algorithms of Reinforcement Learning for Robotics}
|
||||
\index{Fine-tuning}
|
||||
|
||||
%%%%%%%%%% SECOND PART %%%%%%%%%%%%%%
|
||||
\part[DEEP LEARNINF IN PRACTICE]{Deep learning \\ in practice}
|
||||
\thispagestyle{empty}
|
||||
|
||||
\begin{spacing}{1.3}
|
||||
\BigPartLetter{C}hapters 4-8 of this book will give you a foundational understanding of what deep learning is, what it can achieve, and how it works. It will also make you familiar with the canonical workflow for solving data problems using deep learning. If you
|
||||
aren 't already highly knowledgeable about deep learning, you should definitely begin by reading part I in full before moving on to the practical applications in part 2.
|
||||
\end{spacing} \index{Long Short-Term Memory (LSTM)}
|
||||
|
||||
\afterpage{
|
||||
\null \thispagestyle{empty} \newpage
|
||||
}
|
||||
|
||||
\chapter{Fundamentals of machine learning}
|
||||
\index{Attention Mechanism} \index{Algorithmic Complexity}
|
||||
\index{Bayesian Inference} \index{Clustering Techniques}
|
||||
\index{Dimensionality Reduction} \index{Ensemble Methods}
|
||||
\index{X-means Clustering} \index{Yield Curve Prediction}
|
||||
\index{Decision Boundary} \index{Evolutionary Algorithms}
|
||||
\index{Adversarial Examples} \index{Batch Gradient Descent}
|
||||
\index{Capsule Networks} \index{Deep Reinforcement Learning}
|
||||
\index{Ensemble Learning} \index{Fuzzy Logic}
|
||||
\chapter{Generative deep learning}
|
||||
\index{Explainable AI (XAI)} \index{Feature Engineering}
|
||||
\index{Graph Neural Networks} \index{Hierarchical Clustering}
|
||||
\index{Instance-based Learning} \index{Kernel Methods}
|
||||
\index{Zero-shot Learning} \index{Active Learning}
|
||||
\index{Genetic Algorithms} \index{Hebbian Learning}
|
||||
\index{Instance Segmentation} \index{Knowledge Graphs}
|
||||
\index{Label Smoothing} \index{Memory Augmented Networks}
|
||||
\index{Non-Maximum Suppression} \index{One-shot Learning}
|
||||
\chapter{Advanced deep-learning best practices}
|
||||
\index{Self-Supervised Learning} \index{Latent Dirichlet Allocation}
|
||||
\index{Model Interpretability} \index{Neural Architecture Search}
|
||||
\index{Online Learning} \index{Precision-Recall Curve}
|
||||
\index{Bayesian Optimization} \index{Collaborative Filtering}
|
||||
\index{Policy Gradient Methods} \index{Quantum Computing}
|
||||
\index{Random Forests} \index{Self-Organizing Maps}
|
||||
\index{Text Mining} \index{Unstructured Data}
|
||||
\index{Variational Autoencoders} \index{Weight Initialization}
|
||||
\index{Temporal Convolutional Networks} \index{Value Iteration}
|
||||
\index{Universal Approximation Theorem} \index{Value Iteration}
|
||||
\index{Weak Supervision} \index{XGBoost} \index{Yield Curve Modeling}
|
||||
\index{Zero-day Attacks Detection} \index{Attention-based Models}
|
||||
\index{Bayesian Deep Learning} \index{Contrastive Learning}
|
||||
\index{Dropout Layers} \index{Explainability in AI}
|
||||
\chapter{Deep learning for computer vision}
|
||||
\index{Federated Learning} \index{Quantum Machine Learning}
|
||||
\index{Regularization Techniques} \index{Stochastic Gradient Descent}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
%% Appendix, Bibliography, Index, and others
|
||||
|
||||
\appendix
|
||||
|
||||
% Necessary Step to Proceed with Appendix Chapters made with \chapter*{}
|
||||
\setcounter{chapter}{1}
|
||||
% Redefining \chapter*{} format for Appendices
|
||||
\titleformat{name=\chapter,numberless}[display]
|
||||
{\vspace*{4cm}\raggedleft
|
||||
\ChapHeadFont\fontsize{30pt}{30pt}\selectfont\color{ChapTitleColor}}
|
||||
{appendix \thechapter}
|
||||
{10pt}{}[\LowerRule{0.7}]
|
||||
|
||||
%% Applying the Appendix Page Header
|
||||
\pagestyle{AppendixChapStyle}
|
||||
|
||||
% We use \chapter*{} instead of normal conuted one in order to ommit the Appendix chapters from the "brief contents".
|
||||
\chapter*{Installing Keras and its \\ dependencies on Ubuntu}
|
||||
\chaptermark{Installing Keras and its dependencies on Ubuntu}
|
||||
\kant[1-4]
|
||||
\section{Installing the Python scientific suite}
|
||||
\kant[1-6]
|
||||
|
||||
\stepcounter{chapter}
|
||||
\chapter*{Running JuPyter notebooks \\ on an EC2 GPU instance}
|
||||
\chaptermark{Running JuPyter notebooks on an EC2 GPU instance}
|
||||
\kant[1-4]
|
||||
\section{Setting up an AWS GPU instance}
|
||||
\kant[1-6]
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
\backmatter
|
||||
|
||||
% Redefining \chapter*{} format for the Index both the <title> option to the \makeindex[] in the preamble and the \titleformat commands control the numberless appearance of the "index" title head. I chose to empty the latter, and leave the styling in the \makeindex[]
|
||||
\titleformat{name=\chapter,numberless}[display]{}{}{0pt}{}
|
||||
|
||||
% Applying the Index Page Style
|
||||
\pagestyle{IndexPagesStyle}
|
||||
|
||||
%% The Index
|
||||
\printindex
|
||||
|
||||
\end{document}
|
|
@ -0,0 +1,30 @@
|
|||
\contentsline {part}{1\hspace {1em}FUNDAMENTALS OF DEEP LEARNING}{1}{}%
|
||||
\contentsline {chapter}{\numberline {1}Vectors, matrices, and tensors in machine learning}{3}{}%
|
||||
\contentsline {section}{\numberline {1.1}First Section}{3}{}%
|
||||
\contentsline {subsection}{\numberline {1.1.1}First Subsection}{4}{}%
|
||||
\contentsline {paragraph}{\ChapTopicHeadFont \fontsize {14pt}{15pt}\selectfont \color {SecLevelsColor} Summary}{10}{}%
|
||||
\contentsline {chapter}{\numberline {2}What is deep learning?}{11}{}%
|
||||
\contentsline {section}{\numberline {2.1}Artificial intelligence, machine learning, and deep learning}{11}{}%
|
||||
\contentsline {subsection}{\numberline {2.1.1}Aniftcial intelligence}{11}{}%
|
||||
\contentsline {subsection}{\numberline {2.1.2}Machine learning}{11}{}%
|
||||
\contentsline {subsection}{\numberline {2.1.3}Learning representations from data}{11}{}%
|
||||
\contentsline {subsection}{\numberline {2.1.4}Understanding how deep learning works}{11}{}%
|
||||
\contentsline {subsection}{\numberline {2.1.5}What deep learning has achieved so far}{11}{}%
|
||||
\contentsline {subsection}{\numberline {2.1.6}Don 't believe the short-term hype}{11}{}%
|
||||
\contentsline {section}{\numberline {2.2}Before deep learning: a brief history of machine learning}{11}{}%
|
||||
\contentsline {subsection}{\numberline {2.2.1}Probabilistic modeling}{11}{}%
|
||||
\contentsline {subsection}{\numberline {2.2.2}Early neural networks}{11}{}%
|
||||
\contentsline {subsection}{\numberline {2.2.3}Kema methods}{11}{}%
|
||||
\contentsline {subsection}{\numberline {2.2.4}Decision trees, random forests, and gradient boosting machines}{11}{}%
|
||||
\contentsline {subsection}{\numberline {2.2.5}Back to neural networks}{11}{}%
|
||||
\contentsline {subsection}{\numberline {2.2.6}What makes deep learning different}{11}{}%
|
||||
\contentsline {chapter}{\numberline {3}Orthogonality and Independence in Linear Algebra}{12}{}%
|
||||
\contentsline {chapter}{\numberline {4}Algorithms of Reinforcement Learning for Robotics}{13}{}%
|
||||
\contentsline {part}{2\hspace {1em}DEEP LEARNINF IN PRACTICE}{14}{}%
|
||||
\contentsline {chapter}{\numberline {5}Fundamentals of machine learning}{16}{}%
|
||||
\contentsline {chapter}{\numberline {6}Generative deep learning}{17}{}%
|
||||
\contentsline {chapter}{\numberline {7}Advanced deep-learning best practices}{18}{}%
|
||||
\contentsline {chapter}{\numberline {8}Deep learning for computer vision}{19}{}%
|
||||
\contentsline {section}{\numberline {A.1}Installing the Python scientific suite}{21}{}%
|
||||
\contentsline {section}{\numberline {B.1}Setting up an AWS GPU instance}{24}{}%
|
||||
\contentsfinish
|
|
@ -0,0 +1,58 @@
|
|||
%% Creator: Inkscape 1.3 (0e150ed6c4, 2023-07-21), www.inkscape.org
|
||||
%% PDF/EPS/PS + LaTeX output extension by Johan Engelen, 2010
|
||||
%% Accompanies image file 'manning_logo_svg-tex.pdf' (pdf, eps, ps)
|
||||
%%
|
||||
%% To include the image in your LaTeX document, write
|
||||
%% \input{<filename>.pdf_tex}
|
||||
%% instead of
|
||||
%% \includegraphics{<filename>.pdf}
|
||||
%% To scale the image, write
|
||||
%% \def\svgwidth{<desired width>}
|
||||
%% \input{<filename>.pdf_tex}
|
||||
%% instead of
|
||||
%% \includegraphics[width=<desired width>]{<filename>.pdf}
|
||||
%%
|
||||
%% Images with a different path to the parent latex file can
|
||||
%% be accessed with the `import' package (which may need to be
|
||||
%% installed) using
|
||||
%% \usepackage{import}
|
||||
%% in the preamble, and then including the image with
|
||||
%% \import{<path to file>}{<filename>.pdf_tex}
|
||||
%% Alternatively, one can specify
|
||||
%% \graphicspath{{<path to file>/}}
|
||||
%%
|
||||
%% For more information, please see info/svg-inkscape on CTAN:
|
||||
%% http://tug.ctan.org/tex-archive/info/svg-inkscape
|
||||
%%
|
||||
\begingroup%
|
||||
\makeatletter%
|
||||
\providecommand\color[2][]{%
|
||||
\errmessage{(Inkscape) Color is used for the text in Inkscape, but the package 'color.sty' is not loaded}%
|
||||
\renewcommand\color[2][]{}%
|
||||
}%
|
||||
\providecommand\transparent[1]{%
|
||||
\errmessage{(Inkscape) Transparency is used (non-zero) for the text in Inkscape, but the package 'transparent.sty' is not loaded}%
|
||||
\renewcommand\transparent[1]{}%
|
||||
}%
|
||||
\providecommand\rotatebox[2]{#2}%
|
||||
\newcommand*\fsize{\dimexpr\f@size pt\relax}%
|
||||
\newcommand*\lineheight[1]{\fontsize{\fsize}{#1\fsize}\selectfont}%
|
||||
\ifx\svgwidth\undefined%
|
||||
\setlength{\unitlength}{112.5bp}%
|
||||
\ifx\svgscale\undefined%
|
||||
\relax%
|
||||
\else%
|
||||
\setlength{\unitlength}{\unitlength * \real{\svgscale}}%
|
||||
\fi%
|
||||
\else%
|
||||
\setlength{\unitlength}{\svgwidth}%
|
||||
\fi%
|
||||
\global\let\svgwidth\undefined%
|
||||
\global\let\svgscale\undefined%
|
||||
\makeatother%
|
||||
\begin{picture}(1,1)%
|
||||
\lineheight{1}%
|
||||
\setlength\tabcolsep{0pt}%
|
||||
\put(0,0){\includegraphics[width=\unitlength,page=1]{manning_logo_svg-tex.pdf}}%
|
||||
\end{picture}%
|
||||
\endgroup%
|