Intellectron

An Innocent Library of Artificial Neural Network

View project on GitHub

The project is a simple implementation of ANN. Several machine learning algorithms are put together here. This tiny library is particularly suitable for small projects.

How to Use?

  1. Download the full project, unzip it, import the project to your IDE, and attach it in your project's build path as a required project.
  2. Now use it in your project like this-
  public static void main(String[] args) {
        //data//
        double[][] inputs = new double[][]{
            {0, 0}, {0, 1}, {1, 0}, {1, 1}
        };
        double[][] expectedOutputs = new double[][]{
            {1}, {0}, {0}, {1}
        };

        //deep neural network//
        int[] numbersOfNeuronsInLayers = new int[]{4, 3, 2, 1}; //neural network structure
        DeepNeuralNetworkImplementation deepNeuralNetworkImplementation = 
            new DeepNeuralNetworkImplementation(numbersOfNeuronsInLayers, 0.1, 2);

        //training//
        int cycle = 20000;
        for(int i=0; i<cycle; i++){
            deepNeuralNetworkImplementation.train(inputs, expectedOutputs);
        }

        //store knowledge//
        String workspace = System.getenv("SystemDrive") + System.getenv("HOMEPATH") + "\\Desktop\\";
        deepNeuralNetworkImplementation.dump(workspace+"knowledge.xml");
  }

You can find some simple implementations like it in the test section. There is also a nice project- DeepGenderRecognizer, which uses Intellectron; you will get a nice insight from it too.

License

GNU General Public License
Intellectron is licensed under a GNU General Public License version-3.