/// <summary>
 /// Deprecated Method for adding a new object to the Samples EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSamples(Sample sample)
 {
     base.AddObject("Samples", sample);
 }
예제 #2
0
 private VectorFlowEntry<double> ToEntry(Sample sample)
 {
     return new VectorFlowEntry<double>(CreateInputs(sample.ImageData), CreateOutputs(sample.Number));
 }
 /// <summary>
 /// Create a new Sample object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="isTraining">Initial value of the IsTraining property.</param>
 /// <param name="number">Initial value of the Number property.</param>
 /// <param name="imageData">Initial value of the ImageData property.</param>
 public static Sample CreateSample(global::System.Int32 id, global::System.Boolean isTraining, global::System.Byte number, global::System.Byte[] imageData)
 {
     Sample sample = new Sample();
     sample.ID = id;
     sample.IsTraining = isTraining;
     sample.Number = number;
     sample.ImageData = imageData;
     return sample;
 }
예제 #4
0
 private NeuralVectorFlow ToFlow(int index, Sample sample)
 {
     return new NeuralVectorFlow(index, ToEntry(sample));
 }