/guide2dl

The Engineer's Guide to Deep-Learning

Primary LanguagePythonOtherNOASSERTION

The Engineer's Guide to Deep Learning

This is the repository of The Engineer's Guide to Deep Learning.

Developing Environment

Python                       3.11.5
keras                        2.15.0
pip                          24.0
numpy                        1.26.4
matplotlib                   3.9.0
tensorflow                   2.15.1
tensorflow-metal             1.1.0
scikit-learn                 1.5.0

To ensure compatibility, please create the environment using the above versions before running the program.

Note

  • I am happy to receive bug reports and assist with bug fixes.
  • I am unable to provide support for any installation issues.

Part 4: Transformer

Appendix: Basic Knowledge

License

License: CC BY-NC-SA 4.0

Appendix: Installing TensorFlow on M1 Mac

Reference:

Here's how I installed it on M1 Mac:

[1] Installing Python 3.11.5 using pyenv

$ pyenv install 3.11.5
$ pyenv global 3.11.5

[2] Installing TensorFlow under venv

$ python3 -m venv ~/venv-metal
$ source ~/venv-metal/bin/activate
$ python -m pip install -U pip
$ pip install tensorflow==2.15.1
$ pip install tensorflow-metal==1.1.0
$ pip install matplotlib==3.9.0

Appendix 2: Installing PyTorch on M1 Mac

$ pip install torch torchvision torchaudio