Giter Club home page Giter Club logo

graphattack's Introduction

graphAttack

Build Status

​GraphAttack is a simple computational graph library for machine learning in pure Python (you can think of simple tensorflow). The main point is to combine mathematical operation together to form a workflow of choice in the form of a graph. The graph then takes care of pushing the data forward and propagating the gradients backwards.

I have aimed for the library to be simple and transparent so that it would be easy to understand and modify to fit individual needs. The performance was not the primary objective as there are plenty of fast alternatives; the aim was smaller, educational models.

All feedback and ideas for improvement welcome.

Tutorial

  • To be found in tutorial.ipynb, covers basic usage and a simple linear regression model

Examples

Setting up and running / training a dense neural network model

Setting up and running / training a Convolution neural network model

Setting up and running / training a Recurrent neural network

Features

Matrix operations

  • Dot product
  • Hadamard product
  • element-wise division
  • addition

Regularization

  • Dropout
  • Batch Normalisation

Activations

  • ReLU
  • Sigmoid
  • Tanh
  • Softmax

Convolution

  • 2d convolution
  • Max Pooling

Cost operations

  • Quadratic cost
  • Cross-entropy for softmax activation

Optimisation

  • Adam SGD minimizer, support for batches and continuous series

Misc

  • Reshape / flatten
  • Slice
  • Sum all elements/axis
  • Sum all elements squared
  • element-wise exponent

GPU Support

Limited GPU support can be made avaliable by modifying the file: graphAttack/gaUtilities/graphAttackFunctions.py

Commenting out lines 1-2 and uncommenting lines 4-22 will send the dot product computations to your GPU

Requirements

Additional Resources

http://www.deeplearningbook.org/ section 6.5.1 for more information on computational graphs and the rest of the book for more details about ML/deep learning.

Dependencies

  • Python 3.5 or above
  • numpy - linear algebra for Python
  • scipy - Scientific Python library, here used for utilities

License

MIT

graphattack's People

Contributors

jgolebiowski avatar

Watchers

James Cloos 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.