资源简介

Joone官方所有资源在这里:https://sourceforge.net/projects/joone/files/?source=typ_redirect,源码和jar包在这里:https://sourceforge.net/projects/joone/files/joone-engine/2.0.0RC1/,没分数的可以直接从这下,有分数的给个辛苦分哈。

资源截图

代码片段和文件信息

/*
 * Validation_using_stream.java
 *
 * Created on January 18 2006 5:30 PM
 *
 */

package org.joone.samples.engine.helpers;

import java.io.File;
import org.joone.engine.Monitor;
import org.joone.engine.NeuralNetListener;
import org.joone.helpers.factory.JooneTools;
import org.joone.io.FileInputSynapse;
import org.joone.net.NeuralNet;
import org.joone.net.NeuralNetAttributes;
import org.joone.util.NormalizerPlugIn;

/**
 * Example to demonstrate how to use the helpers methods of the JooneTools class
 * with a StreamInputSynapse used as data source.
 * @author P.Marrone
 */
public class Validation_using_stream implements NeuralNetListener {
    
    private static final String fileName = “org/joone/samples/engine/helpers/wine.txt“;
    private static final int trainingRows = 150;
    
    private double[][] inputTrain;
    private double[][] desiredTrain;
    private double[][] inputTest;
    private double[][] desiredTest;
    
    /**
     * Creates a new instance of Validation_using_stream 
     */
    public Validation_using_stream() {
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Validation_using_stream me = new Validation_using_stream();
        me.go();
    }
    
    private void go() {
        // Prepare the training and testing data set
        FileInputSynapse fileIn = new FileInputSynapse();
        fileIn.setInputFile(new File(fileName));
        fileIn.setAdvancedColumnSelector(“1-14“);
        // Input data normalized between -1 and 1
        NormalizerPlugIn normIn = new NormalizerPlugIn();
        normIn.setAdvancedSerieSelector(“2-14“);
        normIn.setMin(-1);
        normIn.setMax(1);
        fileIn.addPlugIn(normIn);
        // Target data normalized between 0 and 1
        NormalizerPlugIn normOut = new NormalizerPlugIn();
        normOut.setAdvancedSerieSelector(“1“);
        fileIn.addPlugIn(normOut);
        
        // Extract the training data
        inputTrain = JooneTools.getDataFromStream(fileIn 1 trainingRows 2 14);
        desiredTrain = JooneTools.getDataFromStream(fileIn 1 trainingRows 1 1);
        
        // Extract the test data
        inputTest = JooneTools.getDataFromStream(fileIn trainingRows+1 178 2 14);
        desiredTest = JooneTools.getDataFromStream(fileIn trainingRows+1 178 1 1);
        
        int[] nodes = { 13 4 1 };
        NeuralNet nnet = JooneTools.create_standard(nodes JooneTools.LOGISTIC);
        // Set optimal values for learning rate and momentum
        nnet.getMonitor().setLearningRate(0.3);
        nnet.getMonitor().setMomentum(0.5);
//        nnet.getMonitor().setSingleThreadMode(false);
        // Trains the network
        JooneTools.train(nnet inputTrain desiredTrain 
                5000   // Max # of epochs 
                0.010  // Stop RMSE
                100    // Epochs between out

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-10-26 12:45  Jar包\
     目录           0  2017-10-26 12:45  Jar包\joone-engine-2.0.0RC1\
     目录           0  2017-10-26 12:45  Jar包\joone-engine-2.0.0RC1\engine\
     文件         103  2004-09-20 23:23  Jar包\joone-engine-2.0.0RC1\engine\Readme.txt
     文件       16504  2006-01-12 19:37  Jar包\joone-engine-2.0.0RC1\engine\engine_release_changes.txt
     文件     2875592  2008-07-03 01:04  Jar包\joone-engine-2.0.0RC1\joone-engine.jar
     文件       26934  2004-09-20 23:23  Jar包\joone-engine-2.0.0RC1\license-LGPL.txt
     目录           0  2017-10-26 12:45  Jar包\joone-engine-2.0.0RC1\samples\
     目录           0  2017-10-26 12:45  Jar包\joone-engine-2.0.0RC1\samples\engine\
     目录           0  2017-10-26 12:45  Jar包\joone-engine-2.0.0RC1\samples\engine\helpers\
     文件        4816  2008-06-28 16:45  Jar包\joone-engine-2.0.0RC1\samples\engine\helpers\Validation_using_stream.class
     文件        4970  2007-01-09 19:53  Jar包\joone-engine-2.0.0RC1\samples\engine\helpers\Validation_using_stream.java
     文件        2410  2008-06-28 16:45  Jar包\joone-engine-2.0.0RC1\samples\engine\helpers\XOR_using_helpers.class
     文件        3098  2007-01-09 19:53  Jar包\joone-engine-2.0.0RC1\samples\engine\helpers\XOR_using_helpers.java
     文件       13726  2006-06-21 20:03  Jar包\joone-engine-2.0.0RC1\samples\engine\helpers\rxor.ser
     文件        4760  2006-06-21 20:03  Jar包\joone-engine-2.0.0RC1\samples\engine\helpers\rxor.snet
     文件       11304  2006-01-18 21:31  Jar包\joone-engine-2.0.0RC1\samples\engine\helpers\wine.txt
     目录           0  2017-10-26 12:45  Jar包\joone-engine-2.0.0RC1\samples\engine\multipleInputs\
     文件        6881  2006-09-25 20:08  Jar包\joone-engine-2.0.0RC1\samples\engine\multipleInputs\XOR_inputSwitch.java
     文件        5912  2008-06-28 16:45  Jar包\joone-engine-2.0.0RC1\samples\engine\multipleInputs\XOR_multipleInputs.class
     文件        7139  2007-01-09 19:53  Jar包\joone-engine-2.0.0RC1\samples\engine\multipleInputs\XOR_multipleInputs.java
     文件          26  2007-01-09 22:38  Jar包\joone-engine-2.0.0RC1\samples\engine\multipleInputs\xor.txt
     目录           0  2017-10-26 12:45  Jar包\joone-engine-2.0.0RC1\samples\engine\parity\
     文件        7419  2008-06-28 16:45  Jar包\joone-engine-2.0.0RC1\samples\engine\parity\Parity_Structure_Nakayama.class
     文件        8402  2007-01-09 19:53  Jar包\joone-engine-2.0.0RC1\samples\engine\parity\Parity_Structure_Nakayama.java
     文件           0  2006-09-20 16:53  Jar包\joone-engine-2.0.0RC1\samples\engine\parity\parity.txt
     目录           0  2017-10-26 12:45  Jar包\joone-engine-2.0.0RC1\samples\engine\scripting\
     文件        6202  2008-06-28 16:45  Jar包\joone-engine-2.0.0RC1\samples\engine\scripting\scriptValidationSample.class
     文件        6758  2007-01-09 19:53  Jar包\joone-engine-2.0.0RC1\samples\engine\scripting\scriptValidationSample.java
     文件         773  2003-02-04 23:26  Jar包\joone-engine-2.0.0RC1\samples\engine\scripting\validation.bsh
     文件       11304  2002-11-12 21:36  Jar包\joone-engine-2.0.0RC1\samples\engine\scripting\wine.txt
............此处省略369个文件信息

评论

共有 条评论