Giter VIP home page Giter VIP logo

neural_network_using_numpy's Introduction

Neural Network Implementation using NumPy

Activation and loss functions

Some popular activation and loss functions are implemented. After from NeuralNetwork import NeuralNetwork as NN you can access them with NN.AFunc.func_name or NN.LFunc.func_name . Use d_func_name for derivative and func_name_pair for tuple (func_name, d_func_name) .

Test and experiment with the neural network

In /examples directory there are examples of using the neural network on some popular datasets that are stored in /datasets .

git clone https://github.com/michal-wegrzyn/neural_network_using_numpy.git
cd neural_network_using_numpy
pip install -r requirements.txt
cd examples
python mnist.py

Dataset augmentation

The dataset may be too small to effectively train the neural network. In DatasetAugmentation.py there are functions that can help you augment it.

Use shift function to create more data by shifting e.g. images of digits from the MNIST dataset by a few pixels in different directions.

You can also use flip function e.g. for the Fashion MNIST dataset to expand it with symmetrical (flipped) images.

neural_network_using_numpy's People

Contributors

michal-wegrzyn avatar

Stargazers

 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.