Exemplo n.º 1
0
 /// <summary>
 /// Evaluates the given sample. Runs the program on inputs given by the sample and stores outputs of the program in sample.RealOutputs.
 /// </summary>
 /// <param name="sample"></param>
 /// <param name="interpret"></param>
 /// <returns></returns>
 public void evaluate(TrainingSample sample, Interpret interpret)
 {
     interpret.reset();
     interpret.numericInputs = sample.inputs.ToList();
     this.execute(interpret);
     for (int i = 0; i < sample.outputsCount; i++)
     {
         sample.realOutputs[i] = interpret.outputs[i];
     }
 }