Skip to content
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.

mknblch/fnn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Feedforward neural network P.o.C.

Simple implementation of a FNN with back-propagation to recap some AI knowledge.

Usage

    // crate a data set with input- and output-values
    DataSet train = DataSet.fromArray(                      // syntactic sugar
        new double[][] { new double[]{ ... }, ... },        // inputs
        new double[][] { new double[]{ ... }, ... }         // expected
    );

    FNN net = Trainer.builder( inputUnits , outputUnits )   // create a Builder
            .withLearningRate( learningRate )               // do setup
            .addHiddenLayer( hiddenUnits )                  // add hidden layers
            .build()                                        // build a Trainer
            .train( train, error, maxIterations );          // do training 

    double[] results = net.eval( new double[] { ... } )     // evaluate against input

Additional examples can be found in the unit tests.

About

Feedforward neural network P.o.C.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages