Examples of NeuronSquareMesh2D


Examples of org.apache.commons.math3.ml.neuralnet.twod.NeuronSquareMesh2D

     */
    public ChineseRingsClassifier(ChineseRings rings,
                                  int dim1,
                                  int dim2) {
        this.rings = rings;
        sofm = new NeuronSquareMesh2D(dim1, false,
                                      dim2, false,
                                      SquareNeighbourhood.MOORE,
                                      makeInitializers());
    }
View Full Code Here

Examples of org.apache.commons.math3.ml.neuralnet.twod.NeuronSquareMesh2D

    @Test
    public void testGetFeaturesSize() {
        final FeatureInitializer[] initArray = { init, init, init };

        final Network net = new NeuronSquareMesh2D(2, false,
                                                   2, false,
                                                   SquareNeighbourhood.VON_NEUMANN,
                                                   initArray).getNetwork();
        Assert.assertEquals(3, net.getFeaturesSize());
    }
View Full Code Here

Examples of org.apache.commons.math3.ml.neuralnet.twod.NeuronSquareMesh2D

     2-----3
     */
    @Test
    public void testDeleteLink() {
        final FeatureInitializer[] initArray = { init };
        final Network net = new NeuronSquareMesh2D(2, false,
                                                   2, false,
                                                   SquareNeighbourhood.VON_NEUMANN,
                                                   initArray).getNetwork();
        Collection<Neuron> neighbours;

View Full Code Here

Examples of org.apache.commons.math3.ml.neuralnet.twod.NeuronSquareMesh2D

     2-----3
     */
    @Test
    public void testDeleteNeuron() {
        final FeatureInitializer[] initArray = { init };
        final Network net = new NeuronSquareMesh2D(2, false,
                                                   2, false,
                                                   SquareNeighbourhood.VON_NEUMANN,
                                                   initArray).getNetwork();

        Assert.assertEquals(2, net.getNeighbours(net.getNeuron(0)).size());
View Full Code Here

Examples of org.apache.commons.math3.ml.neuralnet.twod.NeuronSquareMesh2D

    }

    @Test
    public void testIterationOrder() {
        final FeatureInitializer[] initArray = { init };
        final Network net = new NeuronSquareMesh2D(4, false,
                                                   3, true,
                                                   SquareNeighbourhood.VON_NEUMANN,
                                                   initArray).getNetwork();

        // Check that the comparator provides a specific order.
View Full Code Here

Examples of org.apache.commons.math3.ml.neuralnet.twod.NeuronSquareMesh2D

    @Test
    public void testSerialize()
        throws IOException,
               ClassNotFoundException {
        final FeatureInitializer[] initArray = { init };
        final Network out = new NeuronSquareMesh2D(4, false,
                                                   3, true,
                                                   SquareNeighbourhood.VON_NEUMANN,
                                                   initArray).getNetwork();

        final ByteArrayOutputStream bos = new ByteArrayOutputStream();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.