com.github.basking2.sdsai.sandbox.ai.nnet.TrainingInstance Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdsai-sandbox Show documentation
Show all versions of sdsai-sandbox Show documentation
Simple datastructures and algorithms.
The newest version!
/* $Id: TrainingInstance.java 281 2005-12-29 22:59:47Z sam $ */
package com.github.basking2.sdsai.sandbox.ai.nnet;
public class TrainingInstance {
protected double[] data;
protected double[] target;
protected int answer; /* a cache of the answer for this instance */
protected TrainingInstance(){}
public TrainingInstance(double[] d, double[] t){
data=new double[d.length];
target=new double[t.length];
for(int i=0;i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy