Practice and tutorial-style notebooks covering my Machine Learning and Deep Learning experiments/projects.
data/
is an empty folder which is used as a destination for the datasets.- Notebooks are kept in the root of the project for now.
Classification of Newsgroup documents using four different approaches/algorithms.
Blog post on the same: https://shenoy-anurag.github.io/text-classification-on-newsgroup-data.html
Classification of Handwritten Hindi (Devanagari script) digits using Convolutional Neural Networks.
Achieved 99.59% accuracy on Test Dataset!
Blog post can be found here: https://shenoy-anurag.github.io/hindi-mnist-recognizer.html
Classification of Intents using LSTMs (RNN).
This model can be used for a chatbot along with an NER model to pick up entities.
MacBook Air (M1, 2020)
ARM64 architecture (arm64)
Apple M1 chip 8-core CPU with 4 performance cores and 4 efficiency cores 7-core GPU, 8-core GPU 16-core Neural Engine 16 GB Ram
MacOS Monterey 12.2.1 (21D62)
Conda (miniforge3):
- conda version : 4.11.0
- python version : 3.9.7.final.0
- tensorflow-macos==2.8.0
- tensorflow-metal==0.4.0
-
First install xcode-select command-line utilities.
xcode-select --install
-
Installing Miniforge3
-
Either using Homebrew:
brew install miniforge
-
Or, go to the releases section of miniforge's github page, and find the Miniforge3 file which corresponds to your system.
Like:
Miniforge3-4.11.0-0-MacOSX-arm64.sh
- Download the file to a folder.
- Open a terminal and change to the folder where you downloaded the install script.
- Run the command
chmod +x Miniforge3-4.11.0-0-MacOSX-arm64.sh
(don't forget to replace the file name with the name of the file you downloaded). - Then install from the file by running
sh Miniforge3-4.11.0-0-MacOSX-arm64.sh
in your terminal. source ~/miniforge3/bin/activate
-
-
Initialize Miniforge using the command:
conda init
-
Use this Conda Cheatsheet to create a conda environment.
-
Activate the newly created conda environment.
-
To use your environment in Jupyter notebooks
-
conda install -y jupyter
(this command installs jupyter) -
conda install nb_conda
(this command installs nb_conda, which adds conda env support to jupyter notebooks) -
And finally, add your environment to jupyter using
python -m ipykernel install --user --name <env_name> --display-name <display_name>
Don't forget to replace <env_name> and <display_name> with the name you want.
-
If you face any issues in setting up your environment for M1 Macbooks, take a look at these resources:
- https://developer.apple.com/metal/tensorflow-plugin/
- https://github.com/jeffheaton/t81_558_deep_learning/blob/master/install/tensorflow-install-mac-metal-jul-2021.ipynb
- https://docs.conda.io/projects/conda/en/4.6.0/_downloads/52a95608c49671267e40c689e0bc00ca/conda-cheatsheet.pdf
- https://betterprogramming.pub/installing-tensorflow-on-apple-m1-with-new-metal-plugin-6d3cb9cb00ca