Skip to content

DeltaOrion/NeuralNetwork

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neural Network

The following program is a basic forward feeding multiplayer perceptron. A perceptron is divided up into an input layer, hidden layers and output layer. The neural network can either feedforward, which allows it to return an output with the given inputs, which is approximated with its current weights and biases or back propogate which takes an input, expected output and improves its approximator function.

Image of a multilayer perceptron

The neural network only supports a sigmoid activation function and a meaned square error function. This program was made without the help of any external libraries.

Building

To build the program, run the following commands

Windows

mkdir out
javac -d out src/**/*.java

Bash

mkdir out
find src -name "*.java" -exec javac -d out {} +

Running

Once executed you can either run the ColorPicker example or the XOR example

# Color Example
java -cp out me.jacob.assign.ColorSelector

# XOR Example
java -cp out me.jacob.assign.XORProblem

About

Simple implementation of a Multilayer Perceptron in Java without any external libraries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages