Git Product home page Git Product logo

maxine's Introduction

Maxine

Named after Matrix Chain (Matrix Multiplication in series), after all thats what Neural Nets are.

This project is a fun implementation of Neural Network to understand the under-the-hood working.

  • Optim class -- Optimizer
  • Model class -- Neural Network model
  • MLOPS -- Operators required for Deep learning, like Sigmoid, ReLU etc

Here are the steps to follow:

  1. Write a Model
  2. define Loss function
  3. Create an Optimizer such as SGD or Adam
  4. Load the data to tensor in a Data Loader
  5. write a Training Loop
  6. train it
  7. Train MNIST subset- for eg, 3 vs 7
  8. Train full MNIST
  9. Utilities-- Saving Loading pickel file
  10. Expand

Libraries used-

  • Numpy
  • Pytorch's Tensor, only for calculating Gradient
  • tqdm

A much later goal in this project-

  • remove pytorch dependency (gradient)
  • Create tensor module

Here is a demo training mnist dataset

NN Module

import maxine.nn as nn

x = torch.randn(60000, 1, 28, 28)
x = x.view(x.size(0), -1)

ih = nn.Linear(784, 10)
ih.forward(x)

Losses

TODO

Metrics

from maxine.metrics import accuracy

a = torch.randn(3,5).normal_(0,1)
b = torch.Tensor([2, 1, 5])
accuracy(a, b)
# output:
# tensor(0.3333)

Installation:

pip install -r requirements.txt
pip install -r requirements-dev.txt

Install the project:

pip install -e .

maxine's People

Contributors

akash5100 avatar

Stargazers

Pranay Prajapati avatar Vivek Agrawal avatar  avatar Anish Umale avatar

Watchers

 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.