public void MutateAuxArgs(double[] auxArgs, SharpNeat.Utility.FastRandom rng, SharpNeat.Utility.ZigguratGaussianSampler gaussianSampler, double connectionWeightRange) { throw new SharpNeatException("MutateAuxArgs() called on activation function that does not use auxiliary arguments."); }
/// <summary> /// Convenien /// </summary> /// <param name="box"></param> /// <param name="inputs"></param> /// <param name="fun"></param> public void Test(SharpNeat.Phenomes.IBlackBox box, IList<double> inputs, OutputProcessor fun) { var outputs = new double[nbOutputsNN]; activate(box, inputs, outputs); for (int i = 0; i < nbClusters; i++) { for (int j = 0; j < n; j++) { for (int k = 0; k < m; k++) { fun(i, GetOutputValuePerCluster(outputs, j, k)[i]); } } } }
public double[] GetRandomAuxArgs(SharpNeat.Utility.FastRandom rng, double connectionWeightRange) { throw new SharpNeatException("GetRandomAuxArgs() called on activation function that does not use auxiliary arguments."); }
public void Test(SharpNeat.Phenomes.IBlackBox box, IList<double> inputs, OutputProcessor fun) { var actualOutputs = new double[nbClusters]; activate(box, inputs, actualOutputs); for (int i = 0; i < nbClusters; i++) { fun(i, actualOutputs[i]); } }
public void Test(SharpNeat.Phenomes.IBlackBox box, IList<double> inputs, OutputProcessor fun) { var actualOutputs = new double[dataset.OutputCount]; activate(box, inputs, actualOutputs); for (int i = 0; i < dataset.OutputCount; i++) { fun(i, actualOutputs[i]); } }