Package org.encog.platformspecific.j2se.data.image

Examples of org.encog.platformspecific.j2se.data.image.ImageNeuralDataSet


      this.downsample = new RGBDownsample();
    } else {
      this.downsample = new SimpleIntensityDownsample();
    }

    this.training = new ImageNeuralDataSet(this.downsample, false, 1, -1);
    System.out.println("Training set created");
  }
View Full Code Here


    g.setColor(Color.WHITE);
    g.fillRect(0, 0, 5, 5);
    g.dispose();
   
    Downsample downsample = new SimpleIntensityDownsample();
    ImageNeuralDataSet set = new ImageNeuralDataSet(downsample,true,-1,1);
    BasicMLData ideal = new BasicMLData(1);
    ImageNeuralData input = new ImageNeuralData(image);
    set.add(input,ideal);
    set.downsample(2,2);
    Iterator<MLDataPair> itr = set.iterator();
    MLDataPair pair = (MLDataPair)itr.next();
    MLData data = pair.getInput();
    double[] d = data.getData();
    //Assert.assertEquals(d[0],-1.0, 0.1);
    //Assert.assertEquals(d[5],1, 0.1);
View Full Code Here

TOP

Related Classes of org.encog.platformspecific.j2se.data.image.ImageNeuralDataSet

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.