Giter Site home page Giter Site logo

0508994 / py-sdnn Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 1.62 MB

Simple Deep Neural Network implementation using pure python code and tools from SciPy ecosystem.

Python 100.00%
python3 machine-learning deep-learning neural-network scipy-stack

py-sdnn's Introduction

py-sDNN

This repository represents an attempt to implement a simple, configurable, deep neural network from scratch, using nothing but pure python code along with some SciPy tools. Primary resource used is Welch Labs neural networks demystified series on YouTube. This is by no means an efficient implementation, and its only purpose is learning.

Example usage

This example demonstrates usage on a iris flower data set. IrisDF is a helper class that loads and preprocesses the data using scikit-learn API.

from nn.sdnn import DNN
from nn.iris import IrisDF

df = IrisDF()                   # load dataset
N = DNN(shape=[4, 10, 6, 3])    # create a neural network with input layer size of 4, two hidden layers, and 2 output classes (one-hot encoded)

N.train(df.X_train, df.y_train) # train the network

Behaviour of the cost/loss function over the number of iterations in the oprimization process for the given example is shown on the graph bellow.

alt text

More usage examples are avaiable in the test directory of this repo, in the form of jupyter notebooks.

py-sdnn's People

Contributors

0508994 avatar

Watchers

 avatar  avatar

Forkers

subhash-pal

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.