Project details for Nen

Screenshot Nen - alpha -

by pascal - February 1, 2012, 20:23:49 CET [ Project Homepage BibTeX Download ]

view (3 today), download ( 0 today ), 1 subscription

Description:

Nen - Neural Network Implementation in Java

A 3-layer neural network for regression and classification with sigmoid activation function and command line interface similar LibSVM.

Quick Start: "java -jar nen.jar"

See this out-of-the-box comparison between LibSVM and Nen for a demonstration on several regression- and classification datasets.

Command-Line-Examples

Nen reads and writes LibSVM datasets (you will find some here).

Scale to -1..1
    java -jar nen.jar scale abalone abalone_scaled

Split into Test- and Train-Set
    java -jar nen.jar split abalone_scaled abalone_train abalone_test

Train Model
    java -jar nen.jar train abalone_train abalone_model

Predict Test-Set
    java -jar nen.jar predict abalone_test abalone_model abalone_predictions

Do Parameter Selection with Cross Validation
    java -jar nen.jar xval abalone_train abalone_model

Java-Example

// Create data (1000 data points, 8 attributes)
float[][] x=new float[1000][8];
float[][] y=new float[1000][1];

// Fill your data:
..............
..............

// Create an 8x16x1 regression network:
Nen nen=new Nen(Type.Regression,8,16,1);

// Train network 10000 steps, learnrate 0.005..0.0000001, not quiet:
nen.train(x,y,10000,0.005f,0.0000001f,false);

// Get Predictions for training set (true for threadsafe):
float[][] p=nen.get(x,true);

// Get Training Error (Mean-Squared)
float e=nen.getError(p,y);
Changes to previous version:

Initial Announcement on mloss.org.

BibTeX Entry: Download
URL: Project Homepage
Supported Operating Systems: Platform Independent
Data Formats: Libsvm
Tags: Neural Networks
Archive: download here

Other available revisons

Version Changelog Date
Beta

Initial Announcement on mloss.org.

February 19, 2012, 00:31:34
- alpha -

Initial Announcement on mloss.org.

February 1, 2012, 20:23:49
1

Initial Announcement on mloss.org.

February 1, 2012, 20:08:41

Comments

No one has posted any comments yet. Perhaps you'd like to be the first?

Leave a comment

You must be logged in to post comments.