Skip to content

Commit acd1828

Browse files
committed
Merge branch 'issue/5'
2 parents 0932459 + e1b4b4d commit acd1828

18 files changed

+24
-11
lines changed

.githooks/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LC_ALL=C
55
current_branch=$(git rev-parse --abbrev-ref HEAD)
66
echo "Running pre-commit hook on branch: $current_branch"
77
if [[ "$current_branch" == "main" ]]; then
8-
echo "Commit on main is now allowed. Please use a feature branch."
8+
echo "Commit on main is not allowed. Please use a feature branch."
99
exit 1
1010
fi
1111

Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3
1+
FROM python:3.10
22

33
RUN apt update \
44
&& apt install -y \
@@ -19,9 +19,9 @@ ENV HOME /home/${USER}
1919

2020
# Create user and setup permissions on /etc/sudoers
2121
RUN useradd -m -s /bin/bash -N -u $UID $USER && \
22-
echo "${USER} ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers && \
23-
chmod 0440 /etc/sudoers && \
24-
chmod g+w /etc/passwd
22+
echo "${USER} ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers && \
23+
chmod 0440 /etc/sudoers && \
24+
chmod g+w /etc/passwd
2525

2626
WORKDIR ${HOME}
2727

@@ -32,11 +32,11 @@ RUN pip install --no-cache-dir -r requirements.txt
3232

3333
# Install zsh - use "Bira" theme with some customization.
3434
RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5/zsh-in-docker.sh)" -- \
35-
-t bira \
36-
-p git \
37-
-p ssh-agent \
38-
-p https://github.com/zsh-users/zsh-autosuggestions \
39-
-p https://github.com/zsh-users/zsh-completions
35+
-t bira \
36+
-p git \
37+
-p ssh-agent \
38+
-p https://github.com/zsh-users/zsh-autosuggestions \
39+
-p https://github.com/zsh-users/zsh-completions
4040

4141
# Install heroku cli
4242
RUN curl https://cli-assets.heroku.com/install-ubuntu.sh | sh

generatepdfs.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#! /bin/bash
2+
3+
# Script to convert jupyter notebooks to PDF files. The pdfs are saved in ./pdfs folder
4+
5+
sudo apt update
6+
sudo apt install -y pandoc texlive texlive-xetex > /dev/null
7+
8+
files=$(find . -name '*.ipynb')
9+
for f in $files; do
10+
echo Converting: $f
11+
jupyter nbconvert --log-level=0 --output-dir='./pdfs' --to pdf $f > /dev/null
12+
done

notebooks/00-Table-Of-Contents.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"- **10. [Regression Analysis](./Regression.ipynb)**\n",
1919
"- **11. [Sentiment Analysis](./SentimentAnalysis.ipynb)**\n",
2020
"- **12. [Model Deployment](./ModelDeployment.ipynb)**\n",
21-
"- **13. [Artificial Neural Network](./ArtificialNeuralNetwork.ipynb)**"
21+
"- **13. [Artificial Neural Network](./ArtificialNeuralNetwork.ipynb)**\n",
22+
"- **14. [Ethics in ML/AL](./EthicsInML-AI.ipynb)**"
2223
]
2324
},
2425
{
19.1 KB
Binary file not shown.

pdfs/00-Table-Of-Contents.pdf

18.8 KB
Binary file not shown.

pdfs/Deep-Learning.pdf

9.91 KB
Binary file not shown.

pdfs/EthicsInML-AI-checkpoint.pdf

7.28 KB
Binary file not shown.

pdfs/EthicsInML-AI.pdf

15.7 KB
Binary file not shown.

pdfs/FeatureEngineering.pdf

243 KB
Binary file not shown.

0 commit comments

Comments
 (0)