Package com.wiieditor.neuralnetwork

Examples of com.wiieditor.neuralnetwork.NeuralData


       
        return grid[row][column];
    }
    public NeuralData getConvertedNeuralData(){
       
        NeuralData nd=new NeuralData(width*height,0);
        for(int i=0;i<height;i++){
            for(int j=0;j<width;j++){
                nd.setInputVectorAtIndex(i*j, ((grid[i][j])?TRUE_VAL:FALSE_VAL) );
            }
        }
        return nd;
    }
View Full Code Here


    }
   
    public void learn(char c){
        downSample();
        double [] output=DataInterpolator.convertCharToNeuronDoubleArr(c);
        NeuralData neuralData=gridPanel.getData().getConvertedNeuralData();
        neuralData.setOutputVector(output);
       
        NeuralNetwork n=NeuralNetwork.createNeuralNetwork();
        n.learn(neuralData);
        n.save();
       
View Full Code Here

       
    }
   
    public char recognize(){
        downSample();
        NeuralData neuralData=gridPanel.getData().getConvertedNeuralData();
        NeuralNetwork n=NeuralNetwork.createNeuralNetwork();
        neuralData=n.calculateAndGetNormalizedOuput(neuralData);
       
        char c=DataInterpolator.convertNeuronDoubleArrToChar(neuralData.getOutputVector());
        log.info("Entry: NeuralNetwork recognized "+c);
        return c;
    }
View Full Code Here

TOP

Related Classes of com.wiieditor.neuralnetwork.NeuralData

Copyright © 2018 www.massapicom. 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.