Code Monkey home page Code Monkey logo

machine-learning's Introduction

Overview

Practice and tutorial-style notebooks covering my Machine Learning and Deep Learning experiments/projects.

File Structure

  • 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.

Notebooks:

Text Classification:

Classification of Newsgroup documents using four different approaches/algorithms.

Notebook: classification-newsgroup-dataset.ipynb

Blog post on the same: https://shenoy-anurag.github.io/text-classification-on-newsgroup-data.html

Hindi Digit Recognizer:

Classification of Handwritten Hindi (Devanagari script) digits using Convolutional Neural Networks.

Notebook: hindi-digit-recognition.ipynb

Achieved 99.59% accuracy on Test Dataset!

Blog post can be found here: https://shenoy-anurag.github.io/hindi-mnist-recognizer.html

Intent Classification:

Classification of Intents using LSTMs (RNN).

Notebook: intent-classification.ipynb

This model can be used for a chatbot along with an NER model to pick up entities.

System

MacBook Air (M1, 2020)

ARM64 architecture (arm64)

Hardware:

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

Operating System:

MacOS Monterey 12.2.1 (21D62)

Environment

  • conda version : 4.11.0
  • python version : 3.9.7.final.0

Libraries:

  • tensorflow-macos==2.8.0
  • tensorflow-metal==0.4.0

Setting up an M1 for tensorflow:

  1. First install xcode-select command-line utilities.

    xcode-select --install

  2. Installing Miniforge3

    1. Either using Homebrew:

      brew install miniforge

    2. 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

      1. Download the file to a folder.
      2. Open a terminal and change to the folder where you downloaded the install script.
      3. 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).
      4. Then install from the file by running sh Miniforge3-4.11.0-0-MacOSX-arm64.sh in your terminal.
      5. source ~/miniforge3/bin/activate
  3. Initialize Miniforge using the command:

    conda init

  4. Use this Conda Cheatsheet to create a conda environment.

  5. Activate the newly created conda environment.

  6. To use your environment in Jupyter notebooks

    1. conda install -y jupyter (this command installs jupyter)

    2. conda install nb_conda (this command installs nb_conda, which adds conda env support to jupyter notebooks)

    3. 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:

machine-learning's People

Contributors

shenoy-anurag avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.