Examples of seeBMPImage()


Examples of model.Retina.seeBMPImage()

        spatialPooler.setLearningState(true);
        TemporalPooler temporalPooler = new TemporalPooler(spatialPooler,
                (int) newSynapseCount);
        temporalPooler.setLearningState(true);

        retina.seeBMPImage("2.bmp");

        int totalNumberOfSequenceSegments = 0;
        int totalNumberOfLearningNeurons = 0;
        for (int i = 0; i < (int) numberOfIterations; i++) {
            spatialPooler.performPooling();
View Full Code Here

Examples of model.Retina.seeBMPImage()

        retinaToRegion.connect(retina.getVisionCells(), region, 0, 0);

        SpatialPooler spatialPooler = new SpatialPooler(region);
        spatialPooler.setLearningState(true);

        retina.seeBMPImage("2.bmp");

        spatialPooler.performPooling(); // 11 active columns
        Set<ColumnPosition> columnActivityAfterSeeingImage2 = spatialPooler
                .getActiveColumnPositions();
        // = (6,5)(6, 3)(6, 2)(5, 3)(3, 5)(2, 2)(1, 3)(1, 2)(2, 5)(1, 5)(4, 4)
View Full Code Here

Examples of model.Retina.seeBMPImage()

        retinaToRegion.connect(retina.getVisionCells(), region, 0, 0);

        SpatialPooler spatialPooler = new SpatialPooler(region);
        spatialPooler.setLearningState(true);

        retina.seeBMPImage("2.bmp");

        spatialPooler.performPooling(); // 11 active columns
        this.columnActivityAfterSeeingImage2 = spatialPooler
                .getActiveColumnPositions();
        // = (6,5)(6, 3)(6, 2)(5, 3)(3, 5)(2, 2)(1, 3)(1, 2)(2, 5)(1, 5)(4, 4)
View Full Code Here

Examples of model.Retina.seeBMPImage()

    public void testHowToRunSpatialPoolingOnNervousSystem() throws IOException {
        Retina retina = partialNervousSystem.getPNS().getSNS().getRetina();
        Region LGNRegion = partialNervousSystem.getCNS().getBrain()
                .getThalamus().getLGN().getRegion();

        retina.seeBMPImage("2.bmp");

        SpatialPooler spatialPooler = new SpatialPooler(LGNRegion);
        spatialPooler.setLearningState(true);
        spatialPooler.performPooling();
        Set<ColumnPosition> LGNNeuronActivity = spatialPooler
View Full Code Here

Examples of model.Retina.seeBMPImage()

        filledSet.add(cp5);

        assertEquals(emptySet, spatialPooler.getActiveColumnPositions());

        // view the image, which will activate Columns in the spatialPooler
        retina.seeBMPImage("2.bmp");
        spatialPooler.performPooling();

        // filledSet contains ((6, 5), (6, 2), (1, 2), (2, 5), (4, 4))
        assertEquals(filledSet, spatialPooler.getActiveColumnPositions());
    }
View Full Code Here

Examples of model.Retina.seeBMPImage()

        // run spatial pooling on a image
        SpatialPooler spatialPooler = new SpatialPooler(LGNRegion);
        spatialPooler.setLearningState(true);

        retina.seeBMPImage("2.bmp");
        Set<Column> LGNNeuronActivity = spatialPooler
                .performPooling();

        assertEquals(11, LGNNeuronActivity.size());
View Full Code Here

Examples of model.Retina.seeBMPImage()

        Retina retina = new Retina(66, 66);

        AbstractSensorCellsToRegionConnect connectType2 = new SensorCellsToRegionRectangleConnect();
        connectType2.connect(retina.getVisionCells(), region, 2, 2);

        retina.seeBMPImage("2.bmp");
        this.spatialPooler.performPooling();
        Set<ColumnPosition> columnActivityAfterSeeingImage2 = this.spatialPooler
                .getActiveColumnPositions();

        assertEquals(5, columnActivityAfterSeeingImage2.size());
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.