亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? simplevalidationsample.java

?? 這是一個神經網絡的開發工具
?? JAVA
字號:
/* * ValidationSample.java * * Created on 11 november 2002, 22.59 * @author  pmarrone */package org.joone.samples.engine.validation;import org.joone.engine.*;import org.joone.engine.learning.*;import org.joone.net.*;import org.joone.io.*;import org.joone.util.*;/** * This example shows how to check the training level of the net * using a validation data source. * In this example we will learn to use the following objects: * - org.joone.util.LearningSwitch * - org.joone.net.NeuralNetValidator * - org.joone.util.NormalizerPlugIn * * This program shows how to build the same kind of neural net as that * contained into the org/joone/samples/editor/scripting/ValidationSample.ser * file using only java code and the core engine's API. Open that net in * the GUI editor to see the architecture of the net built in this example. */public class SimpleValidationSample implements NeuralNetListener, NeuralValidationListener {        NeuralNet net;    /** Creates a new instance of SampleScript */    public SimpleValidationSample() {    }        /**     * @param args the command line arguments     */    public static void main(String[] args) {        if (args.length == 0) {            System.out.println("Usage: java org.joone.samples.engine.validation.SimpleValidationSample filePath");            System.out.println("where filePath is the path containing the input file");            System.exit(1);        }        SimpleValidationSample sampleNet = new SimpleValidationSample();        sampleNet.initialize(args[0]);        sampleNet.start();    }        private void initialize(String path) {        /* Creates the three layers and connect them */        LinearLayer ILayer = new LinearLayer();  // Input Layer        SigmoidLayer HLayer = new SigmoidLayer(); // Hidden Layer        SigmoidLayer OLayer = new SigmoidLayer(); // Output Layer        ILayer.setRows(13); // The input pattern has 13 columns        HLayer.setRows(10);        OLayer.setRows(1);  // The desired pattern has 1 column        FullSynapse synIH = new FullSynapse();        FullSynapse synHO = new FullSynapse();        this.connect(ILayer, synIH, HLayer);        this.connect(HLayer, synHO, OLayer);                /* Creates all the required input data sets */        FileInputSynapse ITdata = this.createInput(path+"/wine.txt",1,2,14); /* The input training data set */        FileInputSynapse IVdata = this.createInput(path+"/wine.txt",131,2,14); /* The input validation data set */        FileInputSynapse DTdata = this.createInput(path+"/wine.txt",1,1,1); /* The desired training data set */        FileInputSynapse DVdata = this.createInput(path+"/wine.txt",131,1,1); /* The desired validation data set */                /* Creates and attach the input learning switch */        LearningSwitch Ilsw = this.createSwitch(ITdata, IVdata);        ILayer.addInputSynapse(Ilsw);                /* Creates and attach the desired learning switch */        LearningSwitch Dlsw = this.createSwitch(DTdata, DVdata);        TeachingSynapse ts = new TeachingSynapse(); // The teacher of the net        ts.setDesired(Dlsw);        OLayer.addOutputSynapse(ts);                /* Now we put all togheter into a NeuralNet object */        net = new NeuralNet();        net.addLayer(ILayer, NeuralNet.INPUT_LAYER);        net.addLayer(HLayer, NeuralNet.HIDDEN_LAYER);        net.addLayer(OLayer, NeuralNet.OUTPUT_LAYER);        net.setTeacher(ts);                /* Sets the Monitor's parameters */        Monitor mon = net.getMonitor();        mon.setLearningRate(0.6);        mon.setMomentum(0.5);                mon.setTrainingPatterns(130);        mon.setValidationPatterns(48);                mon.setTotCicles(1000);        mon.setLearning(true);    }        /** Creates a FileInputSynapse */    private FileInputSynapse createInput(String name, int firstRow, int firstCol, int lastCol) {        FileInputSynapse input = new FileInputSynapse();        input.setFileName(name);        input.setFirstRow(firstRow);        if (firstCol != lastCol)            input.setAdvancedColumnSelector(firstCol+"-"+lastCol);        else            input.setAdvancedColumnSelector(Integer.toString(firstCol));                // We normalize the input data in the range 0 - 1        NormalizerPlugIn norm = new NormalizerPlugIn();        if (firstCol != lastCol)            norm.setAdvancedSerieSelector("1-"+Integer.toString(lastCol-firstCol+1));        else            norm.setAdvancedSerieSelector("1");        input.setPlugin(norm);        return input;    }        /** Connects two Layers with a Synapse */    private void connect(Layer ly1, Synapse syn, Layer ly2) {        ly1.addOutputSynapse(syn);        ly2.addInputSynapse(syn);    }        /* Creates a LearningSwitch and attach to it both the training and       the desired input synapses */    private LearningSwitch createSwitch(StreamInputSynapse IT, StreamInputSynapse IV) {        LearningSwitch lsw = new LearningSwitch();        lsw.addTrainingSet(IT);        lsw.addValidationSet(IV);        return lsw;    }        private void start() {        // Registers itself as a listener        net.getMonitor().addNeuralNetListener(this);        net.start();        net.getMonitor().Go();    }        /* Events */    public void netValidated(NeuralValidationEvent event) {        // Shows the RMSE at the end of the cycle        NeuralNet NN = (NeuralNet)event.getSource();        System.out.println("    Validation Error: "+NN.getMonitor().getGlobalError());    }        public void cicleTerminated(NeuralNetEvent e) {        // Prints out the cycle and the training error        int cycle = net.getMonitor().getTotCicles() - net.getMonitor().getCurrentCicle()+1;        if (cycle % 200 == 0) { // We validate the net every 200 cycles            System.out.println("Cycle #"+cycle);            System.out.println("    Training Error:   " + net.getMonitor().getGlobalError());                        // Creates a copy of the neural network            net.getMonitor().setExporting(true);            NeuralNet newNet = net.cloneNet();            net.getMonitor().setExporting(false);                        // Cleans the old listeners            // This is a fundamental action to avoid that the validating net            // calls the cicleTerminated method of this class            newNet.removeAllListeners();                        // Set all the parameters for the validation            NeuralNetValidator nnv = new NeuralNetValidator(newNet);            nnv.addValidationListener(this);            nnv.start();  // Validates the net        }    }        public void errorChanged(NeuralNetEvent e) {//        Monitor NN = (Monitor)e.getSource();//        System.out.println("    Actual training error: "+NN.getGlobalError());    }        public void netStarted(NeuralNetEvent e) {    }        public void netStopped(NeuralNetEvent e) {    }        public void netStoppedError(NeuralNetEvent e,String error) {    }    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区四区在线| 亚洲人成在线播放网站岛国| 在线视频欧美区| 99精品视频在线观看免费| 成人97人人超碰人人99| av日韩在线网站| 在线一区二区三区四区五区 | 国产成人av一区二区三区在线观看| 亚洲sss视频在线视频| 日日摸夜夜添夜夜添精品视频 | 午夜精品在线看| 日韩经典中文字幕一区| 麻豆91精品91久久久的内涵| 精一区二区三区| 国产成人h网站| 91激情五月电影| 欧美一区二区三区免费大片 | 亚洲视频免费在线观看| 亚洲欧美日韩中文字幕一区二区三区 | 精品视频色一区| 日韩一区二区三区免费观看| 久久亚洲综合色| 国产精品国产三级国产专播品爱网| 亚洲啪啪综合av一区二区三区| 亚洲精品国产一区二区精华液| 亚洲国产日韩一区二区| 黑人巨大精品欧美一区| 日本韩国一区二区三区| 日韩免费一区二区三区在线播放| 国产三级精品在线| 亚洲一区二区三区小说| 激情综合五月婷婷| 91九色02白丝porn| 久久网站最新地址| 亚洲第四色夜色| 国产成人综合在线观看| 91精品国产综合久久婷婷香蕉| 欧美国产亚洲另类动漫| 天堂va蜜桃一区二区三区 | 欧美最猛黑人xxxxx猛交| 日韩视频免费观看高清完整版 | 欧美三级资源在线| 国产精品美女一区二区三区| 日韩福利电影在线| eeuss鲁片一区二区三区| 欧美一级欧美三级在线观看| 亚洲丝袜自拍清纯另类| 国产一区二区三区视频在线播放| 欧美影院午夜播放| 亚洲人成7777| 99久久国产综合精品色伊| 欧美mv和日韩mv国产网站| 亚洲777理论| 91碰在线视频| 亚洲天堂精品在线观看| 成人午夜av影视| 久久久国产午夜精品 | 一区免费观看视频| 国精产品一区一区三区mba桃花| 欧美日韩视频在线一区二区| 亚洲欧美日韩国产成人精品影院| 国产精品1区2区| 精品国产1区2区3区| 美日韩黄色大片| 日韩一区二区视频在线观看| 日本中文一区二区三区| 69久久99精品久久久久婷婷| 亚洲电影在线免费观看| 欧美性猛片xxxx免费看久爱| 国产精品盗摄一区二区三区| 成人app在线| 自拍偷拍亚洲综合| 色呦呦一区二区三区| 亚洲乱码中文字幕| 欧美日韩在线三级| 亚洲国产一区二区三区青草影视| 在线观看免费成人| 天堂一区二区在线| 91精品国产高清一区二区三区 | 国产午夜亚洲精品理论片色戒 | 一本到三区不卡视频| 亚洲麻豆国产自偷在线| 欧美色图激情小说| 日韩av成人高清| 精品国产1区二区| 粉嫩一区二区三区性色av| 国产精品无遮挡| 在线免费观看日韩欧美| 日韩电影免费一区| 久久精品视频免费| 91麻豆国产自产在线观看| 亚洲一区二区欧美日韩| 欧美一区二区三区免费视频| 国产福利精品一区二区| 最新热久久免费视频| 欧美剧情片在线观看| 国产资源在线一区| 亚洲天堂av一区| 51精品视频一区二区三区| 国产一区视频在线看| 国产精品第13页| 欧美三级资源在线| 国产 欧美在线| 亚洲图片欧美一区| 国产欧美综合在线观看第十页 | 国产网站一区二区| 日本韩国一区二区三区视频| 经典三级在线一区| 亚洲一二三四区不卡| 欧美电影精品一区二区| 91亚洲国产成人精品一区二三| 秋霞电影一区二区| 亚洲欧美中日韩| 6080午夜不卡| 色综合久久中文字幕| 国产在线精品视频| 亚洲一区成人在线| 国产精品每日更新在线播放网址 | 美女精品自拍一二三四| 亚洲欧美日韩国产另类专区 | 91色九色蝌蚪| 欧美三级一区二区| 国产在线视频一区二区三区| 一区二区三区高清在线| 国产91丝袜在线播放九色| 一区二区日韩电影| 欧美激情自拍偷拍| 日韩欧美高清一区| 51精品秘密在线观看| 在线亚洲高清视频| 91香蕉视频mp4| 国产精品影音先锋| 美女久久久精品| 免费日本视频一区| 亚洲国产欧美日韩另类综合| 中文文精品字幕一区二区| 日韩午夜激情av| 欧美偷拍一区二区| 欧洲另类一二三四区| 欧美一区二区三区爱爱| 99久久国产综合色|国产精品| 日本不卡不码高清免费观看| 亚洲免费看黄网站| 国产欧美日本一区视频| 91精品婷婷国产综合久久竹菊| 色94色欧美sute亚洲线路二| 国产一区二区在线看| 亚洲大尺度视频在线观看| 国产精品久久久久毛片软件| 精品久久久久久无| 欧美男女性生活在线直播观看| 成人app网站| 成人污污视频在线观看| 韩国v欧美v亚洲v日本v| 亚洲国产精品久久久男人的天堂 | 日日夜夜一区二区| 日韩成人一级大片| 精品一二三四在线| 国产九色sp调教91| 成人av电影免费观看| 一本大道久久a久久综合婷婷 | 91色porny蝌蚪| 91碰在线视频| 欧美日韩国产一级二级| 欧美日韩mp4| 26uuu欧美| 中文字幕中文字幕中文字幕亚洲无线| 国产精品久久久久桃色tv| 亚洲视频在线观看一区| 天天做天天摸天天爽国产一区| 精品在线免费观看| 成人爽a毛片一区二区免费| 91在线播放网址| 91麻豆精品国产无毒不卡在线观看| 欧美一区日本一区韩国一区| 久久精品一区蜜桃臀影院| 亚洲欧洲精品一区二区三区不卡| 中文字幕一区二区三区四区| 婷婷开心久久网| 国产一区二区三区在线观看免费 | 日韩一区二区免费在线电影 | 91亚洲午夜精品久久久久久| 欧美日韩成人激情| 国产日韩精品视频一区| 亚洲一区二区中文在线| 国产成人在线视频播放| 欧美喷水一区二区| 国产欧美精品在线观看| 三级在线观看一区二区 | 久99久精品视频免费观看| 成人污视频在线观看| 91精品黄色片免费大全| 亚洲欧美影音先锋| 韩日av一区二区| 在线观看亚洲一区| 国产精品视频在线看| 亚洲成人免费av| 成人av电影在线播放| 7777女厕盗摄久久久| 中文字幕字幕中文在线中不卡视频|