Skip to content
Yannick-KeesPublic

About

Build MLP from scratch only using Numpy. Able to perform simple supervised learning problems in any dimension and with variable layer configurations. It can also be used for Auto-Encoder problems.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

MLP

Implementation of a Multi-layer perceptron in python only using the numpy library.

Example for solving the XOR-Problem

inputs = np.array([[0.0, 0.0,], [0.0,1.0],[1.0,0.0],[1.0,1.0]])
outputs = np.array([[-1.0],[1.0],[1.0],[-1.0]])
mlp = create_network([1,4,20,1], tanh)
mlp.train(inputs, outputs, learning_rate = 0.1, epochs = 500 )

Example for Auto-Encoder

inputs, outputs = np.eye(8), np.eye(8)
mlp = create_network([8,3,8], sgn)
mlp.train(inputs, outputs, learning_rate = 0.1, epochs = 4000 )

About

Build MLP from scratch only using Numpy. Able to perform simple supervised learning problems in any dimension and with variable layer configurations. It can also be used for Auto-Encoder problems.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages