Skip to content

Commit

Permalink
Add git commit to IML cheatsheet as well
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Gassmann <tgassmann@student.ethz.ch>
  • Loading branch information
thomasgassmann committed Jul 17, 2024
1 parent 42187ed commit 660828f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Add revision
run: |
GIT_COMMIT=$(git rev-parse --short "$GITHUB_SHA")
sed -i "s/GITCOMMIT/$GIT_COMMIT/g" ./header.tex
sed -i "s/GITCOMMIT/$GIT_COMMIT/g" ./commit.tex
- name: Compile LaTeX document (xelatex)
uses: xu-cheng/latex-action@v2
with:
Expand Down
1 change: 1 addition & 0 deletions commit.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\href{https://github.com/thomasgassmann/eth-cheatsheets/commit/GITCOMMIT}{GITCOMMIT}
2 changes: 1 addition & 1 deletion header.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

\begin{center}
Lizenziert unter CC BY-SA 4.0. Für Urheber, Quellen und Lizenzinformationen, siehe:\\
\href{https://github.com/thomasgassmann/eth-cheatsheets}{github.com/thomasgassmann/eth-cheatsheets}, GITCOMMIT
\href{https://github.com/thomasgassmann/eth-cheatsheets}{github.com/thomasgassmann/eth-cheatsheets}, \input{../commit.tex}
\end{center}
2 changes: 1 addition & 1 deletion iml/chapters/model-error.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\section*{Model Error}
\section*{Model Error \input{../commit.tex}}

\textbf{Empirical Risk} \quad \ $\hat R_D(f) = \frac{1}{n} \sum \mathcal \ell(y, f(x))$

Expand Down
1 change: 1 addition & 0 deletions iml/iml.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[dvipdfmx,unicode]{hyperref}

\usepackage[dvipsnames]{xcolor}
\usepackage{mathptmx}
Expand Down

0 comments on commit 660828f

Please sign in to comment.