Skip to content

iworeushankaonce/mlp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Implementation of Multi-Layer Perceptron (MLP) in Pure NumPy from scratch

This repository contains a variant of implementing a standard MLP with two layers for educational purposes. Relative simplicity of this particular implementation was aimed to show the constructions upon which some more advanced models are based, how forward and backward passes are computed and etc. In future versions an arbitrary number of layers and neurons per layer will be allowed.

Installation

git clone https://github.com/iworeushankaonce/mlp.git

Usage

1.1 Create an instance of MLP class

1.2 Methods and properties of MLP class

2.1 fit and predict methods

Future features

  1. MLP class with arbitrary layers
  2. Implement important activation functions
  • 'Leaky ReLU';
  • 'ELU';
  • 'linear';
  • 'softmax';
  • 'sigmoid'.
  1. Implement important loss functions
  • 'binary_crossentropy';
  • 'sparse_categorical_crossentropy';
  • 'categorical_crossentropy';
  • 'MSE';
  • 'MAE'.
  1. Allow usage of GD, Batch GD, Nesterov Accelerated Gradient, Momentum
  2. Provide 'try-it-yourself' Notebook with famous XOR example

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Sources and Useful Literature

License

MIT

About

Multilayer Perceptron from Scratch in pure NumPy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages