Skip to content
/ neuro Public

Neuro is an open source neural network made with Java :)

Notifications You must be signed in to change notification settings

GregVS/neuro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Neuro

Note: I wrote this project in 7th grade. It was simply a way for me to learn about basic neural networks at a low level.

Neuro is an open source neural network made with Java :)
Feel free to distribute this program or modify it to your liking.
NOTE: This library currently only supports the Sigmoid activation function.

Installation

First download the jar file from Github repository. It will be titled Neuro.jar.
Then, move it into your project directory.
If you are using Eclipse then right click and choose Properties and then Build Path. Under Libraries, click add JAR and select the jar.
If you are using Intellij IDEA then right click on your project and choose Open Module Settings. On the sidebar press Libraries and click the plus button. Choose Java and a box will pop up allowing you to select the jar.

Usage

Neuro is super easy and noob friendly to use.

Building a Randomly Populated Neural Net

NeuralNetBuilder builder = new NeuralNetBuilder();
builder.setInputSize_(28 * 28);
builder.addHiddenLayer(100);
builder.setOutputSize(2);
NeuralNetwork net = builder.buildNetwork();

Running the Neural Network

float[] inputs = /* some input values */
float[] outputs = net.evaluate(inputs);

If you would like to backpropagate the network then add this code after.

float targets[] = {0.12f, 0.7f};
net.learnFromTargets(targets);

Saving the Neural Network

NeuralNetLoader.saveNeuralNet("src/saved_network.net", net);

Loading the Neural Network

NeuralNetwork net = NeuralNetLoader.loadNeuralNet("src/saved_network.net");

About

Neuro is an open source neural network made with Java :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages